委外保养定时任务逻辑修改
parent
170a3926a8
commit
8659dd8f11
@ -0,0 +1,5 @@
|
||||
package com.op.device.domain.dto;
|
||||
|
||||
// 看板传参实体
|
||||
public class InterfaceDTO {
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.op.device.domain.vo;
|
||||
|
||||
// 看板维修工单返回VO
|
||||
public class IRepairWorkOrderVO {
|
||||
|
||||
}
|
@ -1,7 +1,15 @@
|
||||
package com.op.device.service;
|
||||
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
|
||||
/**
|
||||
* 设备看板接口
|
||||
*/
|
||||
public interface IDeviceInterfaceService {
|
||||
|
||||
/**
|
||||
* 获取维修工单
|
||||
* @return
|
||||
*/
|
||||
AjaxResult getRepairWorkOrder();
|
||||
}
|
||||
|
@ -1,11 +1,38 @@
|
||||
package com.op.device.service.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.device.domain.EquRepairWorkOrder;
|
||||
import com.op.device.mapper.EquRepairWorkOrderMapper;
|
||||
import com.op.device.service.IDeviceInterfaceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static com.op.common.core.web.domain.AjaxResult.success;
|
||||
|
||||
/**
|
||||
* 看板接口实现类
|
||||
*/
|
||||
@Service
|
||||
public class DeviceInterfaceServiceImpl implements IDeviceInterfaceService {
|
||||
|
||||
@Autowired
|
||||
private EquRepairWorkOrderMapper equRepairWorkOrderMapper;
|
||||
|
||||
/**
|
||||
* 获取维修工单
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public AjaxResult getRepairWorkOrder() {
|
||||
// 获取待维修的工单
|
||||
EquRepairWorkOrder workTemp = new EquRepairWorkOrder();
|
||||
workTemp.setWorkStatus("0");
|
||||
List<EquRepairWorkOrder> workOrderList = equRepairWorkOrderMapper.selectEquRepairWorkOrderList(workTemp);
|
||||
// EquRepairWorkOrder workOrder = equRepairWorkOrderMapper.selectWaitingWorkOrder();
|
||||
return success(workOrderList);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue