Browse Source

费控添加打款状态

yzc 1 year ago
parent
commit
0eb795e74e

+ 9 - 0
hx-form/src/main/java/com/fjhx/form/entity/cost/vo/CostControlVo.java

@@ -68,4 +68,13 @@ public class CostControlVo extends CostControl {
     private String contractTaxTransportationWay;
     private Integer contractBelongType;
 
+    /**
+     * 打款id
+     */
+    private Long accountPaymentId;
+    /**
+     * 打款状态
+     */
+    private Integer accountPaymentStatus;
+
 }

+ 5 - 2
hx-form/src/main/resources/mapper/cost/CostControlMapper.xml

@@ -2,8 +2,11 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.fjhx.form.mapper.cost.CostControlMapper">
     <select id="getPage" resultType="com.fjhx.form.entity.cost.vo.CostControlVo">
-        select cc.*
-        from cost_control cc
+        SELECT cc.*,
+               ap.id       AS accountPaymentId,
+               ap.`status` AS accountPaymentStatus
+        FROM cost_control cc
+                 LEFT JOIN account_payment ap ON ap.cost_control_id = cc.id
             ${ew.customSqlSegment}
     </select>
     <select id="detail" resultType="com.fjhx.form.entity.cost.vo.CostControlVo">