Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
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 3ad2ccd8
authored
Jul 21, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
405be359
7989e149
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
src/main/resources/mapper/UserLocalAccountMapper.xml
src/main/resources/mapper/UserWechatAccountMapper.xml
src/main/resources/mapper/VehicleMapper.xml
src/main/resources/mapper/UserLocalAccountMapper.xml
View file @
3ad2ccd
...
@@ -78,14 +78,14 @@
...
@@ -78,14 +78,14 @@
</select>
</select>
<select
id=
"selectByRelUserIds"
resultType=
"cn.com.glsx.app.modules.model.CTerminalUserModel"
>
<select
id=
"selectByRelUserIds"
resultType=
"cn.com.glsx.app.modules.model.CTerminalUserModel"
>
select tcuar.user_id userId, tcu.rel_user_id relUserId, tcula.account, tcula2.username, tcula2.avatar
select tcu.id as userId, tu.id relUserId, tu.account, tu.username, tcula2.avatar
from t_cust_user_auth_rel tcuar
from t_user tu
inner join t_cust_user_local_auth tcula on tcuar.auth_id = tcula.id
left join t_cust_user tcu on tu.id = tcu.rel_user_id
inner join t_cust_user tcu on tcuar.user_id = tcu.id
left join t_cust_user_auth_rel tcuar on tcu.id = tcuar.user_id and tcuar.auth_type = 'local'
left join t_cust_user_local_auth tcula on tcuar.auth_id = tcula.id
left join t_cust_user_local_account tcula2 on tcuar.auth_id = tcula2.auth_id
left join t_cust_user_local_account tcula2 on tcuar.auth_id = tcula2.auth_id
where tcuar.del_flag = 0 and tcu.del_flag = 0
where tu.del_flag = 0
and tcuar.auth_type = 'local'
and tu.id in
and tcu.rel_user_id in
<foreach
collection=
"relUserIds"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"relUserIds"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
#{item}
</foreach>
</foreach>
...
...
src/main/resources/mapper/UserWechatAccountMapper.xml
View file @
3ad2ccd
...
@@ -33,11 +33,13 @@
...
@@ -33,11 +33,13 @@
</select>
</select>
<select
id=
"selectByUserIds"
resultType=
"cn.com.glsx.app.modules.model.CTerminalUserModel"
>
<select
id=
"selectByUserIds"
resultType=
"cn.com.glsx.app.modules.model.CTerminalUserModel"
>
select tcuar.user_id userId, tcu.rel_user_id relUserId, tcu
ta.openid account, ifnull(tcuwa.wechat_name, 'wechat_user'
) username, tcuwa.wechat_avatar avatar
select tcuar.user_id userId, tcu.rel_user_id relUserId, tcu
la.account, ifnull(tcuwa.wechat_name, tcula.account
) username, tcuwa.wechat_avatar avatar
from t_cust_user_auth_rel tcuar
from t_cust_user_auth_rel tcuar
inner join t_cust_user_third_auth tcuta on tcuar.auth_id = tcuta.id
inner join t_cust_user_third_auth tcuta on tcuar.auth_id = tcuta.id
left join t_cust_user tcu on tcuar.user_id = tcu.id
left join t_cust_user tcu on tcuar.user_id = tcu.id
left join t_cust_user_wechat_account tcuwa on tcuar.auth_id = tcuwa.auth_id
left join t_cust_user_wechat_account tcuwa on tcuar.auth_id = tcuwa.auth_id
left join t_cust_user_auth_rel tcuar2 on tcu.id = tcuar2.user_id and tcuar2.auth_type = 'local'
left join t_cust_user_local_auth tcula on tcuar2.auth_id = tcula.id
where tcuar.del_flag = 0
where tcuar.del_flag = 0
and tcuar.auth_type = 'third'
and tcuar.auth_type = 'third'
and tcuta.login_type = 'wechat'
and tcuta.login_type = 'wechat'
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
3ad2ccd
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
</select>
</select>
<select
id=
"countDeviceWithAuth"
resultType=
"java.lang.Integer"
>
<select
id=
"countDeviceWithAuth"
resultType=
"java.lang.Integer"
>
select count(tv.id)
select count(
distinct
tv.id)
from t_vehicle tv
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
<where>
<where>
...
...
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