|
@@ -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}
|