|
|
@@ -89,6 +89,73 @@
|
|
|
${ew.customSqlSegment}
|
|
|
ORDER BY a.update_time DESC
|
|
|
</select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="findPageListNoDataPerm" resultType="com.jeeplus.finance.contractRegistration.domain.ContractInfo">
|
|
|
+ SELECT
|
|
|
+ DISTINCT a.id,
|
|
|
+ c.`name` AS create_by,
|
|
|
+ c.`name` AS createName,
|
|
|
+ c.`id` AS createId,
|
|
|
+ a.create_time,
|
|
|
+ a.update_by_id,
|
|
|
+ a.update_time,
|
|
|
+ a.del_flag,
|
|
|
+ a.contract_no as contractNo,
|
|
|
+ a.contract_name as contractName,
|
|
|
+ a.payer_subject as payerSubject,
|
|
|
+ a.payment_method as paymentMethod,
|
|
|
+ DATE_FORMAT(a.signing_date,'%Y-%m-%d') as signingDate,
|
|
|
+ a.contract_amount as contractAmount,
|
|
|
+ a.actual_contract_amount as actualContractAmount,
|
|
|
+ a.contract_num as contractNum,
|
|
|
+ a.payment_agreement as paymentAgreement,
|
|
|
+ a.change_num as changeNum,
|
|
|
+ a.department,
|
|
|
+ a.client_contacts as clientContacts,
|
|
|
+ a.client_contacts_phone as clientContactsPhone,
|
|
|
+ a.contract_approval_type as contractApprovalType,
|
|
|
+ a.proc_ins_id as procInsId,
|
|
|
+ a.process_definition_id as processDefinitionId,
|
|
|
+ a.contract_amount_type,
|
|
|
+ a.contract_opposite,
|
|
|
+ a.contract_fee,
|
|
|
+ a.payment_describe,
|
|
|
+ a.contract_type,
|
|
|
+ a.contract_serial_number,
|
|
|
+ a.fees,
|
|
|
+ a.status,
|
|
|
+ b.filed_type as filedType,
|
|
|
+ e.ID_ as taskFiledId,
|
|
|
+ b.proc_ins_id as taskFiledProcInsId,
|
|
|
+ d.name as departmentName,
|
|
|
+ f.borrow_type,
|
|
|
+ f.create_by_id as borrowUserId,
|
|
|
+ g.ID_ as task_borrow_id,
|
|
|
+ h.filed_paper_type as filedPaperType,
|
|
|
+ h.filed_no as filedNo,
|
|
|
+ h.confirm_filed_no as confirmFiledNo,
|
|
|
+ h.proc_ins_id as taskFiledPaperProcInsId,
|
|
|
+ cw_wcb.name as client_contacts_name,
|
|
|
+ art.ID_ as task_id,
|
|
|
+ art_fp.ID_ as file_paper_task_id
|
|
|
+ FROM
|
|
|
+ cw_work_contract_info a
|
|
|
+ LEFT JOIN cw_work_contract_file b on a.id = b.contract_info_id
|
|
|
+ LEFT JOIN sys_user c ON a.create_by_id = c.id
|
|
|
+ left join sys_user_manage_office sumo on sumo.office_id = c.office_id
|
|
|
+ LEFT JOIN act_ru_task e ON b.proc_ins_id = e.PROC_INST_ID_
|
|
|
+ LEFT JOIN sys_office d on a.department = d.id
|
|
|
+ LEFT JOIN cw_work_contract_borrow f ON a.id = f.contract_info_id
|
|
|
+ LEFT JOIN act_ru_task g ON f.proc_ins_id = g.PROC_INST_ID_
|
|
|
+ LEFT JOIN cw_work_contract_file_paper h on a.id = h.contract_info_id
|
|
|
+ LEFT JOIN cw_work_client_base cw_wcb on a.client_contacts = cw_wcb.id and cw_wcb.del_flag = '0'
|
|
|
+ LEFT JOIN act_ru_task art ON a.proc_ins_id = art.PROC_INST_ID_
|
|
|
+ LEFT JOIN act_ru_task art_fp ON h.proc_ins_id = art_fp.PROC_INST_ID_
|
|
|
+ ${ew.customSqlSegment}
|
|
|
+ ORDER BY a.update_time DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="findById" resultType="com.jeeplus.finance.contractRegistration.domain.ContractInfo">
|
|
|
SELECT
|
|
|
a.id,
|