Browse Source

接口—付款申请列表sql增加验收文件字段查询

ZhangWenQiang 3 years ago
parent
commit
a230ef1ca0

+ 5 - 0
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwpayment/entity/HlwPayment.java

@@ -417,4 +417,9 @@ public class HlwPayment implements Serializable {
 
     @TableField(exist = false)
     private String companyCode;
+    /**
+     * 验收文件
+     */
+    @TableField(exist = false)
+    private String checkFile;
 }

+ 5 - 1
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwpayment/mapper/xml/HlwPaymentMapper.xml

@@ -397,12 +397,16 @@
 		hr.requirement_code as "requirementCode",
 		hi.invoice_category_name as "invoiceCategoryName",
 		(select count(b.id) from hlw_payment_detail b where b.payment_id=a.id) as "paymentNumber",
-		com.company_code AS "companyCode"
+		com.company_code AS "companyCode",
+		hsc.check_file AS "checkFile",
+		has.file_path_prefix as "filePathPrefix"
 		FROM hlw_payment a
 		<include refid="hlwPaymentJoins"/>
 		left join hlw_order ho on ho.id = pd.order_id
 		left join hlw_requirement hr on hr.id = ho.requirement_id
 		left join hlw_invoice_category hi on hi.id=hr.invoice_category_id
+		left join hlw_service_check hsc on hsc.id = a.service_check_id
+		left join hlw_application_setting has on has.id = a.application_id
 		<where>
 			a.del_flag = 0
 			and a.application_id = #{applicationId}