|
|
|
@ -200,7 +200,6 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "检查备货区", notes = "传入stockupDTO") |
|
|
|
|
public R inspectArea(@RequestParam String fragment) { |
|
|
|
|
|
|
|
|
|
return R.data(basicdataGoodsAllocationClient.findListStockUpAllocationByName(fragment)) ; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -208,7 +207,7 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
@GetMapping("/scanStockUpArea") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "检查备货区", notes = "传入stockupDTO") |
|
|
|
|
public R scanStockUpArea(@RequestParam String stockUpAreaCode) { |
|
|
|
|
public R scanStockUpArea(@RequestParam Long stockUpAreaCode) { |
|
|
|
|
BasicdataGoodsAllocationEntity basicdataGoodsAllocationEntity = basicdataGoodsAllocationClient.scanStockUpAllocationByCode(stockUpAreaCode); |
|
|
|
|
Long goodsAreaId = basicdataGoodsAllocationEntity.getGoodsAreaId(); |
|
|
|
|
BasicdataGoodsAreaEntity entityByGoodsAreaId = basicdataGoodsAreaClient.getEntityByGoodsAreaId(goodsAreaId); |
|
|
|
@ -692,8 +691,8 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Func.isEmpty(myCurrentWarehouse)){ |
|
|
|
|
return R.data(403, "未授权!"); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (scanType == 2) { |
|
|
|
|
//库存品扫描
|
|
|
|
|
Long stockListId = stockupDTO.getStockListId(); |
|
|
|
@ -1183,6 +1182,13 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
log.warn("##################allocationId: 货位ID为空!"); |
|
|
|
|
return R.fail("货位ID不能为空"); |
|
|
|
|
} |
|
|
|
|
if (Objects.isNull(stockupDTO.getGoodsStockupAllocationId())) { |
|
|
|
|
log.warn("##################allocationId: 货位ID为空!"); |
|
|
|
|
return R.fail("备货货位ID不能为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查询备货库位信息
|
|
|
|
|
String allocationIntegrityName = basicdataGoodsAllocationClient.getAllocationIntegrityName(stockupDTO.getGoodsStockupAllocationId()); |
|
|
|
|
//判断是否可以继续备货
|
|
|
|
|
DistributionStockListEntity byId = null; |
|
|
|
|
// if (ObjectUtils.isNull(stockListId)) {
|
|
|
|
@ -1450,7 +1456,12 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
entity.setType(2); |
|
|
|
|
entity.setAllocationId(stockupDTO.getAllocationId()); |
|
|
|
|
entity.setOutboundType(stockupEntity.getTypeService()); |
|
|
|
|
entity.setGoodsStockupAllocationId(stockupDTO.getGoodsStockupAllocationId()); |
|
|
|
|
entity.setStockupArea(allocationIntegrityName); |
|
|
|
|
|
|
|
|
|
distributionStockService.save(entity); |
|
|
|
|
distributionStockService.maintenanceStockUpArea(entity.getStockupId(),allocationIntegrityName); |
|
|
|
|
|
|
|
|
|
// dataSourceTransactionManager.commit(transactionStatus);//提交
|
|
|
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
@ -1551,6 +1562,14 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
return R.fail("包件扫码:预约单id不能为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ------------------2023-12-14 增加扫描
|
|
|
|
|
|
|
|
|
|
// if (Func.isEmpty(stockupDTO.getGoodsStockupAllocationId())){
|
|
|
|
|
// return Resp.scanFail("无备货库位信息", "无备货库位信息!");
|
|
|
|
|
// }
|
|
|
|
|
// -------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
String allocationIntegrityName = basicdataGoodsAllocationClient.getAllocationIntegrityName(stockupDTO.getGoodsStockupAllocationId()); |
|
|
|
|
Integer integer = distributionStockupService.selectPackage(stockupDTO); |
|
|
|
|
switch (integer) { |
|
|
|
|
case 1: |
|
|
|
@ -1594,7 +1613,10 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
entity.setConditions("0"); |
|
|
|
|
entity.setType(2); |
|
|
|
|
entity.setOutboundType(distributionStockupEntity.getTypeService()); |
|
|
|
|
entity.setGoodsStockupAllocationId(stockupDTO.getGoodsStockupAllocationId()); |
|
|
|
|
entity.setStockupArea(allocationIntegrityName); |
|
|
|
|
distributionStockService.save(entity); |
|
|
|
|
distributionStockService.maintenanceStockUpArea(entity.getStockupId(), allocationIntegrityName); |
|
|
|
|
//修改订单备货状态
|
|
|
|
|
distributionAsyncService.updateStockArticleStock(one.getStockArticleId()); |
|
|
|
|
// dataSourceTransactionManager.commit(transactionStatus);//提交
|
|
|
|
|