Commit 59d54f2e authored by zhengyi's avatar zhengyi

Merge branch 'master-fix' into release

parents d8c15dc3 f2af5d64
......@@ -55,7 +55,11 @@ public class ProdLinePriceController {
it.setIsPriced(false);
WarehouseInInfoParam warehouseInInfoVO = it.getWarehouseInInfoVO();
if (Objects.nonNull(warehouseInInfoVO)){
it.setPackages(Arrays.asList(warehouseInInfoVO.getUnits().split(StrUtil.COMMA)));
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