Administrator il y a 3 ans
Parent
commit
d242b25862

+ 22 - 0
mybusiness/src/main/java/com/sooka/system/domain/TUInterfaceinfo.java

@@ -70,6 +70,28 @@ public class TUInterfaceinfo extends BaseEntity
     @Excel(name = "AK/SK方式")
     private String typeAksk;
 
+    @Excel(name = "调用成功次数")
+    private Long callsuccnum;
+
+    @Excel(name = "调用失败次数")
+    private Long callfailnum;
+
+    public Long getCallsuccnum() {
+        return callsuccnum;
+    }
+
+    public void setCallsuccnum(Long callsuccnum) {
+        this.callsuccnum = callsuccnum;
+    }
+
+    public Long getCallfailnum() {
+        return callfailnum;
+    }
+
+    public void setCallfailnum(Long callfailnum) {
+        this.callfailnum = callfailnum;
+    }
+
     public void setId(String id)
     {
         this.id = id;

+ 24 - 0
mybusiness/src/main/resources/mapper/mainpage/MainPageMapper.xml

@@ -28,6 +28,30 @@ where dept.del_flag=0 and dept.dept_id >200
     </select>
 
 
+    <!--select dept_id,dept_name, IFNULL(info.cou,0) cou,  IFNULL(info_gx.cou,0) cou_gx,IFNULL(info_gj.cou,0) cou_gj from sys_dept dept-->
+    <!--LEFT OUTER JOIN-->
+    <!--(select c.apply_oid org_id, sum(a.callsuccnum) cou from t_u_interfaceinfo a,int_detailed b,int_record c-->
+    <!--where a.id = b.int_id and b.record_id=c.id-->
+    <!--group by c.apply_oid) info-->
+    <!--on (dept.dept_id=info.org_id)-->
+    <!--LEFT OUTER JOIN-->
+    <!--(select c.apply_oid org_id, sum(a.callsuccnum) cou from t_u_interfaceinfo a,int_detailed b,int_record c-->
+    <!--where a.id = b.int_id and b.record_id=c.id and a.share_type='share_type_1'-->
+    <!--group by c.apply_oid) info_gx-->
+    <!--on (dept.dept_id=info_gx.org_id)-->
+
+    <!--LEFT OUTER JOIN-->
+    <!--(select c.apply_oid org_id, sum(a.callsuccnum) cou from t_u_interfaceinfo a,int_detailed b,int_record c-->
+    <!--where a.id = b.int_id and b.record_id=c.id and a.share_type='share_type_2'-->
+    <!--group by c.apply_oid) info_gj-->
+    <!--on (dept.dept_id=info_gj.org_id)-->
+
+    <!--where dept.del_flag=0 and dept.dept_id >200-->
+    <!--order by  info.cou desc-->
+
+
+
+
     <resultMap id="rm_qssjgxqk" type="com.sooka.mainpage.domain.Qssjgxqk_Bean"></resultMap>
     <select id="qssjgxqk" resultMap="rm_qssjgxqk">
         select dept.dept_id dept_id,dept.dept_name dept_name,IFNULL(gx.cou,0) gx_cou,IFNULL(gj.cou,0) gj_cou,

+ 11 - 1
mybusiness/src/main/resources/mapper/system/TUInterfaceinfoMapper.xml

@@ -24,10 +24,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="typeIam"    column="type_iam"    />
         <result property="typeAksk"    column="type_aksk"    />
         <result property="code"    column="code"    />
+        <result property="callsuccnum"    column="callsuccnum"    />
+        <result property="callfailnum"    column="callfailnum"    />
     </resultMap>
 
     <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,code 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,code,callsuccnum,callfailnum from t_u_interfaceinfo
     </sql>
 
     <select id="selectTUInterfaceinfoList" parameterType="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
@@ -45,6 +47,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="typeIam != null  and typeIam != ''"> and type_iam = #{typeIam}</if>
             <if test="typeAksk != null  and typeAksk != ''"> and type_aksk = #{typeAksk}</if>
             <if test="code != null  and code != ''"> and code = #{code}</if>
+            <if test="callsuccnum != null  and callsuccnum != ''"> and callsuccnum = #{callsuccnum}</if>
+            <if test="callfailnum != null  and callfailnum != ''"> and callfailnum = #{callfailnum}</if>
         </where>
     </select>
 
@@ -75,6 +79,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="typeIam != null">type_iam,</if>
             <if test="typeAksk != null">type_aksk,</if>
             <if test="code != null">code,</if>
+            <if test="callsuccnum != null">callsuccnum,</if>
+            <if test="callfailnum != null">callfailnum,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -96,6 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="typeIam != null">#{typeIam},</if>
             <if test="typeAksk != null">#{typeAksk},</if>
             <if test="code != null">#{code},</if>
+            <if test="callsuccnum != null">#{callsuccnum},</if>
+            <if test="callfailnum != null">#{callfailnum},</if>
          </trim>
     </insert>
 
@@ -120,6 +128,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="typeIam != null">type_iam = #{typeIam},</if>
             <if test="typeAksk != null">type_aksk = #{typeAksk},</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>