|
|
|
@ -638,13 +638,13 @@ public class WtSpBasicServiceImpl extends BaseServiceImpl<WtSpBasicMapper, WtSpB
|
|
|
|
|
if (StringUtils.isBlank(libraryExcel.getUnit())) { |
|
|
|
|
errors.add("物品单位不能为空"); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isEmpty(libraryExcel.getUpperLimit()) && libraryExcel.getUpperLimit() < 0) { |
|
|
|
|
if (ObjectUtil.isEmpty(libraryExcel.getUpperLimit()) || libraryExcel.getUpperLimit() < 0) { |
|
|
|
|
errors.add("库存上限不能为空"); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isEmpty(libraryExcel.getLowerLimit()) && libraryExcel.getLowerLimit() < 0) { |
|
|
|
|
if (ObjectUtil.isEmpty(libraryExcel.getLowerLimit()) || libraryExcel.getLowerLimit() < 0) { |
|
|
|
|
errors.add("库存下限不能为空"); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isEmpty(libraryExcel.getLowerLimit()) && ObjectUtil.isEmpty(libraryExcel.getLowerLimit())) { |
|
|
|
|
if (ObjectUtil.isNotEmpty(libraryExcel.getLowerLimit()) && ObjectUtil.isNotEmpty(libraryExcel.getLowerLimit())) { |
|
|
|
|
if (libraryExcel.getLowerLimit() > libraryExcel.getLowerLimit()) { |
|
|
|
|
errors.add("库存下限不能大于库存上限"); |
|
|
|
|
} |
|
|
|
|