Showing
1 changed file
with
49 additions
and
11 deletions
| @@ -153,7 +153,7 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | @@ -153,7 +153,7 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | ||
| 153 | handlePurchaseOrderData(flowStatus, businessId); | 153 | handlePurchaseOrderData(flowStatus, businessId); |
| 154 | break; | 154 | break; |
| 155 | case "ORDER_CANCELLATION": | 155 | case "ORDER_CANCELLATION": |
| 156 | - handlePurchaseOrderRevokeData(flowStatus, businessId); | 156 | + handlePurchaseOrderRevokeData(flowStatus, businessId, variable); |
| 157 | break; | 157 | break; |
| 158 | case "SPEC_CHANGE_SUBMIT": | 158 | case "SPEC_CHANGE_SUBMIT": |
| 159 | case "SPEC_CHANGE_CONFIRM": | 159 | case "SPEC_CHANGE_CONFIRM": |
| @@ -268,7 +268,7 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | @@ -268,7 +268,7 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | ||
| 268 | * | 268 | * |
| 269 | * @param businessId 业务ID | 269 | * @param businessId 业务ID |
| 270 | */ | 270 | */ |
| 271 | - private void handlePurchaseOrderRevokeData(String flowStatus, String businessId) { | 271 | + private void handlePurchaseOrderRevokeData(String flowStatus, String businessId, Map<String, Object> variable) { |
| 272 | if (FlowInstanceStatus.APPROVE_PASS.getCode().equals(flowStatus) | 272 | if (FlowInstanceStatus.APPROVE_PASS.getCode().equals(flowStatus) |
| 273 | || FlowInstanceStatus.FINISH.getCode().equals(flowStatus)) { | 273 | || FlowInstanceStatus.FINISH.getCode().equals(flowStatus)) { |
| 274 | purchaseOrderRevokeService.updateStatus(businessId, "PASS"); | 274 | purchaseOrderRevokeService.updateStatus(businessId, "PASS"); |
| @@ -335,24 +335,62 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | @@ -335,24 +335,62 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | ||
| 335 | if (CollectionUtils.isNotEmpty(list2)) { | 335 | if (CollectionUtils.isNotEmpty(list2)) { |
| 336 | userIdList.addAll(list2); | 336 | userIdList.addAll(list2); |
| 337 | } | 337 | } |
| 338 | - //经营办计划员 | ||
| 339 | - List<String> list3 = transactorHandler.listTransactorsByRoleCode("jybjhy", createById); | 338 | + Object o = variable.get("workshopCode"); |
| 339 | + List<String> list3 = new ArrayList<>(); | ||
| 340 | + List<String> list4 = new ArrayList<>(); | ||
| 341 | + List<String> list5 = new ArrayList<>(); | ||
| 342 | + List<String> list6 = new ArrayList<>(); | ||
| 343 | + if (o != null) { | ||
| 344 | + String workshopCode = String.valueOf(o); | ||
| 345 | + if ("yfc".equals(workshopCode)) { | ||
| 346 | + //一分厂经营办计划员 | ||
| 347 | + list3 = transactorHandler.listTransactorsByRoleCode("yfcjybjhy", createById); | ||
| 348 | + //一分厂经营办主管 | ||
| 349 | + list4 = transactorHandler.listTransactorsByRoleCode("yfcjybzg", createById); | ||
| 350 | + //一分厂生产科计划员 | ||
| 351 | + list5 = transactorHandler.listTransactorsByRoleCode("yfcsckjhy", createById); | ||
| 352 | + //一分营销管理科统计员 | ||
| 353 | + list6 = transactorHandler.listTransactorsByRoleCode("yfcyxglktjy", createById); | ||
| 354 | + } else if ("efc".equals(workshopCode)) { | ||
| 355 | + //二分厂经营办计划员 | ||
| 356 | + list3 = transactorHandler.listTransactorsByRoleCode("efcjybjhy", createById); | ||
| 357 | + //二分厂经营办主管 | ||
| 358 | + list4 = transactorHandler.listTransactorsByRoleCode("efcjybzg", createById); | ||
| 359 | + //二分厂生产科计划员 | ||
| 360 | + list5 = transactorHandler.listTransactorsByRoleCode("efcsckjhy", createById); | ||
| 361 | + //二分营销管理科统计员 | ||
| 362 | + list6 = transactorHandler.listTransactorsByRoleCode("efcyxglktjy", createById); | ||
| 363 | + } else if ("sfc".equals(workshopCode)) { | ||
| 364 | + //三分厂经营办计划员 | ||
| 365 | + list3 = transactorHandler.listTransactorsByRoleCode("sfcjybjhy", createById); | ||
| 366 | + //三分厂经营办主管 | ||
| 367 | + list4 = transactorHandler.listTransactorsByRoleCode("sfcjybzg", createById); | ||
| 368 | + //三分厂生产科计划员 | ||
| 369 | + list5 = transactorHandler.listTransactorsByRoleCode("sfcsckjhy", createById); | ||
| 370 | + //三分营销管理科统计员 | ||
| 371 | + list6 = transactorHandler.listTransactorsByRoleCode("sfcyxglktjy", createById); | ||
| 372 | + } else if ("ztfc".equals(workshopCode)) { | ||
| 373 | + //四分厂经营办计划员 | ||
| 374 | + list3 = transactorHandler.listTransactorsByRoleCode("ztfcjybjhy", createById); | ||
| 375 | + //四分厂经营办主管 | ||
| 376 | + list4 = transactorHandler.listTransactorsByRoleCode("ztfcjybzg", createById); | ||
| 377 | + //四分厂生产科计划员 | ||
| 378 | + list5 = transactorHandler.listTransactorsByRoleCode("ztfcsckjhy", createById); | ||
| 379 | + //四分营销管理科统计员 | ||
| 380 | + list6 = transactorHandler.listTransactorsByRoleCode("ztfcyxglktjy", createById); | ||
| 381 | + } | ||
| 382 | + | ||
| 383 | + } | ||
| 384 | + | ||
| 340 | if (CollectionUtils.isNotEmpty(list3)) { | 385 | if (CollectionUtils.isNotEmpty(list3)) { |
| 341 | userIdList.addAll(list3); | 386 | userIdList.addAll(list3); |
| 342 | } | 387 | } |
| 343 | - //经营办主管 | ||
| 344 | - List<String> list4 = transactorHandler.listTransactorsByRoleCode("jybzg", createById); | ||
| 345 | if (CollectionUtils.isNotEmpty(list4)) { | 388 | if (CollectionUtils.isNotEmpty(list4)) { |
| 346 | userIdList.addAll(list4); | 389 | userIdList.addAll(list4); |
| 347 | } | 390 | } |
| 348 | - //生产科计划员 | ||
| 349 | - List<String> list5 = transactorHandler.listTransactorsByRoleCode("sckjhy", createById); | ||
| 350 | if (CollectionUtils.isNotEmpty(list5)) { | 391 | if (CollectionUtils.isNotEmpty(list5)) { |
| 351 | userIdList.addAll(list5); | 392 | userIdList.addAll(list5); |
| 352 | } | 393 | } |
| 353 | - // | ||
| 354 | - //营销管理科统计员 | ||
| 355 | - List<String> list6 = transactorHandler.listTransactorsByRoleCode("yxglktjy", createById); | ||
| 356 | if (CollectionUtils.isNotEmpty(list6)) { | 394 | if (CollectionUtils.isNotEmpty(list6)) { |
| 357 | userIdList.addAll(list6); | 395 | userIdList.addAll(list6); |
| 358 | } | 396 | } |