liuhaonan 1 рік тому
батько
коміт
d23336c10e

+ 3 - 3
mybusiness/src/main/resources/mapper/imputationData/ImputationDataMapper.xml

@@ -44,7 +44,7 @@
         insert into t_u_imputation_interface
             <trim prefix="(" suffix=")" suffixOverrides=",">
                 <if test="year != null">year,</if>
-                <if test="tableName != null">table_name,</if>
+                <if test="interfaceId != null">interface_id,</if>
                 <if test="interfaceName != null">interface_name,</if>
                 <if test="jan != null">jan,</if>
                 <if test="feb != null">feb,</if>
@@ -61,7 +61,7 @@
             </trim>
             <trim prefix="values (" suffix=")" suffixOverrides=",">
                 <if test="year != null">#{year},</if>
-                <if test="tableName != null">#{tableName},</if>
+                <if test="interfaceId != null">#{interfaceId},</if>
                 <if test="interfaceName != null">#{interfaceName},</if>
                 <if test="jan != null">#{jan},</if>
                 <if test="feb != null">#{feb},</if>
@@ -94,7 +94,7 @@
                 <if test="month == '11'">nov = #{count},</if>
                 <if test="month == '12'">decb = #{count},</if>
             </trim>
-        where year = #{year} and table_name = #{tableName}
+        where year = #{year} and interface_id = #{interfaceId}
     </update>
 
     <insert id="insertImputationData" parameterType="ImputationData">

+ 34 - 35
mybusiness/src/main/resources/mapper/system/TUInterfaceinfoMapper.xml

@@ -13,7 +13,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="createTime"    column="create_time"    />
         <result property="updateBy"    column="update_by"    />
         <result property="updateTime"    column="update_time"    />
-        <result property="tableName"    column="table_name"    />
         <result property="interfaceName"    column="interface_name"    />
         <result property="infoItem"    column="info_item"    />
         <result property="usageScenarios"    column="usage_scenarios"    />
@@ -40,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <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>
 
     <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, 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
-        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 id="selectTUInterfaceinfoListByIds" parameterType="String" resultMap="TUInterfaceinfoResult">
@@ -180,34 +179,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         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>
+<!--    <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 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>
 
-    <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">
         update t_u_interfaceinfo set del_flag = '2' where id = #{id}

+ 33 - 33
mybusiness/target/classes/mapper/system/TUInterfaceinfoMapper.xml

@@ -70,9 +70,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
     <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_id, 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
-        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 id="selectTUInterfaceinfoListByIds" parameterType="String" resultMap="TUInterfaceinfoResult">
@@ -180,34 +180,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         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>
+<!--    <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 count(id) callsuccnum from ${tableName}
@@ -260,9 +260,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>
 
-    <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">
         update t_u_interfaceinfo set del_flag = '2' where id = #{id}