设备查询 修改
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
... | @@ -522,8 +522,8 @@ public class EquipmentController { | ... | @@ -522,8 +522,8 @@ public class EquipmentController { |
522 | .select(" (SELECT MAX(real_start_time) FROM equipment_maintain_task WHERE equipment_id = equipment_info.id and results_enforcement='4') as equipmentExt_maintainLastTime ") | 522 | .select(" (SELECT MAX(real_start_time) FROM equipment_maintain_task WHERE equipment_id = equipment_info.id and results_enforcement='4') as equipmentExt_maintainLastTime ") |
523 | .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 ") | 523 | .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 ") |
524 | .select(" (select max(repair_date) from equipment_repair where info_id=equipment_info.id) as equipmentExt_repairLastTime ") | 524 | .select(" (select max(repair_date) from equipment_repair where info_id=equipment_info.id) as equipmentExt_repairLastTime ") |
525 | .from(EquipmentAsset.class) | 525 | .from(EquipmentInfo.class) |
526 | .innerJoin(EquipmentInfo.class, EquipmentInfo::getAssetId, EquipmentAsset::getId) | 526 | .leftJoin(EquipmentAsset.class, EquipmentInfo::getAssetId, EquipmentAsset::getId) |
527 | .leftJoin(EquipmentBrand.class, EquipmentInfo::getEquipmentBrand, EquipmentBrand::getId) | 527 | .leftJoin(EquipmentBrand.class, EquipmentInfo::getEquipmentBrand, EquipmentBrand::getId) |
528 | .leftJoin(EquipmentCategory.class, EquipmentInfo::getEquipmentType, EquipmentCategory::getId) | 528 | .leftJoin(EquipmentCategory.class, EquipmentInfo::getEquipmentType, EquipmentCategory::getId) |
529 | .where() | 529 | .where() | ... | ... |
-
请 注册 或 登录 后发表评论