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
21ad4a95
Commit
21ad4a95
authored
Sep 02, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://129.211.46.84:8800/platform/hg-smart
parents
a23928af
c1f3fe4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
ServiceHGXSOrg.java
.../java/com/baosight/hggp/hg/xs/service/ServiceHGXSOrg.java
+21
-9
No files found.
src/main/java/com/baosight/hggp/hg/xs/service/ServiceHGXSOrg.java
View file @
21ad4a95
...
@@ -175,13 +175,7 @@ public class ServiceHGXSOrg extends ServiceBase {
...
@@ -175,13 +175,7 @@ public class ServiceHGXSOrg extends ServiceBase {
dbOrg
.
setOrgId
(
orgId
);
dbOrg
.
setOrgId
(
orgId
);
this
.
syncDcDeptAdd
(
accountCode
,
dcDeptList
,
dbOrg
,
dbPz009
);
this
.
syncDcDeptAdd
(
accountCode
,
dcDeptList
,
dbOrg
,
dbPz009
);
}
else
{
}
else
{
Map
updateMap
=
new
HashMap
();
this
.
syncDcDeptModify
(
dcDeptList
,
orgId
);
updateMap
.
put
(
Org
.
FIELD_ORG_ID
,
orgId
);
updateMap
.
put
(
Org
.
FIELD_ORG_CNAME
,
dcDeptList
.
getNodeText
());
updateMap
.
put
(
Org
.
FIELD_REC_REVISOR
,
"System"
);
updateMap
.
put
(
Org
.
FIELD_REC_REVISE_TIME
,
DateUtils
.
shortDateTime
());
updateMap
.
put
(
Org
.
FIELD_IS_DELETED
,
DeleteFlagEnum
.
UN_REMOVE
.
getCode
().
toString
());
dao
.
update
(
HgXsSqlConstant
.
HgXsOrg
.
UPDATE_ORG_CNAME
,
updateMap
);
}
}
}
}
}
}
...
@@ -190,7 +184,7 @@ public class ServiceHGXSOrg extends ServiceBase {
...
@@ -190,7 +184,7 @@ public class ServiceHGXSOrg extends ServiceBase {
* 新增数据
* 新增数据
*
*
* @param accountCode
* @param accountCode
* @param
zbDep
t
* @param
dcDeptLis
t
* @param dbOrg
* @param dbOrg
* @param dbPz009
* @param dbPz009
*/
*/
...
@@ -199,7 +193,9 @@ public class ServiceHGXSOrg extends ServiceBase {
...
@@ -199,7 +193,9 @@ public class ServiceHGXSOrg extends ServiceBase {
dbOrg
.
setAccountCode
(
accountCode
);
dbOrg
.
setAccountCode
(
accountCode
);
dbOrg
.
setOrgEname
(
orgId
);
dbOrg
.
setOrgEname
(
orgId
);
dbOrg
.
setOrgCname
(
dcDeptList
.
getNodeText
());
dbOrg
.
setOrgCname
(
dcDeptList
.
getNodeText
());
dbOrg
.
setOrgType
(
OrgTypeEnum
.
DEPT
.
getCode
());
// parentId=-1:表示是组织机构顶级
dbOrg
.
setOrgType
(
"-1"
.
equals
(
dcDeptList
.
getParentId
())
?
OrgTypeEnum
.
COMPANY
.
getCode
()
:
OrgTypeEnum
.
DEPT
.
getCode
());
dbOrg
.
setParentOrgId
(
"-1"
.
equals
(
dcDeptList
.
getParentId
())
dbOrg
.
setParentOrgId
(
"-1"
.
equals
(
dcDeptList
.
getParentId
())
?
accountCode
:
dbPz009
.
getLoginPrefix
()
+
dcDeptList
.
getParentId
());
?
accountCode
:
dbPz009
.
getLoginPrefix
()
+
dcDeptList
.
getParentId
());
dbOrg
.
setEstablishDate
(
"20240101"
);
dbOrg
.
setEstablishDate
(
"20240101"
);
...
@@ -212,4 +208,20 @@ public class ServiceHGXSOrg extends ServiceBase {
...
@@ -212,4 +208,20 @@ public class ServiceHGXSOrg extends ServiceBase {
dao
.
insert
(
"XSOG01.insert"
,
dbOrg
);
dao
.
insert
(
"XSOG01.insert"
,
dbOrg
);
}
}
/**
* 修改
*
* @param dcDeptList
* @param orgId
*/
private
void
syncDcDeptModify
(
DcDeptList
dcDeptList
,
String
orgId
)
{
Map
updateMap
=
new
HashMap
();
updateMap
.
put
(
Org
.
FIELD_ORG_ID
,
orgId
);
updateMap
.
put
(
Org
.
FIELD_ORG_CNAME
,
dcDeptList
.
getNodeText
());
updateMap
.
put
(
Org
.
FIELD_REC_REVISOR
,
"System"
);
updateMap
.
put
(
Org
.
FIELD_REC_REVISE_TIME
,
DateUtils
.
shortDateTime
());
updateMap
.
put
(
Org
.
FIELD_IS_DELETED
,
DeleteFlagEnum
.
UN_REMOVE
.
getCode
().
toString
());
dao
.
update
(
HgXsSqlConstant
.
HgXsOrg
.
UPDATE_ORG_CNAME
,
updateMap
);
}
}
}
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