Browse Source

电签相关

huangjn 3 years ago
parent
commit
75cd23798b

+ 3 - 0
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/vo/SingPfxManagementVO.java

@@ -24,4 +24,7 @@ public class SingPfxManagementVO {
     @ApiModelProperty("当前页总数")
     private Integer size;
 
+    @ApiModelProperty("合同段ID")
+    private Long contractId;
+
 }

+ 3 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/ProjectInfoMapper.xml

@@ -38,6 +38,7 @@
         <result column="project_name" property="projectName"/>
         <result column="personalCount" property="personalCount"/>
         <result column="project_name" property="projectName"/>
+        <result column="contractId" property="contractId"/>
     </resultMap>
 
     <select id="singPfxManagementPage" resultMap="singPfxManagementResultMap">
@@ -45,7 +46,8 @@
             pi.id,
             pi.project_name,
             count((select id from m_sign_pfx_file where is_deleted = 0 and project_id = pi.id and certificate_type = 1)) AS personalCount,
-            count((select id from m_sign_pfx_file where is_deleted = 0 and project_id = pi.id and certificate_type = 2)) AS enterpriseCount
+            count((select id from m_sign_pfx_file where is_deleted = 0 and project_id = pi.id and certificate_type = 2)) AS enterpriseCount,
+            (select id from m_contract_info where is_deleted = 0 and p_id = pi.id limit 1) AS contractId
         from m_project_info AS pi where pi.is_deleted = 0
         <if test="vo.projectId != null">
             and pi.id = #{vo.projectId}