|
@@ -384,20 +384,22 @@ public class BaseLocationInfoServiceImpl implements IBaseLocationInfoService {
|
|
|
BaseLocationInfo b = baseLocationInfoMapper.selectBaseLocationInfoByLocationNo(baseLocationInfo.getLocationNo(), Constant.WAREHOUSE_ID);
|
|
|
if (b == null) {
|
|
|
//BeanValidators.validateWithException(validator, stu);
|
|
|
+ baseLocationInfo.setStockStatus(Constant.STOCK_STATUS.STOCK00.getValue());
|
|
|
+ baseLocationInfo.setIsEmpty(Constant.IS_YES.Y.name());
|
|
|
+ baseLocationInfo.setWarehouseId(Constant.WAREHOUSE_ID);
|
|
|
baseLocationInfo.setCreateBy(opname);
|
|
|
baseLocationInfo.setCreateTime(new Date());
|
|
|
- baseLocationInfo.setStockStatus("00");
|
|
|
- baseLocationInfo.setIsEmpty("Y");
|
|
|
- baseLocationInfo.setWarehouseId(Constant.WAREHOUSE_ID);
|
|
|
- baseLocationInfo.setColNo(baseLocationInfo.getColNo());
|
|
|
this.insertBaseLocationInfo(baseLocationInfo);
|
|
|
successNum++;
|
|
|
successMsg.append("<br/>" + successNum + "、库位 " + baseLocationInfo.getLocationNo() + " 导入成功");
|
|
|
} else if (updateSupport) {
|
|
|
//BeanValidators.validateWithException(validator, stu);
|
|
|
- b.setUpdateBy(opname);
|
|
|
- b.setUpdateTime(new Date());
|
|
|
- this.updateBaseLocationInfo(b);
|
|
|
+ baseLocationInfo.setId(b.getId());
|
|
|
+ baseLocationInfo.setStockStatus(null);
|
|
|
+ baseLocationInfo.setIsEmpty(null);
|
|
|
+ baseLocationInfo.setUpdateBy(opname);
|
|
|
+ baseLocationInfo.setUpdateTime(new Date());
|
|
|
+ this.updateBaseLocationInfo(baseLocationInfo);
|
|
|
successNum++;
|
|
|
successMsg.append("<br/>" + successNum + "、库位 " + b.getLocationNo() + " 更新成功");
|
|
|
} else {
|