Compare commits
2 Commits
98d2553681
...
0af7c7cf0b
| Author | SHA1 | Date |
|---|---|---|
|
|
0af7c7cf0b | |
|
|
aecc2ca7a7 |
|
|
@ -82,6 +82,7 @@ public class RepairServiceImpl implements RepairService {
|
||||||
List<RepairPartDetails> partList = bean.getPartList();
|
List<RepairPartDetails> partList = bean.getPartList();
|
||||||
BigDecimal sfCosts = new BigDecimal("0");
|
BigDecimal sfCosts = new BigDecimal("0");
|
||||||
BigDecimal bsfCosts = new BigDecimal("0");
|
BigDecimal bsfCosts = new BigDecimal("0");
|
||||||
|
Integer partNum = 0;
|
||||||
String nbType = "1"; // 内部维修
|
String nbType = "1"; // 内部维修
|
||||||
String fcType = "2"; //返厂维修
|
String fcType = "2"; //返厂维修
|
||||||
String sfPart = "1"; //收费
|
String sfPart = "1"; //收费
|
||||||
|
|
@ -135,11 +136,12 @@ public class RepairServiceImpl implements RepairService {
|
||||||
partDetails.setCompanyId(bean.getCompanyId());
|
partDetails.setCompanyId(bean.getCompanyId());
|
||||||
mapper.addPart(partDetails);
|
mapper.addPart(partDetails);
|
||||||
bean.setPartPrice(partDetails.getPartCost());
|
bean.setPartPrice(partDetails.getPartCost());
|
||||||
bean.setPartNum(partDetails.getPartNum());
|
partNum += partDetails.getPartNum();
|
||||||
bean.setRepairContent(partDetails.getRepairContent());
|
bean.setRepairContent(partDetails.getRepairContent());
|
||||||
bean.setPartType(partDetails.getPartType());
|
bean.setPartType(partDetails.getPartType());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
bean.setPartNum(partNum);
|
||||||
}
|
}
|
||||||
if (fcType.equals(bean.getRepairType())) {
|
if (fcType.equals(bean.getRepairType())) {
|
||||||
bean.setPartName(partList.get(0).getPartName());
|
bean.setPartName(partList.get(0).getPartName());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue