|
|
|
@ -38,110 +38,62 @@ public class DevicePDAController extends BaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private IEquRepairWorkOrderService equRepairWorkOrderService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取今日任务工单list
|
|
|
|
|
*
|
|
|
|
|
* @param pdadto
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//获取今日任务工单 巡检 保养 点检
|
|
|
|
|
@GetMapping("/getTodayTask")
|
|
|
|
|
public AjaxResult getTodayTask(PDADTO pdadto) {
|
|
|
|
|
return devicePDAService.getTodayTask(pdadto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取记录列表
|
|
|
|
|
*
|
|
|
|
|
* @param pdadto
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//获取 巡检 保养 点检 记录列表
|
|
|
|
|
@GetMapping("/getTaskRecord")
|
|
|
|
|
public AjaxResult getTaskRecord(PDADTO pdadto) {
|
|
|
|
|
return devicePDAService.getTaskRecord(pdadto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取任务详情
|
|
|
|
|
*
|
|
|
|
|
* @param equOrder
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//获取 巡检 点检 保养 任务详情
|
|
|
|
|
@PostMapping("/getInspectionOrderInfo")
|
|
|
|
|
public AjaxResult getInspectionOrderInfo(@RequestBody EquOrder equOrder) {
|
|
|
|
|
return devicePDAService.getInspectionOrderInfo(equOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 填写巡检、点检、保养记录
|
|
|
|
|
*
|
|
|
|
|
* @param equOrder
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//填写 巡检、点检、保养记录
|
|
|
|
|
@PostMapping("/updateInspectionRecord")
|
|
|
|
|
public AjaxResult updateInspectionRecord(@RequestBody EquOrder equOrder) {
|
|
|
|
|
return devicePDAService.updateInspectionRecord(equOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//////////报修
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增手持报修记录
|
|
|
|
|
*
|
|
|
|
|
* @param equRepairOrder
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//新增手持报修记录
|
|
|
|
|
@PostMapping("/addRepairRecord")
|
|
|
|
|
public AjaxResult addRepairRecord(@RequestBody EquRepairOrder equRepairOrder) {
|
|
|
|
|
return devicePDAService.addRepairRecord(equRepairOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//////////维修
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取维修记录(待处理)
|
|
|
|
|
*
|
|
|
|
|
* @param equRepairWorkOrder
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//获取待处理的维修记录
|
|
|
|
|
//todo 应该改了改成一个接口写
|
|
|
|
|
@GetMapping("/getMaintenancePendRecords")
|
|
|
|
|
public AjaxResult getMaintenancePendRecords(EquRepairWorkOrder equRepairWorkOrder) {
|
|
|
|
|
return devicePDAService.getMaintenancePendRecords(equRepairWorkOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取维修记录(除了待维修的)
|
|
|
|
|
*
|
|
|
|
|
* @param equRepairWorkOrder
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//todo 应该改了改成一个接口写
|
|
|
|
|
@GetMapping("/getMaintenanceRecords")
|
|
|
|
|
public AjaxResult getMaintenanceRecords(EquRepairWorkOrder equRepairWorkOrder) {
|
|
|
|
|
return devicePDAService.getMaintenanceRecords(equRepairWorkOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否停机维修
|
|
|
|
|
*
|
|
|
|
|
* @param equRepairWorkOrder
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//是否停机维修
|
|
|
|
|
@PutMapping("/updateDowntime")
|
|
|
|
|
public AjaxResult updateDowntime(@RequestBody EquRepairWorkOrder equRepairWorkOrder) {
|
|
|
|
|
return devicePDAService.updateDowntime(equRepairWorkOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取设备管理详细信息
|
|
|
|
|
*/
|
|
|
|
|
//获取设备详细信息
|
|
|
|
|
@GetMapping(value = "/queryEquipment/{equipmentCode}")
|
|
|
|
|
public AjaxResult queryEquipment(@PathVariable("equipmentCode") String equipmentCode) {
|
|
|
|
|
return devicePDAService.selectEquEquipmentByEquEquipmentCode(equipmentCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询设备列表
|
|
|
|
|
*/
|
|
|
|
|
//查询设备列表
|
|
|
|
|
@GetMapping("/getEquipmentList")
|
|
|
|
|
public TableDataInfo getEquipmentList(EquEquipment equEquipment) {
|
|
|
|
|
startPage();
|
|
|
|
@ -149,20 +101,13 @@ public class DevicePDAController extends BaseController {
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取维修详情
|
|
|
|
|
*/
|
|
|
|
|
//获取维修详情
|
|
|
|
|
@GetMapping(value = "/selectPdaRepairWorkOrderDetails/{workId}")
|
|
|
|
|
public AjaxResult selectPdaRepairWorkOrderDetails(@PathVariable("workId") String workId) {
|
|
|
|
|
return devicePDAService.selectPdaRepairWorkOrderDetails(workId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 填写维修记录
|
|
|
|
|
*
|
|
|
|
|
* @param equRepairWorkOrder
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//填写维修记录
|
|
|
|
|
@PutMapping("/updateMaintenanceRecords")
|
|
|
|
|
public AjaxResult updateMaintenanceRecords(@RequestBody EquRepairWorkOrder equRepairWorkOrder) {
|
|
|
|
|
return devicePDAService.updateMaintenanceRecords(equRepairWorkOrder);
|
|
|
|
@ -174,45 +119,34 @@ public class DevicePDAController extends BaseController {
|
|
|
|
|
return devicePDAService.queryEquFaultTypeTree(equRepairWorkOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 开始保养任务
|
|
|
|
|
*
|
|
|
|
|
* @param pdadto
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//开始保养任务
|
|
|
|
|
@GetMapping("/startMaintenanceTask")
|
|
|
|
|
public AjaxResult startMaintenanceTask(PDADTO pdadto) {
|
|
|
|
|
return devicePDAService.startMaintenanceTask(pdadto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询故障描述列表手持
|
|
|
|
|
*/
|
|
|
|
|
//查询故障描述
|
|
|
|
|
@GetMapping("/getFaultDescriptionList")
|
|
|
|
|
public AjaxResult getFaultDescriptionList(EquFaultDescription equFaultDescription) {
|
|
|
|
|
return devicePDAService.selectEquFaultDescriptionList(equFaultDescription);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询故障维修措施列表手持
|
|
|
|
|
*/
|
|
|
|
|
//查询故障维修措施
|
|
|
|
|
@GetMapping("/getFaultMeasuresList")
|
|
|
|
|
public AjaxResult getFaultMeasuresList(EquFaultMeasures equFaultMeasures) {
|
|
|
|
|
return devicePDAService.selectEquFaultMeasuresList(equFaultMeasures);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询故障原因列表
|
|
|
|
|
*/
|
|
|
|
|
//查询故障原因列表
|
|
|
|
|
@GetMapping("/getFaultReasonList")
|
|
|
|
|
public AjaxResult getFaultReasonList(EquFaultReason equFaultReason) {
|
|
|
|
|
return devicePDAService.selectEquFaultReasonList(equFaultReason);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//备品备件查询接口
|
|
|
|
|
@GetMapping(value = "/querySpareDetailBySpareCode/{spareCode}")
|
|
|
|
|
public AjaxResult querySpareDetailBySpareCode(@PathVariable("spareCode") String spareCode) {
|
|
|
|
|
return devicePDAService.selectSpareDetailBySpareCode(spareCode);
|
|
|
|
|
@PostMapping(value = "/querySpareDetailBySpareCode")
|
|
|
|
|
public AjaxResult querySpareDetailBySpareCode(@RequestBody SparePartsLedger sparePartsLedger) {
|
|
|
|
|
return devicePDAService.selectSpareDetailBySpareCode(sparePartsLedger.getMaterialCode());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//备品备件出入库
|
|
|
|
@ -221,40 +155,31 @@ public class DevicePDAController extends BaseController {
|
|
|
|
|
return equSparepartsInOutService.insertEquSparepartsInOut(equSparepartsInOut);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//报修页面查询
|
|
|
|
|
//报修审核页面查询
|
|
|
|
|
@GetMapping("/getBXList")
|
|
|
|
|
public AjaxResult getBXList(EquRepairOrder equRepairOrder) {
|
|
|
|
|
return devicePDAService.getBXList(equRepairOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取故障报修详细信息
|
|
|
|
|
*/
|
|
|
|
|
//获取故障报修的详细信息
|
|
|
|
|
@GetMapping(value = "/getBXDetail/{orderId}")
|
|
|
|
|
public AjaxResult getBXDetail(@PathVariable("orderId") String orderId) {
|
|
|
|
|
return success(equRepairOrderService.selectEquRepairOrderByOrderId(orderId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 审核报修单
|
|
|
|
|
*/
|
|
|
|
|
//审核报修单
|
|
|
|
|
@PutMapping("/checkBX")
|
|
|
|
|
public AjaxResult checkEquRepairOrder(@RequestBody EquRepairOrder equRepairOrder) {
|
|
|
|
|
return toAjax(equRepairOrderService.checkEquRepairOrder(equRepairOrder));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 维修工单审核 传参数用保养的对象
|
|
|
|
|
*
|
|
|
|
|
* @param upKeepOrderDTO
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//维修工单审核 传参数用保养的对象
|
|
|
|
|
@PostMapping("/checkWX")
|
|
|
|
|
public AjaxResult checkWX(@RequestBody UpKeepOrderDTO upKeepOrderDTO) {
|
|
|
|
|
return equRepairWorkOrderService.checkRepairWorkOrder(upKeepOrderDTO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//维修页面查询
|
|
|
|
|
//维修审核页面查询
|
|
|
|
|
@GetMapping("/getWXList")
|
|
|
|
|
public AjaxResult getWXList(EquRepairWorkOrder equRepairWorkOrder) {
|
|
|
|
|
return devicePDAService.getWXList(equRepairWorkOrder);
|
|
|
|
|