0ac65a92 sonin

设备查询 修改

1 个父辈 c2945bf7
......@@ -522,8 +522,8 @@ public class EquipmentController {
.select(" (SELECT MAX(real_start_time) FROM equipment_maintain_task WHERE equipment_id = equipment_info.id and results_enforcement='4') as equipmentExt_maintainLastTime ")
.select(" (select TIMESTAMPDIFF(HOUR, NOW(),(select min(start_time) from equipment_maintain_task where start_time>NOW() and equipment_id = equipment_info.id))) as equipmentExt_maintainCountdown ")
.select(" (select max(repair_date) from equipment_repair where info_id=equipment_info.id) as equipmentExt_repairLastTime ")
.from(EquipmentAsset.class)
.innerJoin(EquipmentInfo.class, EquipmentInfo::getAssetId, EquipmentAsset::getId)
.from(EquipmentInfo.class)
.leftJoin(EquipmentAsset.class, EquipmentInfo::getAssetId, EquipmentAsset::getId)
.leftJoin(EquipmentBrand.class, EquipmentInfo::getEquipmentBrand, EquipmentBrand::getId)
.leftJoin(EquipmentCategory.class, EquipmentInfo::getEquipmentType, EquipmentCategory::getId)
.where()
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!