Commit 42f77952 authored by 张森's avatar 张森

备品备件修改数量问题处理

parent 3134a5f3
......@@ -240,7 +240,6 @@ public class WlSpareEquipmentServiceImpl extends ServiceImpl<WlSpareEquipmentMap
@Override
public void subtractNum(Long id, Float num) {
synchronized (id.toString()) {
WlSpareEquipment wlSpareEquipment = this.getById(id);
if (num > wlSpareEquipment.getStockNum()) {
throw new BadRequest("使用数量大于备品备件库存数量");
......@@ -248,7 +247,6 @@ public class WlSpareEquipmentServiceImpl extends ServiceImpl<WlSpareEquipmentMap
wlSpareEquipment.setStockNum(wlSpareEquipment.getStockNum() - num);
this.updateById(wlSpareEquipment);
}
}
@Override
public List<EquipmentCategory> getEquipmentTypeAndCount(String bizOrgCode) {
......
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