小修改

This commit is contained in:
xiaofajia 2024-11-29 17:17:01 +08:00
parent ab67214d92
commit 838127c200

View File

@ -179,6 +179,7 @@ public class RepairWaresServiceImpl extends ServiceImpl<RepairWaresMapper, Repai
if (ObjectUtil.isNotEmpty(item.getWarehouse()) && ObjectUtil.isNotEmpty(warehousesMap.get(item.getWarehouse()))) {
wares.setWarehouse(warehousesMap.get(item.getWarehouse()));
}
wares.setStatus("01");
baseMapper.insert(wares);
result.getCreateNames().add(item.getName());
return;
@ -203,6 +204,7 @@ public class RepairWaresServiceImpl extends ServiceImpl<RepairWaresMapper, Repai
if (ObjectUtil.isNotEmpty(item.getWarehouse()) && ObjectUtil.isNotEmpty(warehousesMap.get(item.getWarehouse()))) {
updateWares.setWarehouse(warehousesMap.get(item.getWarehouse()));
}
updateWares.setStatus(wares.getStatus());
baseMapper.updateById(updateWares);
result.getUpdateNames().add(item.getName());
});