gongdecai 1 рік тому
батько
коміт
499b2aa626
30 змінених файлів з 201 додано та 188 видалено
  1. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/AcquisitionListener.java
  2. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/AcquisitionPayListener.java
  3. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/BukaListener.java
  4. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/BuyContractListener.java
  5. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ContractCostInfoListener.java
  6. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/DcContractListener.java
  7. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/DsContractListListener.java
  8. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/DsContractListener.java
  9. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ExepenseInfoListener.java
  10. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ExepenseListener.java
  11. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ExepenseYunListener.java
  12. 4 4
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/FuelFingListener.java
  13. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/GeneralAuditInfoListener.java
  14. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/GoodsPurchaseReceiptReportListener.java
  15. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/InOutWharehoseTaskListener.java
  16. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/NonContractExpensesListener.java
  17. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ProcurementOrderListener.java
  18. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/PurchaseClosingReportListener.java
  19. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/PurchaseReceiptReportListener.java
  20. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/QingjiaListener.java
  21. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleCloseReportListener.java
  22. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleContractListener.java
  23. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleOrderListener.java
  24. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleOutReportListener.java
  25. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ShouContractListener.java
  26. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/TradeServicesListener.java
  27. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/TranProessListener.java
  28. 6 6
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/TranSettlementReportListener.java
  29. 4 4
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/WarehousingDebitListener.java
  30. 31 18
      winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/WarehousingOrderListener.java

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/AcquisitionListener.java

@@ -46,24 +46,24 @@ public class AcquisitionListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             purchasePrice.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         purchasePriceService.updateAllColumnById(purchasePrice);
@@ -83,12 +83,12 @@ public class AcquisitionListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/AcquisitionPayListener.java

@@ -44,24 +44,24 @@ public class AcquisitionPayListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             paymentManagement.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         paymentManagementService.updateAllColumnById(paymentManagement);
@@ -81,12 +81,12 @@ public class AcquisitionPayListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/BukaListener.java

@@ -42,24 +42,24 @@ public class BukaListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             clockInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         clockInfoService.updateAllColumnById(clockInfo);
@@ -79,12 +79,12 @@ public class BukaListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/BuyContractListener.java

@@ -42,24 +42,24 @@ public class BuyContractListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             contractManagementInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         contractManagementInfoService.updateAllColumnById(contractManagementInfo);
@@ -79,12 +79,12 @@ public class BuyContractListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ContractCostInfoListener.java

@@ -42,24 +42,24 @@ public class ContractCostInfoListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             contractCostInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         contractCostInfoService.updateAllColumnById(contractCostInfo);
@@ -79,12 +79,12 @@ public class ContractCostInfoListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/DcContractListener.java

@@ -42,24 +42,24 @@ public class DcContractListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             contractManagementInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         contractManagementInfoService.updateAllColumnById(contractManagementInfo);
@@ -79,12 +79,12 @@ public class DcContractListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/DsContractListListener.java

@@ -44,24 +44,24 @@ public class DsContractListListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             collectionWarehousingRecord.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         collectionWarehousingRecordService.updateAllColumnById(collectionWarehousingRecord);
@@ -81,12 +81,12 @@ public class DsContractListListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/DsContractListener.java

@@ -42,24 +42,24 @@ public class DsContractListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             contractManagementInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         contractManagementInfoService.updateAllColumnById(contractManagementInfo);
@@ -79,12 +79,12 @@ public class DsContractListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ExepenseInfoListener.java

@@ -59,12 +59,12 @@ public class ExepenseInfoListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
 
             // 先删除任务
@@ -92,12 +92,12 @@ public class ExepenseInfoListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         expenseInfoService.updateAllColumnById(expenseInfo);
@@ -117,12 +117,12 @@ public class ExepenseInfoListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ExepenseListener.java

@@ -58,12 +58,12 @@ public class ExepenseListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
 
             // 先删除任务
@@ -91,12 +91,12 @@ public class ExepenseListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         expenseInfoService.updateAllColumnById(expenseInfo);
@@ -116,12 +116,12 @@ public class ExepenseListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ExepenseYunListener.java

@@ -72,12 +72,12 @@ public class ExepenseYunListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
 
             // 先删除任务
@@ -105,12 +105,12 @@ public class ExepenseYunListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         expenseInfoService.updateAllColumnById(expenseInfo);
@@ -139,12 +139,12 @@ public class ExepenseYunListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 4 - 4
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/FuelFingListener.java

