Commit f2af5d64 authored by zhengyi's avatar zhengyi

生产订单实时计价参数问题修复,入仓订单包装单位空值问题

parent 309f888f
......@@ -55,7 +55,11 @@ public class ProdLinePriceController {
it.setIsPriced(false);
WarehouseInInfoParam warehouseInInfoVO = it.getWarehouseInInfoVO();
if (Objects.nonNull(warehouseInInfoVO)){
if (StrUtil.isNotBlank(warehouseInInfoVO.getUnits())) {
it.setPackages(Arrays.asList(warehouseInInfoVO.getUnits().split(StrUtil.COMMA)));
}else {
it.setPackages(Arrays.asList(it.getUnit().split(StrUtil.COMMA)));
}
it.setVolume(warehouseInInfoVO.getVolume());
it.setWeight(warehouseInInfoVO.getWeight());
it.setQuantity(warehouseInInfoVO.getQuantityAll());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment