|
|
@ -523,9 +523,9 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu |
|
|
|
log.error("参数错误+{" + distributionReservationDTO + "}"); |
|
|
|
log.error("参数错误+{" + distributionReservationDTO + "}"); |
|
|
|
return R.status(false); |
|
|
|
return R.status(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
if (Func.isEmpty(distributionReservationDTO.getWarehouseId())) { |
|
|
|
if (Func.isEmpty(distributionReservationDTO.getWarehouseId())) { |
|
|
|
// 获取商场的仓库
|
|
|
|
// 获取商场的仓库
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
|
|
|
distributionReservationDTO.setWarehouseId(myCurrentWarehouse.getId()); |
|
|
|
distributionReservationDTO.setWarehouseId(myCurrentWarehouse.getId()); |
|
|
|
distributionReservationDTO.setWarehouseName(myCurrentWarehouse.getName()); |
|
|
|
distributionReservationDTO.setWarehouseName(myCurrentWarehouse.getName()); |
|
|
|
if (Func.isEmpty(distributionReservationDTO.getWarehouseId())) { |
|
|
|
if (Func.isEmpty(distributionReservationDTO.getWarehouseId())) { |
|
|
@ -534,19 +534,6 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (Func.isEmpty(distributionReservationDTO.getWarehouseName())){
|
|
|
|
|
|
|
|
// log.error("WarehouseName参数错误+{" + distributionReservationDTO.getWarehouseName() + "}");
|
|
|
|
|
|
|
|
// return R.status(false);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
|
|
|
|
|
|
|
|
// if (Func.isEmpty(myCurrentWarehouse)) {
|
|
|
|
|
|
|
|
// return R.fail("无仓库信息!!!");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//构建预约单
|
|
|
|
//构建预约单
|
|
|
|
DistributionReservationEntity reservationEntity = new DistributionReservationEntity(); |
|
|
|
DistributionReservationEntity reservationEntity = new DistributionReservationEntity(); |
|
|
|
Func.copy(distributionReservationDTO, reservationEntity); |
|
|
|
Func.copy(distributionReservationDTO, reservationEntity); |
|
|
@ -958,7 +945,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getWarehouseByDepartment(user.getDeptId()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(format1); |
|
|
|
sb.append(format1); |
|
|
@ -982,7 +969,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getWarehouseByDepartment(user.getDeptId()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(format1); |
|
|
|
sb.append(format1); |
|
|
@ -1007,7 +994,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getWarehouseByDepartment(user.getDeptId()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(format1); |
|
|
|
sb.append(format1); |
|
|
@ -1031,7 +1018,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
String format1 = format.format(new Date()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getWarehouseByDepartment(user.getDeptId()); |
|
|
|
BasicdataWarehouseEntity warehouseByDepartment = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
if (ObjectUtil.isNotEmpty(warehouseByDepartment)) { |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(warehouseByDepartment.getWarehouseCode()); |
|
|
|
sb.append(format1); |
|
|
|
sb.append(format1); |
|
|
@ -1328,7 +1315,9 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu |
|
|
|
DistributionStockupInfoEntity stockupInfoEntity = new DistributionStockupInfoEntity(); |
|
|
|
DistributionStockupInfoEntity stockupInfoEntity = new DistributionStockupInfoEntity(); |
|
|
|
stockupInfoEntity.setStockUpType(StockupTypeConstant.shipei.getValue()); |
|
|
|
stockupInfoEntity.setStockUpType(StockupTypeConstant.shipei.getValue()); |
|
|
|
stockupInfoEntity.setReservationId(ids.get(i)); |
|
|
|
stockupInfoEntity.setReservationId(ids.get(i)); |
|
|
|
stockupInfoEntity.setStockupId(stockupEntity.getId()); |
|
|
|
if(stockupEntity!=null){ |
|
|
|
|
|
|
|
stockupInfoEntity.setStockupId(stockupEntity.getId()); |
|
|
|
|
|
|
|
} |
|
|
|
distributionStockupInfoService.save(stockupInfoEntity); |
|
|
|
distributionStockupInfoService.save(stockupInfoEntity); |
|
|
|
reservationEntity.setStockupStatus(ReservationStockupStatusConstant.daibeihuo.getValue()); |
|
|
|
reservationEntity.setStockupStatus(ReservationStockupStatusConstant.daibeihuo.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|