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
03292e86
Commit
03292e86
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
into dev-sx
parents
87208322
c1f3fe4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
pom.xml
pom.xml
+1
-1
ServiceHGXSOrg.java
.../java/com/baosight/hggp/hg/xs/service/ServiceHGXSOrg.java
+20
-8
No files found.
pom.xml
View file @
03292e86
...
...
@@ -15,7 +15,7 @@
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
war
</packaging>
<name>
hggp
_dev-sx
</name>
<name>
hggp
</name>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
...
...
src/main/java/com/baosight/hggp/hg/xs/service/ServiceHGXSOrg.java
View file @
03292e86
...
...
@@ -175,13 +175,7 @@ public class ServiceHGXSOrg extends ServiceBase {
dbOrg
.
setOrgId
(
orgId
);
this
.
syncDcDeptAdd
(
accountCode
,
dcDeptList
,
dbOrg
,
dbPz009
);
}
else
{
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
);
this
.
syncDcDeptModify
(
dcDeptList
,
orgId
);
}
}
}
...
...
@@ -199,7 +193,9 @@ public class ServiceHGXSOrg extends ServiceBase {
dbOrg
.
setAccountCode
(
accountCode
);
dbOrg
.
setOrgEname
(
orgId
);
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
())
?
accountCode
:
dbPz009
.
getLoginPrefix
()
+
dcDeptList
.
getParentId
());
dbOrg
.
setEstablishDate
(
"20240101"
);
...
...
@@ -212,4 +208,20 @@ public class ServiceHGXSOrg extends ServiceBase {
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