代码优化

main
judy 10 months ago
parent 786dfcc668
commit 4c9e28db4e
  1. 4
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java
  2. 10
      shkj-wms/src/main/java/com/shkj/wms/service/impl/SysThirdExceptionRequestServiceImpl.java

@ -503,7 +503,9 @@ public class BusinOutInPlanServiceImpl extends ServiceImpl<BusinOutInPlanMapper,
Long containerId = one.getContainerId();
if ((one.getType().equals(PlanTypeEnum.BACK.getValue()) && StringUtils.isNotEmpty(one.getMoldNo())) || one.getType().equals(PlanTypeEnum.IN.getValue())){
if ((one.getType().equals(PlanTypeEnum.BACK.getValue()) && StringUtils.isNotEmpty(one.getMoldNo()))
|| one.getType().equals(PlanTypeEnum.IN.getValue())
|| one.getType().equals(PlanTypeEnum.INV_BACK.getValue())){
List<SysStockDetail> sysStockDetails = sysStockDetailService.getByContainerId(containerId);
boolean b = sysStockDetailService.removeByIds(sysStockDetails.stream().map(x -> x.getId()).collect(Collectors.toList()));
if (b){

@ -42,9 +42,6 @@ public class SysThirdExceptionRequestServiceImpl extends ServiceImpl<SysThirdExc
@Autowired
private StkCallUtil stkCallUtil;
@Autowired
private WmsCallWcsUtil callOutStock;
@Autowired
@Lazy
private IBusinOutInPlanService businOutInPlanService;
@ -53,9 +50,6 @@ public class SysThirdExceptionRequestServiceImpl extends ServiceImpl<SysThirdExc
@Lazy
private IBusinStockMoveDService businStockMoveDService;
@Autowired
private RedisTemplate redisTemplate;
@Override
public Result executeException(String taskCode) throws InterruptedException {
@ -105,10 +99,6 @@ public class SysThirdExceptionRequestServiceImpl extends ServiceImpl<SysThirdExc
}
break;
case ThirdApiTypeEnum.wcsMoveLocationTask:
STKMoveBo moveBo = JSONObject.parseObject(request.getRequestBody(), STKMoveBo.class);
result = stkCallUtil.locationAdjustment(moveBo);
break;
default:
log.info("type = {}", type);
return Result.err().msg("类型异常");

Loading…
Cancel
Save