|
|
|
@ -5900,6 +5900,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Transactional |
|
|
|
|
public R upStockUpShelf(StockupDTO stockupDTO) { |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)){ |
|
|
|
@ -5948,6 +5949,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Transactional |
|
|
|
|
public R cancelStock(StockupDTO stockupDTO) { |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)){ |
|
|
|
@ -5957,14 +5959,14 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
String stockIds = stockupDTO.getStockIds(); |
|
|
|
|
Long stockupId = stockupDTO.getStockupId(); |
|
|
|
|
DistributionStockupEntity stockupEntity = this.getById(stockupId); |
|
|
|
|
boolean b = this.judgeIsPickingStaff(AuthUtil.getUser()); |
|
|
|
|
if (!b) { |
|
|
|
|
return Resp.scanFail("当前操作人无此操作权限","当前操作人无此操作权限"); |
|
|
|
|
}else { |
|
|
|
|
if (!stockupEntity.getForkliftId().equals(AuthUtil.getUserId())){ |
|
|
|
|
return Resp.scanFail("与任务指派拣货员不一致","与任务指派拣货员不一致"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// boolean b = this.judgeIsPickingStaff(AuthUtil.getUser());
|
|
|
|
|
// if (!b) {
|
|
|
|
|
// return Resp.scanFail("当前操作人无此操作权限","当前操作人无此操作权限");
|
|
|
|
|
// }else {
|
|
|
|
|
// if (!stockupEntity.getForkliftId().equals(AuthUtil.getUserId())){
|
|
|
|
|
// return Resp.scanFail("与任务指派拣货员不一致","与任务指派拣货员不一致");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
List<String> strList = Func.toStrList(stockIds); |
|
|
|
|
List<DistributionStockEntity> distributionStockEntities = distributionStockService.listByIds(strList); |
|
|
|
|
int sum = 0; |
|
|
|
@ -6093,9 +6095,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (Objects.isNull(stockUpClientVO)){ |
|
|
|
|
return R.fail("查询备货客户信息错误"); |
|
|
|
|
} |
|
|
|
|
List<DistributionAppStockUpTrayDetailVO> distributionAppStockUpTrayDetailVOS = distributionReservationMapper.deliveryTrayDetailList(reservationId); |
|
|
|
|
if (!distributionAppStockUpTrayDetailVOS.isEmpty()) { |
|
|
|
|
stockUpClientVO.setDeliveryTrayList(distributionAppStockUpTrayDetailVOS); |
|
|
|
|
List<DistributionAppStockUpTrayDetailVO> deliveryTrayDetailList = distributionReservationMapper.deliveryTrayDetailList(reservationId); |
|
|
|
|
if (!deliveryTrayDetailList.isEmpty()) { |
|
|
|
|
stockUpClientVO.setDeliveryTrayList(deliveryTrayDetailList); |
|
|
|
|
} |
|
|
|
|
return R.data(stockUpClientVO); |
|
|
|
|
} |
|
|
|
|