|
@@ -39,6 +39,7 @@
|
|
|
<result property="riskLevel" column="risk_level" jdbcType="VARCHAR"/>
|
|
|
<result property="businessTypeName" column="business_type_name" jdbcType="VARCHAR"/>
|
|
|
<result property="realHeader" column="real_header" jdbcType="VARCHAR"/>
|
|
|
+ <result property="clientContactsName" column="client_contacts_name" jdbcType="VARCHAR"/>
|
|
|
<collection property="cwProjectClientInfoDTOList" ofType="com.jeeplus.test.cw.workClientInfo.service.dto.CwWorkClientBaseDTO" column="id" select="getProjectClient"></collection>
|
|
|
<collection property="workAttachmentDtoList" ofType="com.jeeplus.test.workContract.service.dto.WorkAttachmentDto" column="id" select="getFileList"></collection>
|
|
|
</resultMap>
|
|
@@ -170,11 +171,13 @@
|
|
|
cw_wci.contract_num,
|
|
|
cw_wci.payer_subject,
|
|
|
cw_wci.payment_method,
|
|
|
+ cw_wcb.name as client_contacts_name,
|
|
|
cw_pbt.name as business_type_name
|
|
|
from cw_project_records a
|
|
|
left join sys_user su on su.id = a.create_by and su.del_flag = '0'
|
|
|
left join sys_user su2 on su2.id = a.project_master_id and su2.del_flag = '0'
|
|
|
left join cw_work_contract_info cw_wci on cw_wci.id = a.contract_id and cw_wci.del_flag = '0'
|
|
|
+ left join cw_work_client_base cw_wcb on cw_wci.client_contacts = cw_wcb.id and cw_wcb.del_flag = '0'
|
|
|
left join cw_project_business_type cw_pbt on cw_pbt.id = a.business_type and cw_pbt.del_flag = '0'
|
|
|
${ew.customSqlSegment}
|
|
|
</select>
|
|
@@ -189,11 +192,13 @@
|
|
|
cw_wci.contract_num,
|
|
|
cw_wci.payer_subject,
|
|
|
cw_wci.payment_method,
|
|
|
+ cw_wcb.name as client_contacts_name,
|
|
|
cw_pbt.name as business_type_name
|
|
|
from cw_project_records a
|
|
|
left join sys_user su on su.id = a.create_by and su.del_flag = '0'
|
|
|
left join sys_user su2 on su2.id = a.project_master_id and su2.del_flag = '0'
|
|
|
left join cw_work_contract_info cw_wci on cw_wci.id = a.contract_id and cw_wci.del_flag = '0'
|
|
|
+ left join cw_work_client_base cw_wcb on cw_wci.client_contacts = cw_wcb.id and cw_wcb.del_flag = '0'
|
|
|
left join cw_project_business_type cw_pbt on cw_pbt.id = a.business_type and cw_pbt.del_flag = '0'
|
|
|
where a.del_flag = '0' and a.id = ${id}
|
|
|
</select>
|