重庆测试问题修改
This commit is contained in:
parent
948b3a524c
commit
74869937fe
|
|
@ -59,6 +59,7 @@ public class RepairServiceImpl implements RepairService {
|
|||
List<RepairPartDetails> partList = bean.getPartList();
|
||||
BigDecimal sfCosts = new BigDecimal("0");
|
||||
BigDecimal bsfCosts = new BigDecimal("0");
|
||||
Integer partNum = 0;
|
||||
String nbType = "1";
|
||||
String fcType = "2";
|
||||
String sfPart = "1";
|
||||
|
|
@ -111,8 +112,10 @@ public class RepairServiceImpl implements RepairService {
|
|||
partDetails.setCreateBy(loginUser.getUserid());
|
||||
partDetails.setCompanyId(bean.getCompanyId());
|
||||
mapper.addPart(partDetails);
|
||||
partNum += partDetails.getPartNum();
|
||||
}
|
||||
}
|
||||
bean.setPartNum(partNum);
|
||||
}
|
||||
if (fcType.equals(bean.getRepairType())) {
|
||||
bean.setPartName(partList.get(0).getPartName());
|
||||
|
|
@ -131,6 +134,7 @@ public class RepairServiceImpl implements RepairService {
|
|||
bean.setPartNum(partList.get(0).getPartNum());
|
||||
}
|
||||
for (RepairPartDetails partDetails : partList) {
|
||||
|
||||
if (sfPart.equals(partDetails.getPartType())) {
|
||||
if (StringUtils.isEmpty(partDetails.getPartCost())) {
|
||||
partDetails.setPartCost("0");
|
||||
|
|
|
|||
Loading…
Reference in New Issue