Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c1e623e0
authored
Dec 25, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加客户名绑定字段 customerNameAuth yangll
1 parent
117ca1ca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
2 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/vo/DeviceVo.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/vo/UserVo.java
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformUserMapper.xml
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/vo/DeviceVo.java
View file @
c1e623e
...
...
@@ -24,6 +24,11 @@ public class DeviceVo implements Serializable {
private
String
customerName
;
/**
* 客户名称(鉴权)
*/
private
String
customerNameAuth
;
/**
* 类型
*/
private
String
deviceType
;
...
...
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/vo/UserVo.java
View file @
c1e623e
...
...
@@ -28,6 +28,11 @@ public class UserVo implements Serializable {
private
String
customerName
;
/**
* 客户名称(鉴权)
*/
private
String
customerNameAuth
;
/**
* 类型
*/
private
String
deviceType
;
...
...
@@ -77,4 +82,12 @@ public class UserVo implements Serializable {
public
void
setRegisterEndTime
(
Date
registerEndTime
)
{
this
.
registerEndTime
=
registerEndTime
;
}
public
String
getCustomerNameAuth
()
{
return
customerNameAuth
;
}
public
void
setCustomerNameAuth
(
String
customerNameAuth
)
{
this
.
customerNameAuth
=
customerNameAuth
;
}
}
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
View file @
c1e623e
...
...
@@ -42,7 +42,10 @@
left join t_platform_customer b on a.customer_id = b.id
where 1 = 1
<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
test=
"deviceType != null and deviceType != ''"
>
and a.device_type = #{deviceType,jdbcType=VARCHAR}
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformUserMapper.xml
View file @
c1e623e
...
...
@@ -53,7 +53,10 @@
left join t_sys_area d on a.city = d.id
where 1 = 1
<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
test=
"registerStartTime != null"
>
and a.create_time
>
= #{registerStartTime,jdbcType=TIMESTAMP}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment