维修管理优化 完善记录信息
This commit is contained in:
parent
8781a3b74e
commit
4cbede39d1
|
|
@ -509,14 +509,13 @@ public class RepairServiceImpl implements RepairService {
|
||||||
// 遍历配件列表,判断配件类型,收费还是不收费
|
// 遍历配件列表,判断配件类型,收费还是不收费
|
||||||
for (RepairPartDetails partDetails : partList) {
|
for (RepairPartDetails partDetails : partList) {
|
||||||
// 维修记录表信息
|
// 维修记录表信息
|
||||||
repairApplyRecord.setTaskId(bean.getTaskId()).setMaId(bean.getMaId()).setTypeId(bean.getTypeId()).setRepairType(bean.getRepairType());
|
repairApplyRecord.setTaskId(bean.getTaskId()).setMaId(bean.getMaId()).setTypeId(bean.getTypeId()).setRepairType(inRepairType);
|
||||||
if (manageType == manageTypeByCode) {
|
if (manageType == manageTypeByCode) {
|
||||||
repairApplyRecord.setRepairNum(scrapRepairType != bean.getRepairType() ? 1 : 0);
|
repairApplyRecord.setRepairNum(scrapRepairType != bean.getRepairType() ? 1 : 0);
|
||||||
repairApplyRecord.setScrapNum(scrapRepairType == bean.getRepairType() ? 1 : 0);
|
repairApplyRecord.setScrapNum(scrapRepairType == bean.getRepairType() ? 1 : 0);
|
||||||
}
|
}
|
||||||
if (manageType == manageTypeByNumber) {
|
if (manageType == manageTypeByNumber) {
|
||||||
repairApplyRecord.setRepairNum(bean.getRepairNum());
|
repairApplyRecord.setRepairNum(partDetails.getRepairNum());
|
||||||
repairApplyRecord.setScrapNum(bean.getScrapNum());
|
|
||||||
}
|
}
|
||||||
repairApplyRecord.setCreateBy(loginUser.getUsername());
|
repairApplyRecord.setCreateBy(loginUser.getUsername());
|
||||||
repairApplyRecord.setStatus(0L);
|
repairApplyRecord.setStatus(0L);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue