小修改
This commit is contained in:
parent
ab67214d92
commit
838127c200
@ -179,6 +179,7 @@ public class RepairWaresServiceImpl extends ServiceImpl<RepairWaresMapper, Repai
|
|||||||
if (ObjectUtil.isNotEmpty(item.getWarehouse()) && ObjectUtil.isNotEmpty(warehousesMap.get(item.getWarehouse()))) {
|
if (ObjectUtil.isNotEmpty(item.getWarehouse()) && ObjectUtil.isNotEmpty(warehousesMap.get(item.getWarehouse()))) {
|
||||||
wares.setWarehouse(warehousesMap.get(item.getWarehouse()));
|
wares.setWarehouse(warehousesMap.get(item.getWarehouse()));
|
||||||
}
|
}
|
||||||
|
wares.setStatus("01");
|
||||||
baseMapper.insert(wares);
|
baseMapper.insert(wares);
|
||||||
result.getCreateNames().add(item.getName());
|
result.getCreateNames().add(item.getName());
|
||||||
return;
|
return;
|
||||||
@ -203,6 +204,7 @@ public class RepairWaresServiceImpl extends ServiceImpl<RepairWaresMapper, Repai
|
|||||||
if (ObjectUtil.isNotEmpty(item.getWarehouse()) && ObjectUtil.isNotEmpty(warehousesMap.get(item.getWarehouse()))) {
|
if (ObjectUtil.isNotEmpty(item.getWarehouse()) && ObjectUtil.isNotEmpty(warehousesMap.get(item.getWarehouse()))) {
|
||||||
updateWares.setWarehouse(warehousesMap.get(item.getWarehouse()));
|
updateWares.setWarehouse(warehousesMap.get(item.getWarehouse()));
|
||||||
}
|
}
|
||||||
|
updateWares.setStatus(wares.getStatus());
|
||||||
baseMapper.updateById(updateWares);
|
baseMapper.updateById(updateWares);
|
||||||
result.getUpdateNames().add(item.getName());
|
result.getUpdateNames().add(item.getName());
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user