|
@@ -15,6 +15,7 @@ import com.fdkankan.sale.util.DateUtil;
|
|
|
import com.fdkankan.sale.util.StatusUtil;
|
|
|
import com.fdkankan.sale.vo.request.*;
|
|
|
import com.fdkankan.sale.vo.response.CheckRegisterVo;
|
|
|
+import com.fdkankan.sale.vo.response.RepairRegisterCheckVo;
|
|
|
import com.fdkankan.sale.vo.response.RepairRegisterPartVo;
|
|
|
import com.fdkankan.sale.vo.response.RepairerVo;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -58,6 +59,8 @@ public class RepairPersonnelService {
|
|
|
IPartService partService;
|
|
|
@Autowired
|
|
|
IRepairRegisterLogService repairRegisterLogService;
|
|
|
+ @Autowired
|
|
|
+ RepairSupplyService repairSupplyService;
|
|
|
|
|
|
|
|
|
|
|
@@ -214,5 +217,18 @@ public class RepairPersonnelService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public Object checkRegisterInfo(String repairId) {
|
|
|
+ RepairRegister repairRegister = repairRegisterService.getByRepairId(repairId);
|
|
|
+ RepairRegisterCheckVo vo = new RepairRegisterCheckVo();
|
|
|
+ BeanUtils.copyProperties(repairRegister,vo);
|
|
|
+
|
|
|
+ List<RepairFault> repairFaults = repairFaultService.getByRepairId(repairId);
|
|
|
+ List<Integer> collect = repairFaults.stream().map(RepairFault::getFaultId).collect(Collectors.toList());
|
|
|
+ vo.setFaultIds(collect);
|
|
|
|
|
|
+ List<RepairRegisterPartVo> partVoList = repairSupplyService.partInfo(repairId, 2);
|
|
|
+ vo.setPartList(partVoList);
|
|
|
+
|
|
|
+ return vo;
|
|
|
+ }
|
|
|
}
|