Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
6ff7e386
Commit
6ff7e386
authored
Sep 27, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改使用单位同步企业一次性接口
parent
b30d7359
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
TzBaseEnterpriseInfoServiceImpl.java
...tzs/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+17
-2
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
View file @
6ff7e386
...
@@ -239,12 +239,29 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -239,12 +239,29 @@ public class TzBaseEnterpriseInfoServiceImpl
Privilege
.
companyClient
.
create
(
companyModel
);
Privilege
.
companyClient
.
create
(
companyModel
);
}
else
if
(
tzBaseEnterprisePrivilegeInfo
==
null
){
}
else
if
(
tzBaseEnterprisePrivilegeInfo
==
null
){
//企业表没有,平台表有
//企业表没有,平台表有
if
(!
companyPrivilegeModel
.
getCompanyType
().
contains
(
companyModel
.
getCompanyType
())){
companyPrivilegeModel
.
setCompanyType
(
companyPrivilegeModel
.
getCompanyType
()+
","
+
companyModel
.
getCompanyType
());
Privilege
.
companyClient
.
update
(
companyPrivilegeModel
,
companyPrivilegeModel
.
getSequenceNbr
());
}
this
.
save
(
baseEnterpriseInfo
);
this
.
save
(
baseEnterpriseInfo
);
}
else
if
(
companyPrivilegeModel
==
null
){
}
else
if
(
companyPrivilegeModel
==
null
){
//平台表没有,企业表有
//平台表没有,企业表有
if
(!
tzBaseEnterprisePrivilegeInfo
.
getUnitType
().
contains
(
baseEnterpriseInfo
.
getUnitType
())){
tzBaseEnterprisePrivilegeInfo
.
setUnitType
(
tzBaseEnterprisePrivilegeInfo
.
getUnitType
()+
","
+
baseEnterpriseInfo
.
getUnitType
());
this
.
updateById
(
tzBaseEnterprisePrivilegeInfo
);
}
Privilege
.
companyClient
.
create
(
companyModel
);
Privilege
.
companyClient
.
create
(
companyModel
);
}
}
else
{
else
{
//企业表有 平台表有
if
(!
companyPrivilegeModel
.
getCompanyType
().
contains
(
companyModel
.
getCompanyType
())){
companyPrivilegeModel
.
setCompanyType
(
companyPrivilegeModel
.
getCompanyType
()+
","
+
companyModel
.
getCompanyType
());
Privilege
.
companyClient
.
update
(
companyPrivilegeModel
,
companyPrivilegeModel
.
getSequenceNbr
());
}
if
(!
tzBaseEnterprisePrivilegeInfo
.
getUnitType
().
contains
(
baseEnterpriseInfo
.
getUnitType
())){
tzBaseEnterprisePrivilegeInfo
.
setUnitType
(
tzBaseEnterprisePrivilegeInfo
.
getUnitType
()+
","
+
baseEnterpriseInfo
.
getUnitType
());
this
.
updateById
(
tzBaseEnterprisePrivilegeInfo
);
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
if
(!
e
.
getMessage
().
equals
(
"重复的公司名称."
))
if
(!
e
.
getMessage
().
equals
(
"重复的公司名称."
))
...
@@ -256,8 +273,6 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -256,8 +273,6 @@ public class TzBaseEnterpriseInfoServiceImpl
}
}
}
}
// }
}
}
}
}
return
"ok"
;
return
"ok"
;
...
...
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