From d79ff0d59709b9bb6f9fb3b44107dc46a65a7b72 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 19 八月 2021 19:35:06 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/common/MachineServiceDaoImplMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/common/MachineServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/MachineServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 40134c7..a62b8b2
--- a/java110-db/src/main/resources/mapper/common/MachineServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/MachineServiceDaoImplMapper.xml
@@ -145,7 +145,7 @@
bId,t.machine_name,t.machine_name machineName,t.machine_type_cd,t.machine_type_cd
machineTypeCd,t.machine_ip,t.machine_ip machineIp,td.name machineTypeCdName,
t.state,c.location_id locationTypeCd, c.location_name locationTypeName, t.location_obj_id locationObjId,
- t.location_type_cd,t.location_obj_id,t.heartbeat_time,t.heartbeat_time heartbeatTime
+ t.location_type_cd,t.location_obj_id,t.heartbeat_time,t.heartbeat_time heartbeatTime,
td1.name stateName,t.create_time createTime,t.direction,td3.name directionName
from machine t
left join t_dict td on t.machine_type_cd=td.status_cd and td.table_name='machine' and td.table_columns='machine_type_cd'
@@ -254,7 +254,7 @@
<if test="direction !=null and direction != ''">
, t.direction = #{direction}
</if>
- <if test="heartbeatTime !=null and heartbeatTime != ''">
+ <if test="heartbeatTime !=null ">
, t.heartbeat_time = #{heartbeatTime}
</if>
where 1=1
--
Gitblit v1.8.0