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
4acab9b9
Commit
4acab9b9
authored
Jun 28, 2021
by
gaodongdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加编码生成
parent
dfdeb2c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
OrgUsrServiceImpl.java
...s/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
+18
-13
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
View file @
4acab9b9
...
...
@@ -332,9 +332,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
orgUsr
.
setRecUserName
(
oriOrgUsr
.
getRecUserName
());
orgUsr
.
setAmosOrgId
(
oriOrgUsr
.
getAmosOrgId
());
orgUsr
.
setAmosOrgCode
(
oriOrgUsr
.
getAmosOrgCode
());
if
(
or
gUsr
.
getParentId
()
!=
null
&&
"-1"
.
equals
(
o
rgUsr
.
getParentId
()))
{
OrgUsr
parent
=
getById
(
orgUsr
.
getParentId
());
if
(
parent
!=
null
)
{
if
(
or
iOrgUsr
.
getParentId
()
!=
null
&&
!
"-1"
.
equals
(
oriO
rgUsr
.
getParentId
()))
{
OrgUsr
parent
=
getById
(
or
iOr
gUsr
.
getParentId
());
if
(
parent
!=
null
&&
ObjectUtils
.
isEmpty
(
oriOrgUsr
.
getBizOrgCode
())
)
{
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
}
}
else
{
...
...
@@ -404,6 +404,11 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
alertFormValueServiceImpl
.
saveBatch
(
creatList
);
}
List
<
AlertFormValue
>
creatList
=
alertFromValuelist
.
stream
().
filter
(
v
->
v
.
getSequenceNbr
()
==
null
||
v
.
getSequenceNbr
()
==
0
).
collect
(
Collectors
.
toList
());
if
(
creatList
!=
null
&&
creatList
.
size
()
>
0
)
{
alertFormValueServiceImpl
.
saveBatch
(
creatList
);
}
}
else
{
// 保存动态表单数据
alertFormValueServiceImpl
.
saveBatch
(
alertFromValuelist
);
...
...
@@ -440,9 +445,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
BeanUtils
.
copyProperties
(
OrgUsrVo
,
orgUsr
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_COMPANY
);
if
(
OrgUsrVo
.
getParentId
()
!=
null
&&
"-1"
.
equals
(
OrgUsrVo
.
getParentId
()))
{
if
(
OrgUsrVo
.
getParentId
()
!=
null
&&
!
"-1"
.
equals
(
OrgUsrVo
.
getParentId
()))
{
OrgUsr
parent
=
getById
(
OrgUsrVo
.
getParentId
());
if
(
parent
!=
null
)
{
if
(
parent
!=
null
&&
ObjectUtils
.
isEmpty
(
OrgUsrVo
.
getBizOrgCode
())
)
{
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
}
}
else
{
...
...
@@ -456,9 +461,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
BeanUtils
.
copyProperties
(
OrgPersonVo
,
orgUsr
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
if
(
OrgPersonVo
.
getParentId
()
!=
null
&&
"-1"
.
equals
(
OrgPersonVo
.
getParentId
()))
{
if
(
OrgPersonVo
.
getParentId
()
!=
null
&&
!
"-1"
.
equals
(
OrgPersonVo
.
getParentId
()))
{
OrgUsr
parent
=
getById
(
OrgPersonVo
.
getParentId
());
if
(
parent
!=
null
)
{
if
(
parent
!=
null
&&
ObjectUtils
.
isEmpty
(
OrgPersonVo
.
getBizOrgCode
())
)
{
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
}
}
else
{
...
...
@@ -480,9 +485,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
oriOrgUsr
=
getById
(
id
);
BeanUtils
.
copyProperties
(
OrgUsrVo
,
orgUsr
);
if
(
orgUsr
.
getParentId
()
!=
null
&&
"-1"
.
equals
(
orgUsr
.
getParentId
()))
{
if
(
orgUsr
.
getParentId
()
!=
null
&&
!
"-1"
.
equals
(
orgUsr
.
getParentId
()))
{
OrgUsr
parent
=
getById
(
orgUsr
.
getParentId
());
if
(
parent
!=
null
)
{
if
(
parent
!=
null
&&
ObjectUtils
.
isEmpty
(
OrgUsrVo
.
getBizOrgCode
())
)
{
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
}
}
else
{
...
...
@@ -612,9 +617,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
BeanUtils
.
copyProperties
(
OrgDepartmentVo
,
orgUsr
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_DEPARTMENT
);
if
(
OrgDepartmentVo
.
getParentId
()
!=
null
&&
"-1"
.
equals
(
OrgDepartmentVo
.
getParentId
()))
{
if
(
OrgDepartmentVo
.
getParentId
()
!=
null
&&
!
"-1"
.
equals
(
OrgDepartmentVo
.
getParentId
()))
{
OrgUsr
parent
=
getById
(
OrgDepartmentVo
.
getParentId
());
if
(
parent
!=
null
)
{
if
(
parent
!=
null
&&
ObjectUtils
.
isEmpty
(
OrgDepartmentVo
.
getBizOrgCode
())
)
{
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
}
}
else
{
...
...
@@ -629,9 +634,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
oriOrgUsr
=
getById
(
id
);
BeanUtils
.
copyProperties
(
OrgDepartmentVo
,
orgUsr
);
if
(
orgUsr
.
getParentId
()
!=
null
&&
"-1"
.
equals
(
orgUsr
.
getParentId
()))
{
if
(
orgUsr
.
getParentId
()
!=
null
&&
!
"-1"
.
equals
(
orgUsr
.
getParentId
()))
{
OrgUsr
parent
=
getById
(
orgUsr
.
getParentId
());
if
(
parent
!=
null
)
{
if
(
parent
!=
null
&&
ObjectUtils
.
isEmpty
(
OrgDepartmentVo
.
getBizOrgCode
())
)
{
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
}
}
else
{
...
...
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