Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
bea0e9a8
Commit
bea0e9a8
authored
May 21, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
5260f3e4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletions
+19
-1
xggsve-uc/app/base/api/impl/op/action.js
+3
-0
xggsve-uc/app/base/db/impl/user/saasplatformuserDao.js
+9
-0
xggsve-uc/app/base/db/models/user/saasplatformuser.js
+1
-0
xggsve-uc/app/base/service/impl/user/saasplatformuserSve.js
+6
-1
No files found.
xggsve-uc/app/base/api/impl/op/action.js
View file @
bea0e9a8
...
...
@@ -180,6 +180,9 @@ class ActionAPI extends APIBase {
case
"platforMapByIds"
:
opResult
=
await
this
.
saasplatformuserSve
.
mapByIds
(
action_body
);
break
;
case
"updatePlatformUserChannelIdBySaasId"
:
opResult
=
await
this
.
saasplatformuserSve
.
updateChannelIdBySaasId
(
action_body
);
break
;
// saas商户
case
"merchantLogin"
:
...
...
xggsve-uc/app/base/db/impl/user/saasplatformuserDao.js
View file @
bea0e9a8
...
...
@@ -5,6 +5,15 @@ class SaasPlatformUserDao extends Dao {
super
(
Dao
.
getModelName
(
SaasPlatformUserDao
));
}
async
updateChannelIdBySaasId
(
params
)
{
let
sql
=
[];
sql
.
push
(
"UPDATE `saas_platform_user`"
);
sql
.
push
(
"SET channel_id = :channel_id"
);
sql
.
push
(
"WHERE saas_id = :saas_id"
);
return
await
this
.
customUpdate
(
sql
.
join
(
" "
),
params
);
}
/**
* 条件查询
* @param {} params
...
...
xggsve-uc/app/base/db/models/user/saasplatformuser.js
View file @
bea0e9a8
...
...
@@ -16,6 +16,7 @@ module.exports = (db, DataTypes) => {
defaultValue
:
true
},
saas_id
:
DataTypes
.
INTEGER
,
channel_id
:
DataTypes
.
INTEGER
,
},
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
...
...
xggsve-uc/app/base/service/impl/user/saasplatformuserSve.js
View file @
bea0e9a8
...
...
@@ -8,7 +8,12 @@ class SaasPlatformUserService extends ServiceBase {
this
.
saasbusinessDao
=
system
.
getObject
(
"db.saas.saasbusinessDao"
);
}
// 内部维护使用
async
updateChannelIdBySaasId
(
params
)
{
let
rs
=
await
this
.
dao
.
updateChannelIdBySaasId
(
params
);
return
system
.
getResult
(
rs
);
}
// 内部维护使用
async
resetPasswordInner
(
params
)
{
let
user
=
await
this
.
dao
.
findById
(
params
.
id
);
user
.
password
=
await
this
.
getEncryptStr
(
user
.
password
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment