highway
wws 12 months ago
parent cc55155055
commit 116c224f45

@ -31,6 +31,7 @@ public class DevicePDAController extends BaseController {
/** /**
* list * list
*
* @param pdadto * @param pdadto
* @return * @return
*/ */
@ -41,6 +42,7 @@ public class DevicePDAController extends BaseController {
/** /**
* *
*
* @param pdadto * @param pdadto
* @return * @return
*/ */
@ -51,6 +53,7 @@ public class DevicePDAController extends BaseController {
/** /**
* *
*
* @param equOrder * @param equOrder
* @return * @return
*/ */
@ -60,7 +63,8 @@ public class DevicePDAController extends BaseController {
} }
/** /**
* *
*
* @param equOrder * @param equOrder
* @return * @return
*/ */
@ -70,8 +74,10 @@ public class DevicePDAController extends BaseController {
} }
//报修 //报修
/** /**
* *
*
* @param equRepairOrder * @param equRepairOrder
* @return * @return
*/ */
@ -81,6 +87,7 @@ public class DevicePDAController extends BaseController {
} }
//维修 //维修
/** /**
* *
* *
@ -143,6 +150,7 @@ public class DevicePDAController extends BaseController {
/** /**
* *
*
* @param equRepairWorkOrder * @param equRepairWorkOrder
* @return * @return
*/ */
@ -159,6 +167,7 @@ public class DevicePDAController extends BaseController {
/** /**
* *
*
* @param pdadto * @param pdadto
* @return * @return
*/ */

@ -8,14 +8,22 @@ public class IEquipmentVO {
private String equipmentCode; private String equipmentCode;
// 所在部门 // 所在部门
private String department; private String department;
// 状态
private String status;
// 设备故障率 // 设备故障率
private Double failureRate; private Double failureRate;
// 设备有效利用率 // 设备有效利用率
private Double utilizationRatio; private Double utilizationRatio;
// 设备维修质量 // 设备维修质量
private Double rapairQuantity; private Double rapairQuantity;
// 设备状态
private String equipmentStatus;
public String getEquipmentStatus() {
return equipmentStatus;
}
public void setEquipmentStatus(String equipmentStatus) {
this.equipmentStatus = equipmentStatus;
}
public Double getRapairQuantity() { public Double getRapairQuantity() {
return rapairQuantity; return rapairQuantity;
@ -49,14 +57,6 @@ public class IEquipmentVO {
this.department = department; this.department = department;
} }
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Double getFailureRate() { public Double getFailureRate() {
return failureRate; return failureRate;
} }

@ -16,12 +16,14 @@ public interface IDevicePDAService {
/** /**
* list * list
*
* @return * @return
*/ */
AjaxResult getTodayTask(PDADTO pdadto); AjaxResult getTodayTask(PDADTO pdadto);
/** /**
* *
*
* @param pdadto * @param pdadto
* @return * @return
*/ */
@ -29,37 +31,45 @@ public interface IDevicePDAService {
/** /**
* *
*
* @param equOrder * @param equOrder
* @return * @return
*/ */
AjaxResult getInspectionOrderInfo(EquOrder equOrder); AjaxResult getInspectionOrderInfo(EquOrder equOrder);
/** /**
* *
*
* @param equOrder * @param equOrder
* @return * @return
*/ */
AjaxResult updateInspectionRecord(EquOrder equOrder); AjaxResult updateInspectionRecord(EquOrder equOrder);
//报修 //报修
/** /**
* *
*
* @param equRepairOrder * @param equRepairOrder
* @return * @return
*/ */
public AjaxResult addRepairRecord(EquRepairOrder equRepairOrder); public AjaxResult addRepairRecord(EquRepairOrder equRepairOrder);
//维修 //维修
/** /**
* *
*
* @param equRepairWorkOrder * @param equRepairWorkOrder
* @return * @return
*/ */
public AjaxResult getMaintenanceRecords(EquRepairWorkOrder equRepairWorkOrder); public AjaxResult getMaintenanceRecords(EquRepairWorkOrder equRepairWorkOrder);
//班组 //班组
/** /**
* *
*
* @param equTeamUser * @param equTeamUser
* @return * @return
*/ */
@ -67,6 +77,7 @@ public interface IDevicePDAService {
/** /**
* *
*
* @param equRepairWorkOrder * @param equRepairWorkOrder
* @return * @return
*/ */
@ -74,6 +85,7 @@ public interface IDevicePDAService {
/** /**
* *
*
* @param equipmentId * @param equipmentId
* @return * @return
*/ */
@ -81,6 +93,7 @@ public interface IDevicePDAService {
/** /**
* *
*
* @param workId * @param workId
* @return * @return
*/ */
@ -88,6 +101,7 @@ public interface IDevicePDAService {
/** /**
* *
*
* @param equRepairWorkOrder * @param equRepairWorkOrder
* @return * @return
*/ */
@ -101,6 +115,7 @@ public interface IDevicePDAService {
/** /**
* *
*
* @param pdadto * @param pdadto
* @return * @return
*/ */

@ -58,14 +58,15 @@ public class DeviceInterfaceServiceImpl implements IDeviceInterfaceService {
// 获取所有设备信息 // 获取所有设备信息
List<IEquipmentVO> equipmentVOList = deviceInterfaceMapper.selectEquipmentList(); List<IEquipmentVO> equipmentVOList = deviceInterfaceMapper.selectEquipmentList();
for (IEquipmentVO equipmentVO : equipmentVOList) { for (IEquipmentVO equipmentVO : equipmentVOList) {
// TODO 设备状态待修改 // 设备状态
if (equipmentVO.getStatus().equals("1")) { if (equipmentVO.getEquipmentStatus().equals("1")) {
equipmentVO.setStatus("正常"); equipmentVO.setEquipmentStatus("正常");
} else { } else {
equipmentVO.setStatus("停用"); equipmentVO.setEquipmentStatus("停用");
} }
// TODO 设备故障停机率 // TODO 设备故障停机率
equipmentVO.setFailureRate(0.90);
equipmentVO.setFailureRate(0.10);
// TODO 设备有效利用率 // TODO 设备有效利用率
equipmentVO.setUtilizationRatio(0.80); equipmentVO.setUtilizationRatio(0.80);
} }

@ -165,7 +165,7 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
} }
/** /**
* *
* *
* @param equOrder * @param equOrder
* @return * @return
@ -344,6 +344,7 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
} }
//////////////////////报修 //////////////////////报修
/** /**
* *
* *
@ -435,6 +436,8 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
/** /**
* *
* TODO
*
* @param pdadto * @param pdadto
* @return * @return
*/ */
@ -490,6 +493,7 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
return error(); return error();
} }
} }
/** /**
* *
* *
@ -535,8 +539,6 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
} }
/** /**
*
*
* @param equipmentId * @param equipmentId
* @return * @return
*/ */

@ -24,7 +24,7 @@
select be.equipment_code AS "equipmentCode", select be.equipment_code AS "equipmentCode",
be.equipment_name AS "equipmentName", be.equipment_name AS "equipmentName",
be.department AS "department", be.department AS "department",
be.status AS "status" be.equipment_status AS "equipmentStatus"
from base_equipment be from base_equipment be
where del_flag = '0' where del_flag = '0'
</select> </select>

Loading…
Cancel
Save