重庆需求变更代码提交

This commit is contained in:
liang.chao 2024-09-23 17:46:05 +08:00
parent b4c2506f5a
commit 7705e3245a
1 changed files with 5 additions and 5 deletions

View File

@ -147,7 +147,7 @@ public class MaTypeServiceImpl implements ITypeService {
typeFileMapper.insertMaTypeFile(typeFile1); typeFileMapper.insertMaTypeFile(typeFile1);
} }
// 库管员配置 // 库管员配置
if (maType.getKeeperUserId() >= 0L) { if (maType.getKeeperUserId() != null) {
maTypeMapper.deleteKeeperByTypeId(typeId); maTypeMapper.deleteKeeperByTypeId(typeId);
MaTypeKeeper typeKeeper = new MaTypeKeeper(); MaTypeKeeper typeKeeper = new MaTypeKeeper();
typeKeeper.setUserId(maType.getKeeperUserId()); typeKeeper.setUserId(maType.getKeeperUserId());
@ -158,7 +158,7 @@ public class MaTypeServiceImpl implements ITypeService {
} }
// 维修员配置 // 维修员配置
if (maType.getRepairUserId() >= 0L) { if (maType.getRepairUserId() != null) {
maTypeMapper.deleteTypeByTypeId(typeId); maTypeMapper.deleteTypeByTypeId(typeId);
MaTypeRepair typeRepair = new MaTypeRepair(); MaTypeRepair typeRepair = new MaTypeRepair();
typeRepair.setUserId(maType.getRepairUserId()); typeRepair.setUserId(maType.getRepairUserId());
@ -335,7 +335,7 @@ public class MaTypeServiceImpl implements ITypeService {
@Override @Override
public List<Integer> selectParentId(Long typeId, Integer level) { public List<Integer> selectParentId(Long typeId, Integer level) {
return maTypeMapper.selectParentId(typeId,level); return maTypeMapper.selectParentId(typeId, level);
} }
/** /**