|
|
|
@ -980,9 +980,23 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
return R.fail("请先选择作业仓库!!!"); |
|
|
|
|
} |
|
|
|
|
boolean result = false; |
|
|
|
|
if (Func.isEmpty(stockUpInfo.get("ids"))) { |
|
|
|
|
log.error("参数异常:+{" + stockUpInfo.get("ids") + "}"); |
|
|
|
|
return R.fail("服务器正忙!!!"); |
|
|
|
|
} |
|
|
|
|
String ids = (String) stockUpInfo.get("ids"); |
|
|
|
|
List<Long> list = Func.toLongList(",", ids); |
|
|
|
|
List<DistributionReservationEntity> distributionReservationEntities = this.listByIds(list); |
|
|
|
|
if (Func.isNotEmpty(distributionReservationEntities)){ |
|
|
|
|
//查询此次进行提交的预约是否已经进行备货任务的提交
|
|
|
|
|
List<DistributionReservationEntity> yijingbeihuo = distributionReservationEntities.stream().filter(p -> p.getStockupStatus().equals(ReservationStockupStatusConstant.daibeihuo.getValue())).collect(Collectors.toList()); |
|
|
|
|
if (Func.isNotEmpty(yijingbeihuo) && yijingbeihuo.size() >=1){ |
|
|
|
|
String errorReservationCode = yijingbeihuo.stream().map(DistributionReservationEntity::getReservationCode).collect(Collectors.joining(",")); |
|
|
|
|
return R.fail("预约单号:"+errorReservationCode+"已经提交过备货任务!!!"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
//获取前端携带批量转备货的id
|
|
|
|
|
String ids = (String) stockUpInfo.get("ids"); |
|
|
|
|
//完成对备货表数据的保存
|
|
|
|
|
String stockUpDate = (String) stockUpInfo.get("stockupDate"); |
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|