Commit c1e623e0 by 杨林龙

增加客户名绑定字段 customerNameAuth yangll

1 parent 117ca1ca
...@@ -24,6 +24,11 @@ public class DeviceVo implements Serializable { ...@@ -24,6 +24,11 @@ public class DeviceVo implements Serializable {
private String customerName; private String customerName;
/** /**
* 客户名称(鉴权)
*/
private String customerNameAuth;
/**
* 类型 * 类型
*/ */
private String deviceType; private String deviceType;
......
...@@ -28,6 +28,11 @@ public class UserVo implements Serializable { ...@@ -28,6 +28,11 @@ public class UserVo implements Serializable {
private String customerName; private String customerName;
/** /**
* 客户名称(鉴权)
*/
private String customerNameAuth;
/**
* 类型 * 类型
*/ */
private String deviceType; private String deviceType;
...@@ -77,4 +82,12 @@ public class UserVo implements Serializable { ...@@ -77,4 +82,12 @@ public class UserVo implements Serializable {
public void setRegisterEndTime(Date registerEndTime) { public void setRegisterEndTime(Date registerEndTime) {
this.registerEndTime = registerEndTime; this.registerEndTime = registerEndTime;
} }
public String getCustomerNameAuth() {
return customerNameAuth;
}
public void setCustomerNameAuth(String customerNameAuth) {
this.customerNameAuth = customerNameAuth;
}
} }
...@@ -42,7 +42,10 @@ ...@@ -42,7 +42,10 @@
left join t_platform_customer b on a.customer_id = b.id left join t_platform_customer b on a.customer_id = b.id
where 1 = 1 where 1 = 1
<if test="customerName != null and customerName != ''"> <if test="customerName != null and customerName != ''">
and b.customer_name = #{customerName,jdbcType=VARCHAR} and b.customer_name like '%${customerName}%'
</if>
<if test="customerNameAuth != null and customerNameAuth != ''">
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
</if> </if>
<if test="deviceType != null and deviceType != ''"> <if test="deviceType != null and deviceType != ''">
and a.device_type = #{deviceType,jdbcType=VARCHAR} and a.device_type = #{deviceType,jdbcType=VARCHAR}
......
...@@ -53,7 +53,10 @@ ...@@ -53,7 +53,10 @@
left join t_sys_area d on a.city = d.id left join t_sys_area d on a.city = d.id
where 1 = 1 where 1 = 1
<if test="customerName != null and customerName != ''"> <if test="customerName != null and customerName != ''">
and b.customer_name = #{customerName,jdbcType=VARCHAR} and b.customer_name like '%${customerName}%'
</if>
<if test="customerNameAuth != null and customerNameAuth != ''">
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
</if> </if>
<if test="registerStartTime != null"> <if test="registerStartTime != null">
and a.create_time &gt;= #{registerStartTime,jdbcType=TIMESTAMP} and a.create_time &gt;= #{registerStartTime,jdbcType=TIMESTAMP}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!