소스 검색

1.资产优化
2.新增大中型提成申报拒绝后不删除大中型产品绩效分配,以修复提成计算脏数据导致结果异常

GouGengquan 1 년 전
부모
커밋
c8ae5f8e14

+ 1 - 1
dao/src/main/resources/mapper/BusinessIncomeMapper.xml

@@ -66,7 +66,7 @@
         order by settleDate DESC
     </select>
 
-    <!--资产实收款统计-->
+    <!--资产我的提成-->
     <sql id="myAssetsIncomeSql">
         SELECT bpd.id,
                a.name                                                                           AS name,

+ 6 - 0
service/src/main/java/com/dayou/workflow/config/WorkNodeProcessable.java

@@ -84,6 +84,9 @@ public class WorkNodeProcessable {
     @Autowired
     private IBusinessPerformanceDistributionService businessPerformanceDistributionService;
 
+    @Autowired
+    private IMajorProductionAllotService majorProductionAllotService;
+
 
     /**
      * 提交流程前置处理
@@ -370,6 +373,9 @@ public class WorkNodeProcessable {
             case COMMISSION_DECLARE_MAJOR_MARKET:
                 commissionDeclareService.update(new LambdaUpdateWrapper<CommissionDeclare>().set(CommissionDeclare::getDeclareResult,审核拒绝.name())
                         .eq(BaseEntity::getId,currentInstanceNode.getBusinessId()));
+                majorProductionAllotService.update(new LambdaUpdateWrapper<MajorProductionAllot>()
+                        .set(MajorProductionAllot::getDeleted, 1)
+                        .eq(MajorProductionAllot::getDeclareId, currentInstanceNode.getBusinessId()));
                 break;
             case COMMISSION_DECLARE_ASSET_MARKET:
             case COMMISSION_DECLARE_ASSET_EVALUATE: