|
|
|
@ -33,6 +33,7 @@ import com.logpm.distribution.feign.IDistributionStockArticleClient;
|
|
|
|
|
import com.logpm.distribution.feign.IDistributionStockListClient; |
|
|
|
|
import com.logpm.distribution.vo.UpDownStockupAreaVO; |
|
|
|
|
import com.logpm.warehouse.bean.Resp; |
|
|
|
|
import com.logpm.warehouse.dto.*; |
|
|
|
|
import com.logpm.warehouse.dto.UpShelfPackageDTO; |
|
|
|
|
import com.logpm.warehouse.dto.UpShelfStockDTO; |
|
|
|
|
import com.logpm.warehouse.dto.UpStockupAreaPackageDTO; |
|
|
|
@ -529,7 +530,31 @@ public class WarehouseUpdownStockupAreaServiceImpl extends BaseServiceImpl<Wareh
|
|
|
|
|
log.error(method+"查询零担订单失败"); |
|
|
|
|
return R.fail("请扫描正确订单"); |
|
|
|
|
} |
|
|
|
|
//查询该零担订单是否具备有在备货库位上架的条件
|
|
|
|
|
Integer a = warehouseTrayTypeService.getZeroOrderByOrderId(upDownStockupZeroByOrderCodeAndWarehouseId.getOrderId(),warehouseId); |
|
|
|
|
if (a > 0){ |
|
|
|
|
return R.data(upDownStockupZeroByOrderCodeAndWarehouseId); |
|
|
|
|
}else if (a == 0){ |
|
|
|
|
return R.fail(403,"请先对该订单进行下架操作"); |
|
|
|
|
}else { |
|
|
|
|
log.error(method+"此订单数量异常"); |
|
|
|
|
return R.fail(403,"数据异常"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param upShelfZeroOrderDTOS |
|
|
|
|
* @param allocationId |
|
|
|
|
* @param id |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public R upShelfZeroOrder(List<UpShelfZeroOrderDTO> upShelfZeroOrderDTOS, Long allocationId, Long id) { |
|
|
|
|
//这里目前的上架方式仅仅是进行订单自编码的上架方式和托盘暂时没有绑定关系
|
|
|
|
|
//这里进行上架需要进行上架
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private WarehouseUpdownStockupAreaEntity createdNewUpShelfInventory(Long allocationId, Long warehouseId, UpShelfStockDTO upShelfStockDTO, WarehouseUpdownStockupAreaEntity updownTypeEntity, Long goodsAreaId, BasicdataGoodsAreaEntity goodsAreaEntity, Long goodsShelfId, BasicdataGoodsShelfEntity goodsShelfEntity, BasicdataGoodsAllocationEntity goodsAllocationEntity) { |
|
|
|
|