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
4cdefc23
Commit
4cdefc23
authored
Jun 24, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机构修改
parent
d5f76f9c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
37 deletions
+10
-37
CommonConstant.java
...eejoin/amos/boot/biz/common/constants/CommonConstant.java
+2
-2
OrgMenuVo.java
...va/com/yeejoin/amos/boot/module/jcs/api/vo/OrgMenuVo.java
+4
-3
OrgUsrFormVo.java
...com/yeejoin/amos/boot/module/jcs/api/vo/OrgUsrFormVo.java
+0
-17
OrgUsrVo.java
...ava/com/yeejoin/amos/boot/module/jcs/api/vo/OrgUsrVo.java
+0
-11
OrgUsrServiceImpl.java
...s/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
+4
-4
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/constants/CommonConstant.java
View file @
4cdefc23
...
@@ -29,10 +29,10 @@ public interface CommonConstant {
...
@@ -29,10 +29,10 @@ public interface CommonConstant {
/**
/**
* 未被删除
* 未被删除
*/
*/
public
final
static
String
IS_DELETE_00
=
"0"
;
public
final
static
boolean
IS_DELETE_00
=
false
;
/**
/**
* 已被删除
* 已被删除
*/
*/
public
final
static
String
IS_DELETE_01
=
"1"
;
public
final
static
boolean
IS_DELETE_01
=
true
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/OrgMenuVo.java
View file @
4cdefc23
...
@@ -18,16 +18,16 @@ public class OrgMenuVo {
...
@@ -18,16 +18,16 @@ public class OrgMenuVo {
public
Long
key
;
public
Long
key
;
public
String
title
;
public
String
title
;
public
Long
parentId
;
public
Long
parentId
;
public
boolean
isLeaf
;
public
boolean
leaf
=
true
;
public
List
<
OrgMenuVo
>
children
;
public
List
<
OrgMenuVo
>
children
;
public
String
bizOrgType
;
public
String
bizOrgType
;
public
OrgMenuVo
(
Long
key
,
String
title
,
Long
parentId
,
String
bizOrgType
,
boolean
isL
eaf
)
{
public
OrgMenuVo
(
Long
key
,
String
title
,
Long
parentId
,
String
bizOrgType
,
boolean
l
eaf
)
{
super
();
super
();
this
.
key
=
key
;
this
.
key
=
key
;
this
.
title
=
title
;
this
.
title
=
title
;
this
.
parentId
=
parentId
;
this
.
parentId
=
parentId
;
this
.
bizOrgType
=
bizOrgType
;
this
.
bizOrgType
=
bizOrgType
;
this
.
isLeaf
=
isL
eaf
;
this
.
leaf
=
l
eaf
;
}
}
public
OrgMenuVo
(
Long
key
,
String
title
,
Long
parentId
,
String
bizOrgType
)
{
public
OrgMenuVo
(
Long
key
,
String
title
,
Long
parentId
,
String
bizOrgType
)
{
...
@@ -37,4 +37,5 @@ public class OrgMenuVo {
...
@@ -37,4 +37,5 @@ public class OrgMenuVo {
this
.
children
=
children
;
this
.
children
=
children
;
this
.
bizOrgType
=
bizOrgType
;
this
.
bizOrgType
=
bizOrgType
;
}
}
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/OrgUsrFormVo.java
View file @
4cdefc23
...
@@ -39,23 +39,6 @@ public class OrgUsrFormVo {
...
@@ -39,23 +39,6 @@ public class OrgUsrFormVo {
@ApiModelProperty
(
value
=
"单位人员信息值"
)
@ApiModelProperty
(
value
=
"单位人员信息值"
)
private
List
<
OrgPersonFormVo
>
children
;
private
List
<
OrgPersonFormVo
>
children
;
public
OrgUsrFormVo
(
String
currentUnit
,
String
parentId
,
Integer
personNum
,
List
<
FormValue
>
dynamicFormAlert
,
List
<
OrgPersonFormVo
>
children
)
{
this
.
currentUnit
=
currentUnit
;
this
.
parentId
=
parentId
;
this
.
personNum
=
personNum
;
this
.
dynamicFormAlert
=
dynamicFormAlert
;
this
.
children
=
children
;
}
public
OrgUsrFormVo
(
Long
id
,
String
currentUnit
,
String
parentId
,
Integer
personNum
,
List
<
FormValue
>
dynamicFormAlert
,
List
<
OrgPersonFormVo
>
children
)
{
this
.
id
=
id
;
this
.
currentUnit
=
currentUnit
;
this
.
parentId
=
parentId
;
this
.
personNum
=
personNum
;
this
.
dynamicFormAlert
=
dynamicFormAlert
;
this
.
children
=
children
;
}
public
OrgUsrFormVo
()
{
public
OrgUsrFormVo
()
{
}
}
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/OrgUsrVo.java
View file @
4cdefc23
...
@@ -50,15 +50,4 @@ public class OrgUsrVo {
...
@@ -50,15 +50,4 @@ public class OrgUsrVo {
@ApiModelProperty
(
value
=
"单位动态表单值"
)
@ApiModelProperty
(
value
=
"单位动态表单值"
)
private
List
<
AlertFormValue
>
alertFormValue
;
private
List
<
AlertFormValue
>
alertFormValue
;
public
OrgUsrVo
(
String
bizOrgName
,
String
bizOrgCode
,
String
amosOrgId
,
String
amosOrgCode
,
String
bizOrgType
,
String
buildName
,
String
buildId
,
String
parentId
,
List
<
AlertFormValue
>
alertFormValue
)
{
this
.
bizOrgName
=
bizOrgName
;
this
.
bizOrgCode
=
bizOrgCode
;
this
.
amosOrgId
=
amosOrgId
;
this
.
amosOrgCode
=
amosOrgCode
;
this
.
bizOrgType
=
bizOrgType
;
this
.
buildName
=
buildName
;
this
.
buildId
=
buildId
;
this
.
parentId
=
parentId
;
this
.
alertFormValue
=
alertFormValue
;
}
}
}
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 @
4cdefc23
...
@@ -78,8 +78,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -78,8 +78,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
//获取每个顶层元素的子数据集合
//获取每个顶层元素的子数据集合
for
(
OrgMenuVo
entity
:
resultList
)
{
for
(
OrgMenuVo
entity
:
resultList
)
{
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
entity
.
setLeaf
(
false
);
}
}
return
resultList
;
return
resultList
;
}
}
...
@@ -89,7 +89,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -89,7 +89,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
List
<
OrgMenuVo
>
childList
=
new
ArrayList
<>();
List
<
OrgMenuVo
>
childList
=
new
ArrayList
<>();
@SuppressWarnings
(
"rawtypes"
)
@SuppressWarnings
(
"rawtypes"
)
Class
clazz
=
Class
.
forName
(
packageURL
);
Class
clazz
=
Class
.
forName
(
packageURL
);
Method
IDMethodNameme
=
null
;
Method
IDMethodNameme
=
null
;
switch
(
IDHierarchy
)
{
switch
(
IDHierarchy
)
{
case
1
:
case
1
:
...
@@ -118,12 +117,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -118,12 +117,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
if
(
parentId
==
null
)
{
if
(
parentId
==
null
)
{
if
(
topId
==
parentId
)
{
if
(
topId
==
parentId
)
{
OrgMenuVo
menu
=
new
OrgMenuVo
(
Long
.
valueOf
(
String
.
valueOf
(
IDMethodNameme
.
invoke
(
entity
))),
String
.
valueOf
(
NAMEMethodNameme
.
invoke
(
entity
)),
parentId
,
String
.
valueOf
(
OrgTypeMethodNameme
.
invoke
(
entity
))
,
false
);
OrgMenuVo
menu
=
new
OrgMenuVo
(
Long
.
valueOf
(
String
.
valueOf
(
IDMethodNameme
.
invoke
(
entity
))),
String
.
valueOf
(
NAMEMethodNameme
.
invoke
(
entity
)),
parentId
,
String
.
valueOf
(
OrgTypeMethodNameme
.
invoke
(
entity
)));
childList
.
add
(
menu
);
childList
.
add
(
menu
);
}
}
}
else
{
}
else
{
if
(
topId
.
longValue
()
==
parentId
.
longValue
())
{
if
(
topId
.
longValue
()
==
parentId
.
longValue
())
{
OrgMenuVo
menu
=
new
OrgMenuVo
(
Long
.
valueOf
(
String
.
valueOf
(
IDMethodNameme
.
invoke
(
entity
))),
String
.
valueOf
(
NAMEMethodNameme
.
invoke
(
entity
)),
parentId
,
String
.
valueOf
(
OrgTypeMethodNameme
.
invoke
(
entity
))
,
true
);
OrgMenuVo
menu
=
new
OrgMenuVo
(
Long
.
valueOf
(
String
.
valueOf
(
IDMethodNameme
.
invoke
(
entity
))),
String
.
valueOf
(
NAMEMethodNameme
.
invoke
(
entity
)),
parentId
,
String
.
valueOf
(
OrgTypeMethodNameme
.
invoke
(
entity
)));
childList
.
add
(
menu
);
childList
.
add
(
menu
);
}
}
}
}
...
@@ -133,6 +132,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -133,6 +132,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
//子集的间接子对象
//子集的间接子对象
for
(
OrgMenuVo
entity
:
childList
)
{
for
(
OrgMenuVo
entity
:
childList
)
{
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
}
}
//递归退出条件
//递归退出条件
...
...
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