维修管理优化 完善记录信息

This commit is contained in:
syruan 2024-11-19 10:23:09 +08:00
parent a759a4bdba
commit cfd1e9162d
1 changed files with 8 additions and 0 deletions

View File

@ -364,6 +364,9 @@ public class RepairServiceImpl implements RepairService {
repairApplyRecord.setMaId(bean.getMaId()); repairApplyRecord.setMaId(bean.getMaId());
repairApplyRecord.setTypeId(bean.getTypeId()); repairApplyRecord.setTypeId(bean.getTypeId());
repairApplyRecord.setRepairType(outRepairType); repairApplyRecord.setRepairType(outRepairType);
repairApplyRecord.setRepairNum(partList.get(0).getRepairNum());
repairApplyRecord.setScrapNum(0);
repairApplyRecord.setCreateBy(loginUser.getUsername());
repairApplyRecord.setPartName(partList.get(0).getPartName()); repairApplyRecord.setPartName(partList.get(0).getPartName());
repairApplyRecord.setPartType(partList.get(0).getPartType()); repairApplyRecord.setPartType(partList.get(0).getPartType());
repairApplyRecord.setRepairContent(partList.get(0).getRepairContent()); repairApplyRecord.setRepairContent(partList.get(0).getRepairContent());
@ -378,6 +381,7 @@ public class RepairServiceImpl implements RepairService {
repairApplyRecord.setPartPrice(partList.get(0).getPartPrice()); repairApplyRecord.setPartPrice(partList.get(0).getPartPrice());
} }
repairApplyRecord.setPartNum(partList.get(0).getPartNum()); repairApplyRecord.setPartNum(partList.get(0).getPartNum());
repairApplyRecord.setRepairer(loginUser.getUsername());
// 新增维修记录表 // 新增维修记录表
repairMapper.addRecord(repairApplyRecord); repairMapper.addRecord(repairApplyRecord);
@ -415,8 +419,12 @@ public class RepairServiceImpl implements RepairService {
repairApplyRecord.setRepairType(bean.getRepairType()); repairApplyRecord.setRepairType(bean.getRepairType());
repairApplyRecord.setRepairNum(null); repairApplyRecord.setRepairNum(null);
repairApplyRecord.setScrapNum(bean.getNumberScrapRepairPartList().get(0).getScrapNum()); repairApplyRecord.setScrapNum(bean.getNumberScrapRepairPartList().get(0).getScrapNum());
repairApplyRecord.setScrapReason(bean.getNumberScrapRepairPartList().get(0).getScrapReason());
repairApplyRecord.setScrapType(bean.getNumberScrapRepairPartList().get(0).getScrapType());
repairApplyRecord.setCreateBy(loginUser.getUsername()); repairApplyRecord.setCreateBy(loginUser.getUsername());
repairApplyRecord.setStatus(0L); repairApplyRecord.setStatus(0L);
repairApplyRecord.setIsSlt(0L);
// 不选维修配件时, 只添加维修记录表 // 不选维修配件时, 只添加维修记录表
repairMapper.addRecord(repairApplyRecord); repairMapper.addRecord(repairApplyRecord);
} }