Commit 0c32f520 authored by leyboy's avatar leyboy

1.开锁记录增加模糊查询

parent 55c094c2
This diff is collapsed.
...@@ -14,15 +14,6 @@ public class AdminVO { ...@@ -14,15 +14,6 @@ public class AdminVO {
@JSONField(format = "yyyy-MM-dd") @JSONField(format = "yyyy-MM-dd")
private String createTime; private String createTime;
private String adminId;
public String getAdminId() {
return adminId;
}
public void setAdminId(String adminId) {
this.adminId = adminId;
}
public String getAdminName() { public String getAdminName() {
return adminName; return adminName;
......
...@@ -13,6 +13,7 @@ spring.datasource.username = root ...@@ -13,6 +13,7 @@ spring.datasource.username = root
#后端端口 #后端端口
server.port=8888 server.port=8888
#server.port=${random.int(8000,9000)}
useSSL = false useSSL = false
......
...@@ -7,7 +7,7 @@ spring.datasource.username = adc_platform ...@@ -7,7 +7,7 @@ spring.datasource.username = adc_platform
spring.datasource.password = adc_platform spring.datasource.password = adc_platform
#后端端口 #后端端口
server.port=8080 server.port=${random.int(8000,9000)}
#验证码后台模式:1为不开启,2为开启,3为三次输错用户名或密码才开启,默认为1 #验证码后台模式:1为不开启,2为开启,3为三次输错用户名或密码才开启,默认为1
verifyCodeMode=1 verifyCodeMode=1
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#spring.datasource.password = root #spring.datasource.password = root
# =============================== # ===============================
# = DATA SOURCE2 # = DATA SOURCE2
# =============================== # ===============================
......
...@@ -49,14 +49,14 @@ ...@@ -49,14 +49,14 @@
lr.lock_type as lockType,lr.time as lockTime lr.lock_type as lockType,lr.time as lockTime
from tb_lock_record lr,tb_device d,tb_user u from tb_lock_record lr,tb_device d,tb_user u
<where> <where>
<trim suffixOverrides="and"> <if test="deviceName!=null and deviceName!=''">
<if test="deviceName!=null"> <bind name="deviceNameLike" value="'%'+deviceName+'%'"/>
d.deviceName = #{deviceName} and d.name LIKE #{deviceNameLike} and
</if> </if>
<if test="telphone!=null"> <if test="telphone!=null and telphone !=''">
u.telphone = #{telphone} and <bind name="telphoneLike" value="'%'+telphone+'%'"/>
</if> u.temphone LIKE #{telphoneLike} and
</trim> </if>
u.id = d.user_id and u.id = d.user_id and
d.code = lr.device_id d.code = lr.device_id
and lr.lock_type != '' and lr.lock_type != ''
......
...@@ -13,6 +13,7 @@ spring.datasource.username = root ...@@ -13,6 +13,7 @@ spring.datasource.username = root
#后端端口 #后端端口
server.port=8888 server.port=8888
#server.port=${random.int(8000,9000)}
useSSL = false useSSL = false
......
...@@ -7,7 +7,7 @@ spring.datasource.username = adc_platform ...@@ -7,7 +7,7 @@ spring.datasource.username = adc_platform
spring.datasource.password = adc_platform spring.datasource.password = adc_platform
#后端端口 #后端端口
server.port=8080 server.port=${random.int(8000,9000)}
#验证码后台模式:1为不开启,2为开启,3为三次输错用户名或密码才开启,默认为1 #验证码后台模式:1为不开启,2为开启,3为三次输错用户名或密码才开启,默认为1
verifyCodeMode=1 verifyCodeMode=1
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#spring.datasource.password = root #spring.datasource.password = root
# =============================== # ===============================
# = DATA SOURCE2 # = DATA SOURCE2
# =============================== # ===============================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment