diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBillsFaultInstanceController.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBillsFaultInstanceController.java index 8b7effe..b315563 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBillsFaultInstanceController.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBillsFaultInstanceController.java @@ -1,8 +1,14 @@ package com.hw.dms.controller; +import java.text.SimpleDateFormat; +import java.util.HashMap; import java.util.List; import java.io.IOException; +import java.util.Map; import javax.servlet.http.HttpServletResponse; + +import com.hw.dms.TemplateExcelUtils; +import com.hw.dms.domain.DmsFaultInstanceActivity; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -102,4 +108,34 @@ public class DmsBillsFaultInstanceController extends BaseController { return toAjax(dmsBillsFaultInstanceService.deleteDmsBillsFaultInstanceByRepairInstanceIds(repairInstanceIds)); } + @PostMapping("faultRecordExport") + public void faultRecordExport(DmsBillsFaultInstance dmsBillsFaultInstance,HttpServletResponse response) throws Exception { + Map beanParams = new HashMap<>(); + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); + DmsFaultInstanceActivity faulsts = dmsBillsFaultInstanceService.selectFaults(dmsBillsFaultInstance.getRepairInstanceId()); + beanParams.put("applyUser",faulsts.getApplyUser()); + beanParams.put("applyTime",format.format(faulsts.getApplyTime())); + beanParams.put("deviceName",faulsts.getDeviceName()); + beanParams.put("deviceLocation",faulsts.getDeviceLocation()); + + if (faulsts.getRealBeginTime()!=null){ + beanParams.put("realEndTime",format.format(faulsts.getRealEndTime())); + } + if (faulsts.getRealEndTime()!=null){ + beanParams.put("realBeginTime",format.format(faulsts.getRealBeginTime())); + } + if (faulsts.getConfirmTime()!=null){ + beanParams.put("confirmTime",format.format(faulsts.getConfirmTime())); + } +// beanParams.put("realEndTime",format.format(faulsts.getRealEndTime())); + beanParams.put("faultDescription",faulsts.getFaultDescription()); + beanParams.put("checkedFault",faulsts.getCheckedFault()); + beanParams.put("repairContent",faulsts.getRepairContent()); + beanParams.put("protectedMethod",faulsts.getProtectedMethod()); + beanParams.put("repairer",faulsts.getRepairer()); + beanParams.put("repairConfirm",faulsts.getRepairConfirm()); + beanParams.put("list",faulsts.getParts()); + + TemplateExcelUtils.downLoadExcel("维修记录","",beanParams, response); + } } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMaintInstanceActivityController.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMaintInstanceActivityController.java index 214152a..d5ccc87 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMaintInstanceActivityController.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMaintInstanceActivityController.java @@ -3,6 +3,9 @@ package com.hw.dms.controller; import java.util.List; import java.io.IOException; import javax.servlet.http.HttpServletResponse; + +import com.hw.dms.domain.DmsBaseMaintStation; +import com.hw.dms.service.IDmsBaseMaintStationService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -34,6 +37,8 @@ public class DmsMaintInstanceActivityController extends BaseController { @Autowired private IDmsMaintInstanceActivityService dmsMaintInstanceActivityService; + @Autowired + private IDmsBaseMaintStationService dmsBaseMaintStationService; /** * 查询保养工单实例节点列表 @@ -43,7 +48,8 @@ public class DmsMaintInstanceActivityController extends BaseController public TableDataInfo list(DmsMaintInstanceActivity dmsMaintInstanceActivity) { startPage(); - List list = dmsMaintInstanceActivityService.selectDmsMaintInstanceActivityList(dmsMaintInstanceActivity); +// List list = dmsMaintInstanceActivityService.selectDmsMaintInstanceActivityList(dmsMaintInstanceActivity); + List list = dmsBaseMaintStationService.selectDmsMaintInfo(dmsMaintInstanceActivity.getMaintInstanceId()); return getDataTable(list); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMobileController.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMobileController.java index 9767939..31d91ba 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMobileController.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsMobileController.java @@ -14,6 +14,7 @@ import com.hw.dms.service.*; import com.hw.system.api.RemoteFileService; import com.hw.system.api.domain.SysFile; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.util.CollectionUtils; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -119,7 +120,7 @@ public class DmsMobileController extends BaseController { // @RequiresPermissions("qms:checkrule:list") @GetMapping("/getBillsFaultInstances") public TableDataInfo getBillsFaultInstances() { - startPage(); +// startPage(); DmsBillsFaultInstance queryBillsFaultInstance = new DmsBillsFaultInstance(); List billsFaultInstances = dmsBillsFaultInstanceService.selectDmsBillsFaultInstanceJoinList(queryBillsFaultInstance); return getDataTable(billsFaultInstances); @@ -146,12 +147,14 @@ public class DmsMobileController extends BaseController { public AjaxResult updateFaultInstanceActivity(DmsFaultInstanceActivity dmsFaultInstanceActivity, @RequestParam(value = "files") List files) { List fileUrls = new ArrayList<>(); - for (MultipartFile file : files) { - R sysFileR = remoteFileService.upload(file); - SysFile sysFile = sysFileR.getData(); - fileUrls.add(sysFile.getUrl()); + if (!CollectionUtils.isEmpty(files)){ + for (MultipartFile file : files) { + R sysFileR = remoteFileService.upload(file); + SysFile sysFile = sysFileR.getData(); + fileUrls.add(sysFile.getUrl()); + } + dmsFaultInstanceActivity.setFileUrls(fileUrls); } - dmsFaultInstanceActivity.setFileUrls(fileUrls); return success(dmsBillsFaultInstanceService.updateDmsFaultInstanceActivity(dmsFaultInstanceActivity)); } @@ -197,7 +200,14 @@ public class DmsMobileController extends BaseController { // @RequiresPermissions("qms:checkresultdetail:add") @Log(title = "故障报修工单", businessType = BusinessType.COMPLETE) @PostMapping("/completeRepair") - public AjaxResult completeRepair(@RequestBody DmsFaultInstanceActivity dmsFaultInstanceActivity) { + public AjaxResult completeRepair(DmsFaultInstanceActivity dmsFaultInstanceActivity,@RequestParam(value = "files") List files) { + List fileUrls = new ArrayList<>(); + for (MultipartFile file : files) { + R sysFileR = remoteFileService.upload(file); + SysFile sysFile = sysFileR.getData(); + fileUrls.add(sysFile.getUrl()); + } + dmsFaultInstanceActivity.setFileUrls(fileUrls); return success(dmsBillsFaultInstanceService.completeRepair(dmsFaultInstanceActivity)); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsFaultInstance.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsFaultInstance.java index 70b0234..f73c9ae 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsFaultInstance.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsFaultInstance.java @@ -5,6 +5,7 @@ import java.util.List; import com.fasterxml.jackson.annotation.JsonFormat; import com.hw.system.api.domain.SysFile; +import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.hw.common.core.annotation.Excel; @@ -16,6 +17,7 @@ import com.hw.common.core.web.domain.BaseEntity; * @author Open Platform * @date 2024-01-23 */ +@Data public class DmsBillsFaultInstance extends BaseEntity { private static final long serialVersionUID = 1L; @@ -106,6 +108,15 @@ public class DmsBillsFaultInstance extends BaseEntity private List sysFiles; private List dmsInstanceFiles; + private String checkedFault; + private String repairContent; + private String protectedMethod; + private String repairer; + private String approveStatus; + private Integer repairConfirm; + private Date confirmTime; + private Long componentsPartsId; + private List parts; public Long getInstanceActivityId() { return instanceActivityId; diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsInspectInstance.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsInspectInstance.java index 82965b7..838ba5b 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsInspectInstance.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsInspectInstance.java @@ -81,6 +81,15 @@ public class DmsBillsInspectInstance extends BaseEntity /**多个状态时使用,以,隔开*/ private String inspectStatusStr; private String planInspectCode; + private String inspectDesc; + public String getInspectDesc() + { + return inspectDesc; + } + public void setInspectDesc(String inspectDesc) + { + this.inspectDesc = inspectDesc; + } public String getPlanInspectCode() { return planInspectCode; diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsMaintInstance.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsMaintInstance.java index d6c8541..d0d5e60 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsMaintInstance.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBillsMaintInstance.java @@ -71,8 +71,24 @@ public class DmsBillsMaintInstance extends BaseEntity private String maintSupervisor; private String maintStatusStr; + private String maintLevelName; + private String maintProtocol; + public String getMaintProtocol() { + return maintProtocol; + } + + public void setMaintProtocol(String maintProtocol) { + this.maintProtocol = maintProtocol; + } private List dmsBillsMaintDetailList; + public String getMaintLevelName() { + return maintLevelName; + } + + public void setMaintLevelName(String maintLevelName) { + this.maintLevelName = maintLevelName; + } public Long getMaintLevel() { return maintLevel; diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsFaultInstanceActivity.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsFaultInstanceActivity.java index 9263fa0..bce97b1 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsFaultInstanceActivity.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsFaultInstanceActivity.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.List; import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.hw.common.core.annotation.Excel; @@ -15,6 +16,7 @@ import com.hw.common.core.web.domain.BaseEntity; * @author Open Platform * @date 2024-02-27 */ +@Data public class DmsFaultInstanceActivity extends BaseEntity { private static final long serialVersionUID = 1L; @@ -57,6 +59,7 @@ public class DmsFaultInstanceActivity extends BaseEntity /** 处理意见;第一步不显示,从第2个步骤开始显示此字段 */ @Excel(name = "处理意见;第一步不显示,从第2个步骤开始显示此字段") private String processHandleResolution; + private String faultSourceType; /** 状态(0已结束,1执行中,2、待接取,3、已转发) */ @Excel(name = "状态(0已结束,1执行中,2、待接取,3、已转发)") @@ -101,6 +104,20 @@ public class DmsFaultInstanceActivity extends BaseEntity private List fileUrls; private List dmsInstanceFileList; + private String checkedFault; + private String repairContent; + private String protectedMethod; + private String repairer; + private Integer repairConfirm; + private Date confirmTime; + private Long componentsPartsId; + private List parts; + private String deviceName; + private String deviceLocation; + private String applyUser; + private Date applyTime; + private Date realBeginTime; + private Date realEndTime; public Long getWfLength() { return wfLength; diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsInspectInstanceDetailProject.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsInspectInstanceDetailProject.java index 2a993ce..2f13926 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsInspectInstanceDetailProject.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsInspectInstanceDetailProject.java @@ -61,8 +61,18 @@ public class DmsInspectInstanceDetailProject extends BaseEntity @Excel(name = "巡检描述") private String inspectProjectDesc; + private String inspectDesc; private Long deviceId; + public void setInspectDesc(String inspectDesc) + { + this.inspectDesc = inspectDesc; + } + public String getInspectDesc() + { + return inspectDesc; + } + public void setInstanceDetailProjectId(Long instanceDetailProjectId) { diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsMaintInstanceActivity.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsMaintInstanceActivity.java index 8529804..476f112 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsMaintInstanceActivity.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsMaintInstanceActivity.java @@ -83,6 +83,15 @@ public class DmsMaintInstanceActivity extends BaseEntity @Excel(name = "用户预留1") private String attr1; private Long wfLength; + private String remark; + public String getRemark() + { + return remark; + } + public void setRemark(String remark) + { + this.remark = remark; + } public Long getWfLength() { return wfLength; diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseMaintStationMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseMaintStationMapper.java index 5d99a4a..e63c7d0 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseMaintStationMapper.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseMaintStationMapper.java @@ -2,6 +2,7 @@ package com.hw.dms.mapper; import java.util.List; import com.hw.dms.domain.DmsBaseMaintStation; +import com.hw.dms.domain.DmsMaintInstanceActivity; /** * 保养部位信息Mapper接口 @@ -58,4 +59,6 @@ public interface DmsBaseMaintStationMapper * @return 结果 */ public int deleteDmsBaseMaintStationByMaintStationIds(Long[] maintStationIds); + + List selectDmsMainInfo(Long maintInstanceId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsFaultInstanceMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsFaultInstanceMapper.java index 71dd4bb..e6cc542 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsFaultInstanceMapper.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsFaultInstanceMapper.java @@ -2,6 +2,8 @@ package com.hw.dms.mapper; import java.util.List; import com.hw.dms.domain.DmsBillsFaultInstance; +import com.hw.dms.domain.DmsFaultCompentsParts; +import com.hw.dms.domain.DmsFaultInstanceActivity; import org.apache.ibatis.annotations.Param; /** @@ -99,6 +101,10 @@ public interface DmsBillsFaultInstanceMapper * @return 检修工单 */ public DmsBillsFaultInstance selectFaultInstanceJoinFirstById(Long repairInstanceId); + + List selectFaults(@Param("repairInstanceId") Long repairInstanceId); + + List selectParts(@Param("repairInstanceId")Long repairInstanceId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsMaintInstanceMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsMaintInstanceMapper.java index 4adb7ac..5d28b63 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsMaintInstanceMapper.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBillsMaintInstanceMapper.java @@ -6,6 +6,7 @@ import java.util.List; import com.hw.dms.domain.DmsBillsMaintDetail; import com.hw.dms.domain.DmsBillsMaintDetailProject; import com.hw.dms.domain.DmsBillsMaintInstance; +import com.hw.dms.domain.DmsMaintInstanceActivity; /** * 保养工单Mapper接口 @@ -83,4 +84,5 @@ public interface DmsBillsMaintInstanceMapper { int batchDmsProject(List list); + List selectDmsMaintInfo(Long maintInstanceId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsFaultInstanceActivityMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsFaultInstanceActivityMapper.java index e3023d2..779ee0c 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsFaultInstanceActivityMapper.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsFaultInstanceActivityMapper.java @@ -1,7 +1,10 @@ package com.hw.dms.mapper; import java.util.List; + +import com.hw.dms.domain.DmsFaultCompentsParts; import com.hw.dms.domain.DmsFaultInstanceActivity; +import org.apache.ibatis.annotations.Param; /** * 故障报修工单实例节点Mapper接口 @@ -61,4 +64,12 @@ public interface DmsFaultInstanceActivityMapper Long[] selectUserIdByDmsFaultInstanceActivity(Long repairInstanceId); DmsFaultInstanceActivity selectDmsFaultInstanceActivityByRepairIdMin(Long repairInstanceId); + + List selectPartsById(@Param("repairInstanceId") Long repairInstanceId); + + int insertParts(List parts); + + int deleteByTargetId(@Param("activityId") Long activityId); + + Long selectRepairInstanceId(@Param("activityId")Long activityId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsMaintInstanceActivityMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsMaintInstanceActivityMapper.java index 18ee3ca..a3adabb 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsMaintInstanceActivityMapper.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsMaintInstanceActivityMapper.java @@ -2,6 +2,7 @@ package com.hw.dms.mapper; import java.util.List; import com.hw.dms.domain.DmsMaintInstanceActivity; +import org.apache.ibatis.annotations.Param; /** * 保养工单实例节点Mapper接口 @@ -60,4 +61,6 @@ public interface DmsMaintInstanceActivityMapper public int deleteDmsMaintInstanceActivityByInstanceActivityIds(Long[] instanceActivityIds); Long[] selectUserIdByDmsMaintInstanceActivityId(Long maintInstanceId); + +// List selectDmsMaintInfo(@Param("maintInstanceId") Long maintInstanceId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseMaintStationService.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseMaintStationService.java index 32b0002..e5714a4 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseMaintStationService.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseMaintStationService.java @@ -2,6 +2,7 @@ package com.hw.dms.service; import java.util.List; import com.hw.dms.domain.DmsBaseMaintStation; +import com.hw.dms.domain.DmsMaintInstanceActivity; /** * 保养部位信息Service接口 @@ -58,4 +59,8 @@ public interface IDmsBaseMaintStationService * @return 结果 */ public int deleteDmsBaseMaintStationByMaintStationId(Long maintStationId); + + List selectDmsMaintInfo(Long maintInstanceId); } + + diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBillsFaultInstanceService.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBillsFaultInstanceService.java index 8562e95..bdf3dc3 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBillsFaultInstanceService.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBillsFaultInstanceService.java @@ -109,4 +109,6 @@ public interface IDmsBillsFaultInstanceService * @return 结果 */ public int completeRepair(DmsFaultInstanceActivity dmsFaultInstanceActivity); + + DmsFaultInstanceActivity selectFaults(Long repairInstanceId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsMaintInstanceActivityService.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsMaintInstanceActivityService.java index 6c7a25f..a0dacd2 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsMaintInstanceActivityService.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsMaintInstanceActivityService.java @@ -62,4 +62,5 @@ public interface IDmsMaintInstanceActivityService boolean selectUserIdByDmsMaintInstanceActivityId(Long maintInstanceId,Long userId); + List selectDmsMaintInfo(Long maintInstanceId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseMaintStationServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseMaintStationServiceImpl.java index ec77fc3..c54e269 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseMaintStationServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseMaintStationServiceImpl.java @@ -170,6 +170,11 @@ public class DmsBaseMaintStationServiceImpl implements IDmsBaseMaintStationServi return dmsBaseMaintStationMapper.deleteDmsBaseMaintStationByMaintStationIds(maintStationIds); } + @Override + public List selectDmsMaintInfo(Long maintInstanceId) { + return dmsBaseMaintStationMapper.selectDmsMainInfo(maintInstanceId); + } + /** * 删除保养部位信息信息 * diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java index e057b73..72431ba 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java @@ -2,6 +2,7 @@ package com.hw.dms.service.impl; import java.nio.file.Files; import java.util.ArrayList; +import java.util.Collections; import java.util.Date; import java.util.List; @@ -11,6 +12,7 @@ import com.hw.common.core.exception.ServiceException; import com.hw.common.core.utils.DateUtils; import com.hw.common.core.utils.uuid.Seq; import com.hw.common.security.utils.SecurityUtils; +import com.hw.dms.domain.DmsFaultCompentsParts; import com.hw.dms.domain.DmsFaultInstanceActivity; import com.hw.dms.domain.DmsInstanceFile; import com.hw.dms.domain.vo.DmsBillsFaultInstanceScanVo; @@ -23,6 +25,7 @@ import com.hw.dms.mapper.DmsBillsFaultInstanceMapper; import com.hw.dms.domain.DmsBillsFaultInstance; import com.hw.dms.service.IDmsBillsFaultInstanceService; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; /** * 报修工单Service业务层处理 @@ -213,6 +216,9 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS @Override public DmsBillsFaultInstance getDmsBillsFaultInstance4Repair(Long repairInstanceId) { DmsBillsFaultInstance dmsBillsFaultInstance = dmsBillsFaultInstanceMapper.selectFaultInstanceJoinActivityByRepairInstanceId(repairInstanceId); + Long repairInstanceId1 = dmsBillsFaultInstance.getRepairInstanceId(); + List parts = dmsFaultInstanceActivityMapper.selectPartsById(repairInstanceId1); + dmsBillsFaultInstance.setParts(parts); List dmsBillsFaultInstanceActivityList = dmsBillsFaultInstance.getDmsFaultInstanceActivityList(); DmsFaultInstanceActivity firstStepActivity = dmsBillsFaultInstanceActivityList.get(0); DmsFaultInstanceActivity dmsFaultInstanceActivity; @@ -233,7 +239,7 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS dmsBillsFaultInstance.setDmsFaultInstanceActivityList(null); DmsInstanceFile queryInstanceFile = new DmsInstanceFile(); - queryInstanceFile.setTargetType(DmsConstants.DMS_INSTANCE_FILE_TARGET_TYPE_FAULT_INSTANCE_ACTIVITY); +// queryInstanceFile.setTargetType(DmsConstants.DMS_INSTANCE_FILE_TARGET_TYPE_FAULT_INSTANCE_ACTIVITY); queryInstanceFile.setTargetId(firstStepActivity.getInstanceActivityId()); List dmsInstanceFiles = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile); dmsBillsFaultInstance.setDmsInstanceFiles(dmsInstanceFiles); @@ -251,7 +257,17 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS @Override @Transactional(rollbackFor = Exception.class) public int updateDmsFaultInstanceActivity(DmsFaultInstanceActivity dmsFaultInstanceActivity) { - + List fileUrls = dmsFaultInstanceActivity.getFileUrls(); + Long activityId = dmsFaultInstanceActivity.getInstanceActivityId(); + Long repairInstanceId = dmsFaultInstanceActivityMapper.selectRepairInstanceId(activityId); + DmsBillsFaultInstance dmsBillsFaultInstance = new DmsBillsFaultInstance(); + dmsBillsFaultInstance.setOutsrcId(dmsFaultInstanceActivity.getOutsrcId()); + dmsBillsFaultInstance.setFaultSourceType(dmsFaultInstanceActivity.getFaultSourceType()); + dmsBillsFaultInstance.setFaultType(dmsFaultInstanceActivity.getFaultType()); + dmsBillsFaultInstance.setRepairInstanceId(repairInstanceId); + int i = dmsBillsFaultInstanceMapper.updateDmsBillsFaultInstance(dmsBillsFaultInstance); + int rows = dmsFaultInstanceActivityMapper.deleteByTargetId(activityId); + batchInsertInstanceFiles(fileUrls,activityId); return dmsFaultInstanceActivityMapper.updateDmsFaultInstanceActivity(dmsFaultInstanceActivity); } @@ -326,6 +342,14 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS } + @Override + public DmsFaultInstanceActivity selectFaults(Long repairInstanceId) { + List list = dmsBillsFaultInstanceMapper.selectFaults(repairInstanceId); + List parts = dmsBillsFaultInstanceMapper.selectParts(repairInstanceId); + list.get(0).setParts(parts); + return list.get(0); + } + /** * 完成维修 * @@ -335,6 +359,14 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS @Override @Transactional(rollbackFor = Exception.class) public int completeRepair(DmsFaultInstanceActivity dmsFaultInstanceActivity) { + batchInsertInstanceAfterFiles(dmsFaultInstanceActivity.getFileUrls(),dmsFaultInstanceActivity.getInstanceActivityId()); + List parts = dmsFaultInstanceActivity.getParts(); + if (!CollectionUtils.isEmpty(parts)){ + for (DmsFaultCompentsParts part : parts) { + part.setFaultId(dmsFaultInstanceActivity.getRepairInstanceId()); + } + dmsFaultInstanceActivityMapper.insertParts(parts); + } DmsBillsFaultInstance dmsBillsFaultInstance = dmsBillsFaultInstanceMapper. selectDmsBillsFaultInstanceByRepairInstanceId(dmsFaultInstanceActivity.getRepairInstanceId()); String dmsBillsStatus = dmsBillsFaultInstance.getBillsStatus(); @@ -378,6 +410,19 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS dmsInstanceFileMapper.batchDmsInstanceFile(dmsInstanceFiles); } } + public void batchInsertInstanceAfterFiles(List fileUrls, Long instanceActivityId) { + if (fileUrls != null && !fileUrls.isEmpty()) { + List dmsInstanceFiles = new ArrayList<>(); + for (String fileUrl : fileUrls) { + DmsInstanceFile dmsInstanceFile = new DmsInstanceFile(); + dmsInstanceFile.setTargetId(instanceActivityId); + dmsInstanceFile.setTargetType("2"); + dmsInstanceFile.setFilePath(fileUrl); + dmsInstanceFiles.add(dmsInstanceFile); + } + dmsInstanceFileMapper.batchDmsInstanceFile(dmsInstanceFiles); + } + } } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsInspectInstanceServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsInspectInstanceServiceImpl.java index f21bc61..0a356d1 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsInspectInstanceServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsInspectInstanceServiceImpl.java @@ -228,7 +228,7 @@ public class DmsBillsInspectInstanceServiceImpl implements IDmsBillsInspectInsta List inspectInstanceDetails = dmsInspectInstanceDetailMapper.selectDmsInspectInstanceDetailJoinList(queryInspectInstanceDetail); newestBillsInspectInstance.setDmsInspectInstanceDetailList(inspectInstanceDetails); } - + newestBillsInspectInstance.setBillsInspectCode(newestBillsInspectInstance.getPlanInspectCode()); return newestBillsInspectInstance; } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsMaintInstanceServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsMaintInstanceServiceImpl.java index 7194a78..3204744 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsMaintInstanceServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsMaintInstanceServiceImpl.java @@ -98,7 +98,10 @@ public class DmsBillsMaintInstanceServiceImpl implements IDmsBillsMaintInstanceS dmsBillsMaintInstance.setWfProcessId(103l); dmsBillsMaintInstance.setPlanEndTime(new Date(lubeTime.getTime() + timeLimit * 1000l)); int i = dmsBillsMaintInstanceMapper.insertDmsBillsMaintInstance(dmsBillsMaintInstance); - + DmsMaintInstanceActivity dmsMaintInstanceActivity = new DmsMaintInstanceActivity(); + dmsMaintInstanceActivity.setMaintInstanceId(dmsBillsMaintInstance.getMaintInstanceId()); + dmsMaintInstanceActivity.setProcessStepOrder(1L); + int i1 = dmsMaintInstanceActivityMapper.insertDmsMaintInstanceActivity(dmsMaintInstanceActivity); batchInsertDmsBillsMaintDetail(dmsPlanMaint, dmsBillsMaintInstance.getMaintInstanceId()); return i; } @@ -206,7 +209,10 @@ public class DmsBillsMaintInstanceServiceImpl implements IDmsBillsMaintInstanceS List dmsBillsMaintDetails = dmsBillsMaintDetailMapper.selectDmsBillsMaintDetailJoinList(queryBillsMaintDetail); newestBillsMaintInstance.setDmsBillsMaintDetailList(dmsBillsMaintDetails); } - + Long maintLevel = newestBillsMaintInstance.getMaintLevel(); + if (maintLevel == 1){ + newestBillsMaintInstance.setMaintLevelName("日常保养"); + } return newestBillsMaintInstance; } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsMaintInstanceActivityServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsMaintInstanceActivityServiceImpl.java index 32a5b15..b69ad2e 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsMaintInstanceActivityServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsMaintInstanceActivityServiceImpl.java @@ -156,10 +156,19 @@ public class DmsMaintInstanceActivityServiceImpl implements IDmsMaintInstanceAct return dmsMaintInstanceActivityMapper.deleteDmsMaintInstanceActivityByInstanceActivityId(instanceActivityId); } + + @Override public boolean selectUserIdByDmsMaintInstanceActivityId(Long maintInstanceId, Long userId) { Long[] longs = dmsMaintInstanceActivityMapper.selectUserIdByDmsMaintInstanceActivityId(maintInstanceId); boolean contains = Arrays.asList(longs).contains(userId); return contains; } + + @Override + public List selectDmsMaintInfo(Long maintInstanceId) { + return null; + } + + } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanMaintDetailServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanMaintDetailServiceImpl.java index 3bdda42..8d0c131 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanMaintDetailServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanMaintDetailServiceImpl.java @@ -62,6 +62,8 @@ public class DmsPlanMaintDetailServiceImpl implements IDmsPlanMaintDetailService dmsPlanMaintDetail.setIsFlag(1l); Long stationId = dmsPlanMaintDetailMapper.selectStationIdByCode(dmsPlanMaintDetail.getMaintStationCode()); dmsPlanMaintDetail.setMaintStationId(stationId); + Long standardId = dmsPlanMaintDetailMapper.selectStandardId(stationId); + dmsPlanMaintDetail.setMaintStandardId(standardId); return dmsPlanMaintDetailMapper.insertDmsPlanMaintDetail(dmsPlanMaintDetail); } diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseMaintStationMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseMaintStationMapper.xml index 7bc8522..b819c27 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseMaintStationMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseMaintStationMapper.xml @@ -39,6 +39,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where maint_station_id = #{maintStationId} + insert into dms_base_maint_station diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsFaultInstanceMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsFaultInstanceMapper.xml index b33bda8..ed6d143 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsFaultInstanceMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsFaultInstanceMapper.xml @@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select repair_instance_id, fault_source_type, fault_source_id, wf_process_id, bills_fault_code, bills_status, apply_user, apply_time, real_begin_time, real_end_time, require_end_time, instance_type, is_flag, remark, create_by, create_time, update_by, update_time,device_id from dms_bills_fault_instance + select repair_instance_id, fault_source_type, fault_source_id, wf_process_id, bills_fault_code, bills_status, apply_user, apply_time, real_begin_time, real_end_time, require_end_time, instance_type, is_flag, remark, create_by, create_time, update_by, update_time,device_id,approveStatus from dms_bills_fault_instance select dbfi.repair_instance_id, dbfi.fault_source_type, dbfi.fault_source_id, dbfi.wf_process_id, dbfi.bills_fault_code, dbfi.bills_status, - dbfi.apply_user, dbfi.apply_time, dbfi.real_begin_time, dbfi.real_end_time, dbfi.require_end_time, dbfi.device_id, - dbdl.device_code,dbdl.device_name,dbdl.device_location,dbdl.device_spec, - dfia.instance_activity_id,dfia.fault_type,dfia.fault_description,dfia.design_operations,dfia.repair_type,dfia.outsrc_id,dfia.process_handle_resolution + dbfi.apply_user, dbfi.apply_time, dbfi.real_begin_time, dbfi.real_end_time, dbfi.require_end_time, dbfi.device_id,dbfi.approveStatus, + dbdl.device_code,dbdl.device_name,dbdl.device_location,dbdl.device_spec, + dfia.instance_activity_id,dfia.fault_type,dfia.fault_description,dfia.design_operations,dfia.repair_type,dfia.outsrc_id,dfia.process_handle_resolution + ,dfia.checked_fault checked_fault, + dfia.repair_content repair_content, + dfia.protected_method protected_method, + dfia.repairer repairer, + dfia.repair_confirm repair_confirm, + dfia.confirm_time confirm_time,dfia.components_parts_id components_parts_id from dms_bills_fault_instance dbfi left join dms_base_device_ledger dbdl on dbfi.device_id=dbdl.device_id - left join dms_fault_instance_activity dfia on dbfi.repair_instance_id=dfia.repair_instance_id + left join dms_fault_instance_activity dfia on dbfi.repair_instance_id=dfia.repair_instance_id where dbfi.repair_instance_id = #{repairInstanceId} and dfia.process_step_order=1 @@ -253,6 +262,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join dms_fault_instance_activity dfia on dbfi.repair_instance_id=dfia.repair_instance_id where dbfi.repair_instance_id = #{repairInstanceId} and dfia.process_step_order=1 + + diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml index 0766671..9f35d05 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml @@ -175,7 +175,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" dbii.real_end_time, dbii.inspect_status, dbii.create_time, - dbir.route_name,a.plan_inspect_code + dbir.route_name,a.plan_inspect_code, + a.remark inspectDesc from dms_bills_inspect_instance dbii left join dms_base_inspect_route dbir on diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintDetailMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintDetailMapper.xml index c8c3709..51c4630 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintDetailMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintDetailMapper.xml @@ -125,17 +125,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select dbmd.bills_maint_detail_id, dbmd.maint_instance_id, dbmd.device_id, dbmd.station_id, dbmd.maint_standard_id, - dbmd.operation_description, dbmd.maint_status, - dbdl.device_code,dbdl.device_name, - dbdt.type_name, - dbms.maint_station_name, - dbmsd.maint_protocol,dbmsd.operation_description as maint_operation_description - from dms_bills_maint_detail dbmd - left join dms_base_device_ledger dbdl on dbmd.device_id=dbdl.device_id - left join dms_base_device_type dbdt on dbdl.device_type_id=dbdt.device_type_id - left join dms_base_maint_station dbms on dbmd.station_id = dbms.maint_station_id - left join dms_base_maint_standard dbmsd on dbmd.maint_standard_id = dbmsd.maint_standard_id + select + dbmd.bills_maint_detail_id, + dbmd.maint_instance_id, + dbmd.device_id, + dbmd.station_id, + dbmd.maint_standard_id, + dbmd.operation_description, + dbmd.maint_status, + dbdl.device_code, + dbdl.device_name, + dbdt.type_name, + dbms.maint_station_code maint_station_name, + dbmsd.maint_protocol, + dbmsd.operation_description as maint_operation_description + from + dms_bills_maint_detail dbmd + left join dms_base_device_ledger dbdl on + dbmd.device_id = dbdl.device_id + left join dms_base_device_type dbdt on + dbdl.device_type_id = dbdt.device_type_id + left join dms_base_maint_station dbms on + dbmd.station_id = dbms.maint_station_id + left join dms_base_maint_standard dbmsd on + dbmd.maint_standard_id = dbmsd.maint_standard_id - select dbmi.maint_instance_id, dbmi.plan_maint_id, dbmi.wf_process_id, dbmi.bills_maint_code, dbmi.plan_begin_time, dbmi.real_begin_time, - dbmi.plan_end_time, dbmi.real_end_time, dbmi.maint_status, dbmi.maint_comp_rate, dbmi.create_by, dbmi.create_time, - dbmi.maint_level,dbmi.maint_group,dbmi.maint_supervisor - from dms_bills_maint_instance dbmi + select + dbmi.maint_instance_id, + dbmi.plan_maint_id, + dbmi.wf_process_id, + dbmi.bills_maint_code, + dbmi.plan_begin_time, + dbmi.real_begin_time, + dbmi.plan_end_time, + dbmi.real_end_time, + dbmi.maint_status, + dbmi.maint_comp_rate, + dbmi.create_by, + dbmi.create_time, + a.maint_level, + a.maint_group, + a.maint_supervisor + from + dms_bills_maint_instance dbmi left join dms_plan_maint a on dbmi.plan_maint_id = a.plan_maint_id and dbmi.maint_status in (${maintStatusStr}) order by dbmi.create_time desc limit 1 + diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsFaultInstanceActivityMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsFaultInstanceActivityMapper.xml index 4c29ab3..7551e95 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsFaultInstanceActivityMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsFaultInstanceActivityMapper.xml @@ -111,6 +111,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{attr1}, + + insert into dms_fault_compents_parts(fault_id,part_name,part_specifications,amount) + values + + (#{item.faultId},#{item.partName},#{item.partSpecifications},#{item.amount}) + + update dms_fault_instance_activity @@ -136,6 +143,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" create_time = #{createTime}, transfer_user_id = #{transferUserId}, attr1 = #{attr1}, + checked_fault = #{checkedFault}, + repair_content = #{repairContent}, + protected_method = #{protectedMethod}, + repairer = #{repairer}, + repair_confirm = #{repairConfirm}, + confirm_time = #{confirmTime}, + components_parts_id = #{componentsPartsId}, where instance_activity_id = #{instanceActivityId} @@ -150,6 +164,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{instanceActivityId} + + delete FROM `hwjy-cloud`.dms_instance_file where target_id =#{activityId} + select * from dms_fault_instance_activity where instance_activity_id = (select min(instance_activity_id) FROM dms_fault_instance_activity where repair_instance_id = #{repairInstanceId}) + + diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsInspectInstanceDetailMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsInspectInstanceDetailMapper.xml index 1bfa3c7..cef1f5d 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsInspectInstanceDetailMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsInspectInstanceDetailMapper.xml @@ -114,9 +114,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select diid.instance_detail_id, diid.inspect_instance_id, diid.line_step, diid.real_line_step, diid.device_id, diid.instance_detail_status, - diid.inspect_standard, diid.inspect_desc, diid.inspect_status,dbdl.device_code,dbdl.device_name - from dms_inspect_instance_detail diid left join dms_base_device_ledger dbdl on diid.device_id=dbdl.device_id + select + diid.instance_detail_id, + diid.inspect_instance_id, + diid.line_step, + diid.real_line_step, + diid.device_id, + diid.instance_detail_status, + diid.inspect_standard, + a.inspect_project_desc inspect_desc, + diid.inspect_status, + dbdl.device_code, + dbdl.device_name + from + dms_inspect_instance_detail diid + left join dms_base_device_ledger dbdl on + diid.device_id = dbdl.device_id + left join dms_inspect_instance_detail_project a on diid.instance_detail_id = a.instance_detail_id + + diff --git a/hw-ui/src/api/dms/dmsBillsFaultInstance.js b/hw-ui/src/api/dms/dmsBillsFaultInstance.js index 7bf4957..6438fe0 100644 --- a/hw-ui/src/api/dms/dmsBillsFaultInstance.js +++ b/hw-ui/src/api/dms/dmsBillsFaultInstance.js @@ -8,6 +8,15 @@ export function listDmsBillsFaultInstance(query) { params: query }) } +// // 检修工单记录导出 +// export function handleFaultExport(repairInstanceId) { +// return request({ +// url: '/dms/dmsBillsFaultInstance/faultRecordExport/' + repairInstanceId, +// method: 'get', +// responseType: 'blob' +// // params: repairInstanceId +// }) +// } // 查询检修工单详细 export function getDmsBillsFaultInstance(repairInstanceId) {