Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
aaaff93a
Commit
aaaff93a
authored
Sep 09, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.fixBug冻结用户不生效问题
parent
d4b28a8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ServiceHGXSUser.java
...java/com/baosight/hggp/hg/xs/service/ServiceHGXSUser.java
+2
-2
HGXSTools.java
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
+3
-3
No files found.
src/main/java/com/baosight/hggp/hg/xs/service/ServiceHGXSUser.java
View file @
aaaff93a
...
@@ -301,10 +301,10 @@ public class ServiceHGXSUser extends ServiceBase {
...
@@ -301,10 +301,10 @@ public class ServiceHGXSUser extends ServiceBase {
private
void
syncDcSingleUserAdd
(
DcUserList
dcUserList
,
DcUser
dcUser
,
HGPZ009
dbPz009
)
throws
Exception
{
private
void
syncDcSingleUserAdd
(
DcUserList
dcUserList
,
DcUser
dcUser
,
HGPZ009
dbPz009
)
throws
Exception
{
String
userId
=
dcUser
.
getYgid
();
String
userId
=
dcUser
.
getYgid
();
// -1:冻结用户,1:正常
// -1:冻结用户,1:正常
String
isLock
=
HGXSUtils
.
XsUser
.
convertIsLock
(
dcUserList
.
getStatus
());
String
isLock
ed
=
HGXSUtils
.
XsUser
.
convertIsLock
(
dcUserList
.
getStatus
());
// 新增用户
// 新增用户
HGXSTools
.
XsUser
.
addUser
(
dbPz009
.
getAccountCode
(),
userId
,
dcUser
.
getName
(),
dcUser
.
getSex
(),
dcUser
.
getEmail
(),
HGXSTools
.
XsUser
.
addUser
(
dbPz009
.
getAccountCode
(),
userId
,
dcUser
.
getName
(),
dcUser
.
getSex
(),
dcUser
.
getEmail
(),
dcUser
.
getCardid
(),
isLock
,
dcUserList
.
getOrd
().
toString
());
dcUser
.
getCardid
(),
isLock
ed
,
dcUserList
.
getOrd
().
toString
());
// 新增用户和组织机构关系
// 新增用户和组织机构关系
Map
addMap
=
new
HashMap
();
Map
addMap
=
new
HashMap
();
addMap
.
put
(
"orgId"
,
dbPz009
.
getLoginPrefix
()
+
dcUser
.
getOrgsid
());
addMap
.
put
(
"orgId"
,
dbPz009
.
getLoginPrefix
()
+
dcUser
.
getOrgsid
());
...
...
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
View file @
aaaff93a
...
@@ -219,10 +219,10 @@ public class HGXSTools {
...
@@ -219,10 +219,10 @@ public class HGXSTools {
* @param gender
* @param gender
* @param mobile
* @param mobile
* @param idCard
* @param idCard
* @param isLock
* @param isLock
ed
*/
*/
public
static
void
addUser
(
String
accountCode
,
String
userId
,
String
userName
,
String
gender
,
String
mobile
,
public
static
void
addUser
(
String
accountCode
,
String
userId
,
String
userName
,
String
gender
,
String
mobile
,
String
idCard
,
String
isLock
,
String
extId
)
throws
Exception
{
String
idCard
,
String
isLock
ed
,
String
extId
)
throws
Exception
{
Map
inInfoRowMap
=
new
HashMap
();
Map
inInfoRowMap
=
new
HashMap
();
inInfoRowMap
.
put
(
"userId"
,
userId
);
inInfoRowMap
.
put
(
"userId"
,
userId
);
inInfoRowMap
.
put
(
"loginName"
,
userId
);
inInfoRowMap
.
put
(
"loginName"
,
userId
);
...
@@ -235,7 +235,7 @@ public class HGXSTools {
...
@@ -235,7 +235,7 @@ public class HGXSTools {
inInfoRowMap
.
put
(
"idCard"
,
StringUtils
.
isBlank
(
idCard
)
?
" "
:
idCard
);
inInfoRowMap
.
put
(
"idCard"
,
StringUtils
.
isBlank
(
idCard
)
?
" "
:
idCard
);
inInfoRowMap
.
put
(
"gender"
,
HGXSUtils
.
XsUser
.
convertGender
(
gender
));
inInfoRowMap
.
put
(
"gender"
,
HGXSUtils
.
XsUser
.
convertGender
(
gender
));
inInfoRowMap
.
put
(
"mobile"
,
StringUtils
.
isBlank
(
mobile
)
?
" "
:
mobile
);
inInfoRowMap
.
put
(
"mobile"
,
StringUtils
.
isBlank
(
mobile
)
?
" "
:
mobile
);
inInfoRowMap
.
put
(
"isLock
"
,
isLock
);
inInfoRowMap
.
put
(
"isLock
ed"
,
isLocked
);
inInfoRowMap
.
put
(
"extId"
,
extId
);
inInfoRowMap
.
put
(
"extId"
,
extId
);
inInfoRowMap
.
put
(
"accountCode"
,
accountCode
);
inInfoRowMap
.
put
(
"accountCode"
,
accountCode
);
EiInfo
inInfo
=
new
EiInfo
();
EiInfo
inInfo
=
new
EiInfo
();
...
...
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