|
@@ -144,6 +144,11 @@ public class RepairRegisterServiceImpl extends ServiceImpl<IRepairRegisterMapper
|
|
|
HashMap<Integer,Integer> partCountMap = new HashMap<>();
|
|
|
for (PriceList priceList : priceLists) {
|
|
|
partCountMap.merge(priceList.getPartId(), priceList.getCount(), Integer::sum);
|
|
|
+ Part part = partHashMap.get(priceList.getPartId());
|
|
|
+ if(part == null){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ priceList.setPartUnit(part.getPartUnit());
|
|
|
}
|
|
|
for (RepairRegisterPart repairRegisterPart : partList) {
|
|
|
Part part = partHashMap.get(repairRegisterPart.getPartId());
|