|
@@ -13,7 +13,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
- <result property="tableName" column="table_name" />
|
|
|
|
<result property="interfaceName" column="interface_name" />
|
|
<result property="interfaceName" column="interface_name" />
|
|
<result property="infoItem" column="info_item" />
|
|
<result property="infoItem" column="info_item" />
|
|
<result property="usageScenarios" column="usage_scenarios" />
|
|
<result property="usageScenarios" column="usage_scenarios" />
|
|
@@ -40,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTUInterfaceinfoVo">
|
|
<sql id="selectTUInterfaceinfoVo">
|
|
- select id, status, remark, del_flag, create_by, create_time, update_by, update_time, table_name, interface_name, info_item, usage_scenarios, share_type, interface_type, env, sign_serveraddress, interface_address, type_iam, type_aksk,dept_id,dept_name,code,callsuccnum,callfailnum,log_count from t_u_interfaceinfo
|
|
|
|
|
|
+ select id, status, remark, del_flag, create_by, create_time, update_by, update_time, interface_name, info_item, usage_scenarios, share_type, interface_type, env, sign_serveraddress, interface_address, type_iam, type_aksk,dept_id,dept_name,code,callsuccnum,callfailnum,log_count from t_u_interfaceinfo
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTUInterfaceinfoList" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
<select id="selectTUInterfaceinfoList" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
@@ -70,9 +69,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<select id="selectTUInterfaceinfoDataNumList" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
<select id="selectTUInterfaceinfoDataNumList" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
- select id, status, remark, del_flag, create_by, create_time, update_by, update_time, table_name, interface_name, info_item, usage_scenarios, share_type, interface_type, env, sign_serveraddress, interface_address, type_iam, type_aksk,dept_id,dept_name,code,callsuccnum,callfailnum
|
|
|
|
|
|
+ select id, status, remark, del_flag, create_by, create_time, update_by, update_time, interface_name, info_item, usage_scenarios, share_type, interface_type, env, sign_serveraddress, interface_address, type_iam, type_aksk,dept_id,dept_name,code,callsuccnum,callfailnum
|
|
from t_u_interfaceinfo
|
|
from t_u_interfaceinfo
|
|
- where dept_id = #{deptId} and status = '0' and share_type = 'share_type_2' and table_name != '' and table_name is not null
|
|
|
|
|
|
+ where dept_id = #{deptId} and status = '0' and share_type = 'share_type_2' and
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectTUInterfaceinfoListByIds" parameterType="String" resultMap="TUInterfaceinfoResult">
|
|
<select id="selectTUInterfaceinfoListByIds" parameterType="String" resultMap="TUInterfaceinfoResult">
|
|
@@ -180,34 +179,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
- <update id="updateTUInterfaceinfoDataNum" parameterType="TUInterfaceinfo">
|
|
|
|
- update t_u_interfaceinfo
|
|
|
|
- <trim prefix="SET" suffixOverrides=",">
|
|
|
|
- <if test="status != null">status = #{status},</if>
|
|
|
|
- <if test="remark != null">remark = #{remark},</if>
|
|
|
|
- <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
- <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
- <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
- <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
- <if test="interfaceName != null and interfaceName != ''">interface_name = #{interfaceName},</if>
|
|
|
|
- <if test="infoItem != null">info_item = #{infoItem},</if>
|
|
|
|
- <if test="usageScenarios != null">usage_scenarios = #{usageScenarios},</if>
|
|
|
|
- <if test="shareType != null">share_type = #{shareType},</if>
|
|
|
|
- <if test="interfaceType != null">interface_type = #{interfaceType},</if>
|
|
|
|
- <if test="env != null">env = #{env},</if>
|
|
|
|
- <if test="signServeraddress != null">sign_serveraddress = #{signServeraddress},</if>
|
|
|
|
- <if test="interfaceAddress != null">interface_address = #{interfaceAddress},</if>
|
|
|
|
- <if test="typeIam != null">type_iam = #{typeIam},</if>
|
|
|
|
- <if test="typeAksk != null">type_aksk = #{typeAksk},</if>
|
|
|
|
- <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
- <if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
|
- <if test="code != null">code = #{code},</if>
|
|
|
|
- <if test="callsuccnum != null">callsuccnum = #{callsuccnum},</if>
|
|
|
|
- <if test="callfailnum != null">callfailnum = #{callfailnum},</if>
|
|
|
|
- </trim>
|
|
|
|
- where id = #{id}
|
|
|
|
- </update>
|
|
|
|
|
|
+<!-- <update id="updateTUInterfaceinfoDataNum" parameterType="TUInterfaceinfo">-->
|
|
|
|
+<!-- update t_u_interfaceinfo-->
|
|
|
|
+<!-- <trim prefix="SET" suffixOverrides=",">-->
|
|
|
|
+<!-- <if test="status != null">status = #{status},</if>-->
|
|
|
|
+<!-- <if test="remark != null">remark = #{remark},</if>-->
|
|
|
|
+<!-- <if test="delFlag != null">del_flag = #{delFlag},</if>-->
|
|
|
|
+<!-- <if test="createBy != null">create_by = #{createBy},</if>-->
|
|
|
|
+<!-- <if test="createTime != null">create_time = #{createTime},</if>-->
|
|
|
|
+<!-- <if test="updateBy != null">update_by = #{updateBy},</if>-->
|
|
|
|
+<!-- <if test="updateTime != null">update_time = #{updateTime},</if>-->
|
|
|
|
+<!-- <if test="interfaceName != null and interfaceName != ''">interface_name = #{interfaceName},</if>-->
|
|
|
|
+<!-- <if test="infoItem != null">info_item = #{infoItem},</if>-->
|
|
|
|
+<!-- <if test="usageScenarios != null">usage_scenarios = #{usageScenarios},</if>-->
|
|
|
|
+<!-- <if test="shareType != null">share_type = #{shareType},</if>-->
|
|
|
|
+<!-- <if test="interfaceType != null">interface_type = #{interfaceType},</if>-->
|
|
|
|
+<!-- <if test="env != null">env = #{env},</if>-->
|
|
|
|
+<!-- <if test="signServeraddress != null">sign_serveraddress = #{signServeraddress},</if>-->
|
|
|
|
+<!-- <if test="interfaceAddress != null">interface_address = #{interfaceAddress},</if>-->
|
|
|
|
+<!-- <if test="typeIam != null">type_iam = #{typeIam},</if>-->
|
|
|
|
+<!-- <if test="typeAksk != null">type_aksk = #{typeAksk},</if>-->
|
|
|
|
+<!-- <if test="deptId != null">dept_id = #{deptId},</if>-->
|
|
|
|
+<!-- <if test="deptName != null">dept_name = #{deptName},</if>-->
|
|
|
|
+<!-- <if test="code != null">code = #{code},</if>-->
|
|
|
|
+<!-- <if test="callsuccnum != null">callsuccnum = #{callsuccnum},</if>-->
|
|
|
|
+<!-- <if test="callfailnum != null">callfailnum = #{callfailnum},</if>-->
|
|
|
|
+<!-- </trim>-->
|
|
|
|
+<!-- where id = #{id}-->
|
|
|
|
+<!-- </update>-->
|
|
|
|
|
|
<select id="selectCountByTableName" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
<select id="selectCountByTableName" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
select count(id) callsuccnum from ${tableName}
|
|
select count(id) callsuccnum from ${tableName}
|
|
@@ -260,9 +259,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
select count(id) count from ${tableName} where year(LAST_UPDATE_TIME) = #{year} and month(LAST_UPDATE_TIME) = #{month}
|
|
select count(id) count from ${tableName} where year(LAST_UPDATE_TIME) = #{year} and month(LAST_UPDATE_TIME) = #{month}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <update id="updateDataNum" parameterType="TUInterfaceinfo">
|
|
|
|
- update t_u_interfaceinfo set update_time = #{updateTime}, datanum = (select count(id) from ${tableName}) where id = #{id}
|
|
|
|
- </update>
|
|
|
|
|
|
+<!-- <update id="updateDataNum" parameterType="TUInterfaceinfo">-->
|
|
|
|
+<!-- update t_u_interfaceinfo set update_time = #{updateTime}, datanum = (select count(id) from ${tableName}) where id = #{id}-->
|
|
|
|
+<!-- </update>-->
|
|
|
|
|
|
<delete id="deleteTUInterfaceinfoById" parameterType="String">
|
|
<delete id="deleteTUInterfaceinfoById" parameterType="String">
|
|
update t_u_interfaceinfo set del_flag = '2' where id = #{id}
|
|
update t_u_interfaceinfo set del_flag = '2' where id = #{id}
|