Commit 6697f77b590f05465b44d5b060962a4ea6d09193

Authored by yeqianyong
1 parent d510f38c

楚江ERP-订货单确认变更bug修复

@@ -301,7 +301,7 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR @@ -301,7 +301,7 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR
301 Boolean output = data.getOutput(); 301 Boolean output = data.getOutput();
302 if (BooleanUtils.isTrue(output)) { 302 if (BooleanUtils.isTrue(output)) {
303 // 获取办事处数据 303 // 获取办事处数据
304 - String deptCode = transactorHandler.returnDeptCode(SecurityUtil.getCurrentUser().getId()); 304 + String deptCode = transactorHandler.returnDeptCode(data.getCreateById());
305 if (StringUtils.isNotBlank(deptCode)) { 305 if (StringUtils.isNotBlank(deptCode)) {
306 data.setDeptCode(deptCode); 306 data.setDeptCode(deptCode);
307 } 307 }
@@ -401,7 +401,12 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR @@ -401,7 +401,12 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR
401 updateWrapper.set(OrderInfoChangeRecord::getExamineStatus, "AUDIT") 401 updateWrapper.set(OrderInfoChangeRecord::getExamineStatus, "AUDIT")
402 .eq(OrderInfoChangeRecord::getId, id); 402 .eq(OrderInfoChangeRecord::getId, id);
403 getBaseMapper().update(updateWrapper); 403 getBaseMapper().update(updateWrapper);
404 - 404 + // 获取办事处数据
  405 + String deptCode = transactorHandler.returnDeptCode(record.getCreateById());
  406 + if (StringUtils.isNotBlank(deptCode)) {
  407 + record.setDeptCode(deptCode);
  408 + }
  409 + // 发起流程
405 flowInstanceWrapperService.startInstance("SPEC_CHANGE_CONFIRM", id, "SPEC_CHANGE_CONFIRM", record); 410 flowInstanceWrapperService.startInstance("SPEC_CHANGE_CONFIRM", id, "SPEC_CHANGE_CONFIRM", record);
406 } 411 }
407 } 412 }
@@ -193,7 +193,7 @@ @@ -193,7 +193,7 @@
193 </when> 193 </when>
194 <when test="vo.queryType == 'CHANGE'"> 194 <when test="vo.queryType == 'CHANGE'">
195 AND tb.examine_status = 'PASS' 195 AND tb.examine_status = 'PASS'
196 - AND tb.status NOT IN ('SHIPPED', 'DELIVERED') 196 + AND tb.status NOT IN ('SHIPPED', 'DELIVERED', 'CANCEL')
197 AND (tb.revoke_status != 'UNDOING' OR tb.revoke_status IS NULL) 197 AND (tb.revoke_status != 'UNDOING' OR tb.revoke_status IS NULL)
198 AND (tb.spec_change_status != 'IN_PROGRESS' OR tb.spec_change_status IS NULL) 198 AND (tb.spec_change_status != 'IN_PROGRESS' OR tb.spec_change_status IS NULL)
199 </when> 199 </when>