zhangyuewww 3 years ago
parent
commit
04d914f2d2

+ 2 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/PaymentManagementController.java

@@ -154,8 +154,10 @@ public class PaymentManagementController {
         List<String> str = new ArrayList<>();
         List<String> str = new ArrayList<>();
         for(int i=0;i<paymentManagementList.size();i++){
         for(int i=0;i<paymentManagementList.size();i++){
             paymentManagement = paymentManagementList.get(i);
             paymentManagement = paymentManagementList.get(i);
+            paymentManagement.setInvoicing("1");
             paymentManagement.setIdentityAuthenticationInfo(iIdentityAuthenticationInfoService.selectById(paymentManagement.getIdentityId()));
             paymentManagement.setIdentityAuthenticationInfo(iIdentityAuthenticationInfoService.selectById(paymentManagement.getIdentityId()));
             str.add(xmlUtil.readXml(paymentManagement));
             str.add(xmlUtil.readXml(paymentManagement));
+            paymentManagementService.updateById(paymentManagement);
         }
         }
         return str;
         return str;
     }
     }

+ 4 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/entity/PaymentManagement.java

@@ -269,6 +269,10 @@ public class PaymentManagement extends BaseModel<PaymentManagement> {
      * 审核流id
      * 审核流id
      */
      */
     private String workflowId;
     private String workflowId;
+    /**
+     * 是否开票(0未开1已开)
+     */
+    private String invoicing;
     /**
     /**
      * 模糊查询
      * 模糊查询
      */
      */

+ 1 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/PaymentManagementServiceImpl.java

@@ -128,6 +128,7 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
         pageView.put("pageSize", paymentManagement.getPageSize());
         pageView.put("pageSize", paymentManagement.getPageSize());
         pageView.put("startDate", paymentManagement.getStartDate());
         pageView.put("startDate", paymentManagement.getStartDate());
         pageView.put("endDate", paymentManagement.getEndDate());
         pageView.put("endDate", paymentManagement.getEndDate());
+        pageView.put("invoicing", paymentManagement.getInvoicing());
         pageView.put("warehouseName", paymentManagement.getWarehouseName());
         pageView.put("warehouseName", paymentManagement.getWarehouseName());
         pageView.put("customerPhone", paymentManagement.getCustomerPhone());
         pageView.put("customerPhone", paymentManagement.getCustomerPhone());
         pageView.put("contractNo", paymentManagement.getContractNo());
         pageView.put("contractNo", paymentManagement.getContractNo());

+ 6 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/PaymentManagementMapper.xml

@@ -43,6 +43,9 @@
         <if test="managementType != null and managementType != ''">
         <if test="managementType != null and managementType != ''">
             AND a.management_type = #{managementType}
             AND a.management_type = #{managementType}
         </if>
         </if>
+        <if test="invoicing != null and invoicing != ''">
+            AND a.invoicing = '0'
+        </if>
         <if test="customerPhone != null and customerPhone != ''">
         <if test="customerPhone != null and customerPhone != ''">
             AND a.customer_phone = #{customerPhone}
             AND a.customer_phone = #{customerPhone}
         </if>
         </if>
@@ -173,6 +176,9 @@
         <if test="managementType != null and managementType != ''">
         <if test="managementType != null and managementType != ''">
             AND a.management_type = #{managementType}
             AND a.management_type = #{managementType}
         </if>
         </if>
+        <if test="invoicing != null and invoicing != ''">
+            AND a.invoicing = '0'
+        </if>
         <if test="customerPhone != null and customerPhone != ''">
         <if test="customerPhone != null and customerPhone != ''">
             AND a.customer_phone = #{customerPhone}
             AND a.customer_phone = #{customerPhone}
         </if>
         </if>