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
bf1bf8d2
Commit
bf1bf8d2
authored
Nov 18, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
94662d07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
OrgServiceImpl.java
...amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
+9
-5
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
View file @
bf1bf8d2
...
...
@@ -40,6 +40,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
java.util.*
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
constants
.
XJConstant
.
ORG_CODE_USER
;
import
static
org
.
typroject
.
tyboot
.
component
.
cache
.
Redis
.
redisTemplate
;
@Service
...
...
@@ -123,7 +124,7 @@ public class OrgServiceImpl {
* @return
*/
final
static
int
codeSum
=
12
;
final
static
int
codeUserSum
=
12
;
final
static
int
codeUserSum
=
6
;
public
OrgUsr
saveOrgUsr
(
JSONObject
jsonObject
,
String
bizOrgType
,
String
sequenceNbr
){
ReginParams
reginParams
=
getReginParams
();
OrgUsr
orgUsr
=
new
OrgUsr
();
...
...
@@ -177,14 +178,17 @@ public class OrgServiceImpl {
OrgUsr
parent
=
orgUsrServiceImpl
.
getById
(
orgUsr
.
getParentId
());
if
(
parent
!=
null
&&
ObjectUtils
.
isEmpty
(
orgUsr
.
getBizOrgCode
()))
{
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
OrgUsrServiceImpl
.
getOrgCodeStr
());
}
else
if
(
jsonObject
.
get
(
"type"
).
equals
(
"WELDER"
)
&&
parent
.
getBizOrgCode
().
length
()<
XJConstant
.
ORG_CODE
)
{
//添加部门
}
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
.
get
(
"typeUser"
))){
if
(
jsonObject
.
get
(
"typeUser"
).
equals
(
"add"
)
||
(
jsonObject
.
get
(
"typeUser"
).
equals
(
"edit"
)
&&
parent
.
getBizOrgCode
().
length
()<
XJConstant
.
ORG_CODE
))
{
//添加部门
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
OrgUsrServiceImpl
.
getOrgCodeStr
());
}
else
if
(
jsonObject
.
get
(
"type
"
).
equals
(
"WELDER
"
)
&&
parent
.
getBizOrgCode
().
length
()==
XJConstant
.
ORG_CODE
)
{
//修改部门
}
else
if
(
jsonObject
.
get
(
"type
User"
).
equals
(
"edit
"
)
&&
parent
.
getBizOrgCode
().
length
()==
XJConstant
.
ORG_CODE
)
{
//修改部门
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
().
substring
(
0
,
codeSum
)+
OrgUsrServiceImpl
.
getOrgCodeStr
());
}
else
if
(
ValidationUtil
.
isEmpty
(
jsonObject
.
get
(
"type"
))&&
parent
.
getBizOrgCode
().
length
()==
XJConstant
.
ORG_CODE_USER
)
{
//部门负责人修改
}
else
if
(
jsonObject
.
get
(
"typeUser"
).
equals
(
"addUser"
)&&
parent
.
getBizOrgCode
().
length
()==
ORG_CODE_USER
||
parent
.
getBizOrgCode
().
length
()==
XJConstant
.
ORG_CODE
)
{
//部门负责人修改
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
().
substring
(
0
,
codeUserSum
)+
OrgUsrServiceImpl
.
getOrgCodeStr
());
}
}
}
else
{
orgUsr
.
setBizOrgCode
(
OrgUsrServiceImpl
.
getOrgCodeStr
());
}
...
...
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