@@ -92,12 +92,12 @@ public class FuelFingListener extends AbstractWorkflowTaskListener {
             fuelFillingInfo.setApproveStatus(status);
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         fuelFillingInfoService.updateAllColumnById(fuelFillingInfo);
@@ -128,12 +128,12 @@ public class FuelFingListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/GeneralAuditInfoListener.java

@@ -43,24 +43,24 @@ public class GeneralAuditInfoListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             generalAuditInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         generalAuditInfoService.updateAllColumnById(generalAuditInfo);
@@ -80,12 +80,12 @@ public class GeneralAuditInfoListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/GoodsPurchaseReceiptReportListener.java

@@ -44,24 +44,24 @@ public class GoodsPurchaseReceiptReportListener extends AbstractWorkflowTaskList
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             purchaseReceiptReport.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         stockPurchaseReceiptReportService.updateAllColumnById(purchaseReceiptReport);
@@ -81,12 +81,12 @@ public class GoodsPurchaseReceiptReportListener extends AbstractWorkflowTaskList
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/InOutWharehoseTaskListener.java

@@ -44,24 +44,24 @@ public class InOutWharehoseTaskListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             inOutWarehouseTask.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         iInOutWarehouseTaskService.updateAllColumnById(inOutWarehouseTask);
@@ -81,12 +81,12 @@ public class InOutWharehoseTaskListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/NonContractExpensesListener.java

@@ -44,24 +44,24 @@ public class NonContractExpensesListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             nonContractExpenses.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         nonContractExpensesService.updateAllColumnById(nonContractExpenses);
@@ -81,12 +81,12 @@ public class NonContractExpensesListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ProcurementOrderListener.java

@@ -45,24 +45,24 @@ public class ProcurementOrderListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             purchaseOrder.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         iPurchaseOrderService.updateAllColumnById(purchaseOrder);
@@ -82,12 +82,12 @@ public class ProcurementOrderListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/PurchaseClosingReportListener.java

@@ -44,24 +44,24 @@ public class PurchaseClosingReportListener extends AbstractWorkflowTaskListener
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             purchaseReceiptReport.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         purchaseClosingReportService.updateAllColumnById(purchaseReceiptReport);
@@ -81,12 +81,12 @@ public class PurchaseClosingReportListener extends AbstractWorkflowTaskListener
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/PurchaseReceiptReportListener.java

@@ -44,24 +44,24 @@ public class PurchaseReceiptReportListener extends AbstractWorkflowTaskListener
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             purchaseReceiptReport.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         purchaseReceiptReportService.updateAllColumnById(purchaseReceiptReport);
@@ -81,12 +81,12 @@ public class PurchaseReceiptReportListener extends AbstractWorkflowTaskListener
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/QingjiaListener.java

@@ -42,24 +42,24 @@ public class QingjiaListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             leaveInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         leaveInfoService.updateAllColumnById(leaveInfo);
@@ -79,12 +79,12 @@ public class QingjiaListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleCloseReportListener.java

@@ -44,24 +44,24 @@ public class SaleCloseReportListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             salesClosingReport.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         salesClosingReportService.updateAllColumnById(salesClosingReport);
@@ -81,12 +81,12 @@ public class SaleCloseReportListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleContractListener.java

@@ -44,24 +44,24 @@ public class SaleContractListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             contractManagementInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         contractManagementInfoService.updateAllColumnById(contractManagementInfo);
@@ -81,12 +81,12 @@ public class SaleContractListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleOrderListener.java

@@ -42,24 +42,24 @@ public class SaleOrderListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             saleOrder.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         saleOrderService.updateAllColumnById(saleOrder);
@@ -79,12 +79,12 @@ public class SaleOrderListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/SaleOutReportListener.java

@@ -43,24 +43,24 @@ public class SaleOutReportListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             salesDeliveryReport.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         salesDeliveryReportService.updateAllColumnById(salesDeliveryReport);
@@ -80,12 +80,12 @@ public class SaleOutReportListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/ShouContractListener.java

@@ -40,24 +40,24 @@ public class ShouContractListener extends AbstractWorkflowTaskListener {
 
           if(statusRecord1 != null){
               statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//              statusRecordMapper.updateById(statusRecord1);
+              statusRecordMapper.updateById(statusRecord1);
           }
           else{
               statusRecord.setId(businessKey);
               statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//              statusRecordMapper.insert(statusRecord);
+              statusRecordMapper.insert(statusRecord);
           }
         } else {
             contractManagementInfo.setApproveStatus(status);
 
           if(statusRecord1 != null){
               statusRecord1.setStatus(status);
-//              statusRecordMapper.updateById(statusRecord1);
+              statusRecordMapper.updateById(statusRecord1);
           }
           else{
               statusRecord.setId(businessKey);
               statusRecord.setStatus(status);
-//              statusRecordMapper.insert(statusRecord);
+              statusRecordMapper.insert(statusRecord);
           }
       }
         contractManagementInfoService.updateAllColumnById(contractManagementInfo);
@@ -77,12 +77,12 @@ public class ShouContractListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/TradeServicesListener.java

@@ -40,24 +40,24 @@ public class TradeServicesListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             tradeWarehouseReceiptAppl.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         tradeWarehouseReceiptApplService.updateAllColumnById(tradeWarehouseReceiptAppl);
@@ -77,12 +77,12 @@ public class TradeServicesListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/TranProessListener.java

@@ -67,24 +67,24 @@ public class TranProessListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             tranProcessInfo.setApproveStatus(status);
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         tranProcessInfoService.updateAllColumnById(tranProcessInfo);
@@ -104,12 +104,12 @@ public class TranProessListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 6 - 6
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/TranSettlementReportListener.java

@@ -51,12 +51,12 @@ public class TranSettlementReportListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
             flag =1;
         } else {
@@ -64,12 +64,12 @@ public class TranSettlementReportListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         batchReviewInfoService.updateAllColumnById(batchReviewInfo);
@@ -126,12 +126,12 @@ public class TranSettlementReportListener extends AbstractWorkflowTaskListener {
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
         if(statusRecord1 != null){
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
+            statusRecordMapper.updateById(statusRecord1);
         }
         else{
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }
 

+ 4 - 4
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/WarehousingDebitListener.java

@@ -40,12 +40,12 @@ public class WarehousingDebitListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         } else {
             warehousingOrder.setApproveStatus(status);
@@ -53,12 +53,12 @@ public class WarehousingDebitListener extends AbstractWorkflowTaskListener {
 
             if(statusRecord1 != null){
                 statusRecord1.setStatus(status);
-//                statusRecordMapper.updateById(statusRecord1);
+                statusRecordMapper.updateById(statusRecord1);
             }
             else{
                 statusRecord.setId(businessKey);
                 statusRecord.setStatus(status);
-//                statusRecordMapper.insert(statusRecord);
+                statusRecordMapper.insert(statusRecord);
             }
         }
         warehousingOrderService.updateAllColumnById(warehousingOrder);

+ 31 - 18
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/workflow/WarehousingOrderListener.java

@@ -29,10 +29,11 @@ public class WarehousingOrderListener extends AbstractWorkflowTaskListener {
 
     @Override
     public void handleStatusChanged(String businessKey, String status, String statusEn, boolean processIsEnd) {
-        List<WarehousingOrder> list = warehousingOrderService.selectList(new EntityWrapper<WarehousingOrder>().eq("batch_id",businessKey));
+        List<WarehousingOrder> list = warehousingOrderService.selectList(new EntityWrapper<WarehousingOrder>().eq("batch_id", businessKey));
         StatusRecord statusRecord = new StatusRecord();
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
-        for(WarehousingOrder warehousingOrder : list){
+        int flag = 0;
+        for (WarehousingOrder warehousingOrder : list) {
             if (warehousingOrder == null) {
                 return;
             }
@@ -41,28 +42,41 @@ public class WarehousingOrderListener extends AbstractWorkflowTaskListener {
                 warehousingOrder.setStatus(StatusEnum.NOT_COLLECTION_PAY.getName());
                 warehousingOrder.setWorkflowId(null);
                 warehousingOrder.setApproveStatus(null);
-
-                if(statusRecord1 != null){
-                    statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                    statusRecordMapper.updateById(statusRecord1);
-                }
-                else{
-                    statusRecord.setId(businessKey);
-                    statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
-//                    statusRecordMapper.insert(statusRecord);
+                if (flag == 0) {
+                    if (statusRecord1 != null) {
+                        statusRecord1.setStatus(StatusEnum.ORDER_PASSED.getName());
+                        statusRecordMapper.updateById(statusRecord1);
+                    } else {
+                        statusRecord.setId(businessKey);
+                        statusRecord.setStatus(StatusEnum.ORDER_PASSED.getName());
+                        statusRecordMapper.insert(statusRecord);
+                    }
                 }
+
+
             } else {
                 warehousingOrder.setApproveStatus(status);
+                if (flag == 0) {
+                    if (statusRecord1 != null) {
+                        statusRecord1.setStatus(status);
+                        statusRecordMapper.updateById(statusRecord1);
+                    } else {
+                        statusRecord.setId(businessKey);
+                        statusRecord.setStatus(status);
+                        statusRecordMapper.insert(statusRecord);
+                    }
+                }
             }
             warehousingOrderService.updateAllColumnById(warehousingOrder);
+            flag++;
         }
 
     }
 
     @Override
     public void handleRejectApplicationRepulsed(String workflowId, String businessKey, boolean needReapply) {
-        List<WarehousingOrder> list = warehousingOrderService.selectList(new EntityWrapper<WarehousingOrder>().eq("batch_id",businessKey));
-        for(WarehousingOrder warehousingOrder : list){
+        List<WarehousingOrder> list = warehousingOrderService.selectList(new EntityWrapper<WarehousingOrder>().eq("batch_id", businessKey));
+        for (WarehousingOrder warehousingOrder : list) {
             warehousingOrder = warehousingOrderService.selectById(warehousingOrder.getId());
             if (warehousingOrder == null) {
                 return;
@@ -75,14 +89,13 @@ public class WarehousingOrderListener extends AbstractWorkflowTaskListener {
 
         StatusRecord statusRecord = new StatusRecord();
         StatusRecord statusRecord1 = statusRecordMapper.selectById(businessKey);
-        if(statusRecord1 != null){
+        if (statusRecord1 != null) {
             statusRecord1.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.updateById(statusRecord1);
-        }
-        else{
+            statusRecordMapper.updateById(statusRecord1);
+        } else {
             statusRecord.setId(businessKey);
             statusRecord.setStatus(StatusEnum.PURCHASE_FAILED.getName());
-//            statusRecordMapper.insert(statusRecord);
+            statusRecordMapper.insert(statusRecord);
         }
     }