|
@@ -7,14 +7,14 @@
|
|
|
<select id="getCostsPage" resultType="com.ydtech.modules.protocols.entity.po.PtlAgreementProductCostsNew">
|
|
<select id="getCostsPage" resultType="com.ydtech.modules.protocols.entity.po.PtlAgreementProductCostsNew">
|
|
|
SELECT
|
|
SELECT
|
|
|
pa.insurance_company,
|
|
pa.insurance_company,
|
|
|
- pa.agreement_name,
|
|
|
|
|
|
|
+ concat(pa.agreement_name, '-', pa.business_description, '-',pa.job_description) as agreement_name,
|
|
|
papcn.*,
|
|
papcn.*,
|
|
|
iuf.file_name as fee_file_name,
|
|
iuf.file_name as fee_file_name,
|
|
|
iuf.url as fee_file_url
|
|
iuf.url as fee_file_url
|
|
|
FROM
|
|
FROM
|
|
|
ptl_agreement_product_costs_new papcn
|
|
ptl_agreement_product_costs_new papcn
|
|
|
LEFT JOIN ptl_agreement pa ON papcn.agreement_id = pa.id
|
|
LEFT JOIN ptl_agreement pa ON papcn.agreement_id = pa.id
|
|
|
- LEFT JOIN ins_upload_files iuf on pa.fee_file_id = iuf.id
|
|
|
|
|
|
|
+ LEFT JOIN ins_upload_files iuf on pa.fee_file_id = iuf.id
|
|
|
where 1=1
|
|
where 1=1
|
|
|
and pa.deleted = 0
|
|
and pa.deleted = 0
|
|
|
<if test="params.agreementIds != null and params.agreementIds != ''">
|
|
<if test="params.agreementIds != null and params.agreementIds != ''">
|
|
@@ -42,7 +42,7 @@
|
|
|
<if test="params.productCode != null and params.productCode.size() > 0">
|
|
<if test="params.productCode != null and params.productCode.size() > 0">
|
|
|
AND papcn.product_id in
|
|
AND papcn.product_id in
|
|
|
<foreach item="item" index="index" collection="params.productCode" open="(" separator="," close=")">
|
|
<foreach item="item" index="index" collection="params.productCode" open="(" separator="," close=")">
|
|
|
- #{item}
|
|
|
|
|
|
|
+ #{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="params.createStartTime != null and params.createStartTime != ''">
|
|
<if test="params.createStartTime != null and params.createStartTime != ''">
|