|
@@ -13,6 +13,7 @@ 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" />
|
|
@@ -37,7 +38,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, 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
|
|
|
|
|
|
+ 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 from t_u_interfaceinfo
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTUInterfaceinfoList" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
<select id="selectTUInterfaceinfoList" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
|
|
@@ -65,6 +66,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
order by create_time desc
|
|
order by create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <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
|
|
|
|
+ from t_u_interfaceinfo_datanum
|
|
|
|
+ where dept_id = #{deptId} and status = '0' and table_name != '' and table_name is not null
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectTUInterfaceinfoListByIds" parameterType="String" resultMap="TUInterfaceinfoResult">
|
|
<select id="selectTUInterfaceinfoListByIds" parameterType="String" resultMap="TUInterfaceinfoResult">
|
|
<include refid="selectTUInterfaceinfoVo"/>
|
|
<include refid="selectTUInterfaceinfoVo"/>
|
|
where id in
|
|
where id in
|
|
@@ -161,6 +169,39 @@ 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_datanum
|
|
|
|
+ <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="updateDataNum" parameterType="TUInterfaceinfo">
|
|
|
|
+ update t_u_interfaceinfo_datanum set update_time = #{updateTime}, datanum = (select count(*) from ${tableName}) where id = #{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
<delete id="deleteTUInterfaceinfoById" parameterType="String">
|
|
<delete id="deleteTUInterfaceinfoById" parameterType="String">
|
|
delete from t_u_interfaceinfo where id = #{id}
|
|
delete from t_u_interfaceinfo where id = #{id}
|
|
</delete>
|
|
</delete>
|