|
|
|
@ -59,10 +59,10 @@ public class WarehouseServiceImpl implements WarehouseService { |
|
|
|
if (count != 0) { |
|
|
|
return R.error(1, "该库位编码已存在"); |
|
|
|
} |
|
|
|
int count1 = warehouseMapper.getLoctionExist(data); |
|
|
|
if (count1 != 0) { |
|
|
|
return R.error(1, "该库位信息已存在"); |
|
|
|
} |
|
|
|
// int count1 = warehouseMapper.getLoctionExist(data); |
|
|
|
// if (count1 != 0) { |
|
|
|
// return R.error(1, "该库位信息已存在"); |
|
|
|
// } |
|
|
|
int i = warehouseMapper.saveLocation(data); |
|
|
|
} |
|
|
|
return R.ok().put("msg","保存成功"); |
|
|
|
|