|
@@ -189,7 +189,7 @@ public class RepairPersonnelService {
|
|
|
throw new BusinessException(ResultCode.REPAIR_STATUS_NOT_EXITS);
|
|
|
}
|
|
|
List<PriceList> priceListList = priceListService.getByRepairId(repair.getRepairId());
|
|
|
- List<PriceList> collect = priceListList.stream().filter(entity -> entity.getRecoveryStatus() == 0).collect(Collectors.toList());
|
|
|
+ List<PriceList> collect = priceListList.stream().filter(entity ->entity.getType()== 0 && entity.getRecoveryStatus() == 0).collect(Collectors.toList());
|
|
|
if(collect.size() >0){
|
|
|
repairLogService.saveBySysUser(userId,repair.getRepairId(),8,"维修完成");
|
|
|
}else {
|