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
6eeed5b9
Commit
6eeed5b9
authored
Jul 21, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.bug
parent
a9018507
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
IRegUnitInfoService.java
.../boot/module/tcm/flc/api/service/IRegUnitInfoService.java
+2
-1
RegUnitInfoController.java
.../module/tcm/flc/biz/controller/RegUnitInfoController.java
+1
-1
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+5
-2
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/api/service/IRegUnitInfoService.java
View file @
6eeed5b9
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.tcm.flc.api.service;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.utils.Menu
;
import
com.yeejoin.amos.boot.module.tcm.flc.api.dto.RegUnitInfoDto
;
import
java.util.Collection
;
...
...
@@ -78,5 +79,5 @@ public interface IRegUnitInfoService {
void
setAllDataDictionaryList
();
List
<
DataDictionary
>
getDictionaryWithTreeFillId
(
String
type
)
;
List
<
Menu
>
getDictionaryWithTreeFillId
(
String
type
)
throws
Exception
;
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/controller/RegUnitInfoController.java
View file @
6eeed5b9
...
...
@@ -158,7 +158,7 @@ public class RegUnitInfoController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/dataDictionaryIdFillMenu"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据字典类型查询字典,id为SequenceNbr"
,
notes
=
"根据字典类型查询字典,id为SequenceNbr"
)
public
ResponseModel
<
List
<
DataDictionary
>>
getDictionaryWithTreeFillId
(
@RequestParam
String
type
)
{
public
ResponseModel
<
List
<
Menu
>>
getDictionaryWithTreeFillId
(
@RequestParam
String
type
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iRegUnitInfoService
.
getDictionaryWithTreeFillId
(
type
));
}
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
6eeed5b9
...
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.constants.CommonConstant;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.Menu
;
import
com.yeejoin.amos.boot.biz.common.utils.QRCodeUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.TreeParser
;
import
com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService
;
...
...
@@ -475,9 +476,11 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
}
@Override
public
List
<
DataDictionary
>
getDictionaryWithTreeFillId
(
String
type
)
{
public
List
<
Menu
>
getDictionaryWithTreeFillId
(
String
type
)
throws
Exception
{
List
<
DataDictionary
>
dictionaries
=
this
.
initAllDataDictionaryList
();
return
dictionaries
.
stream
().
parallel
().
filter
(
d
->
d
.
getType
().
equals
(
type
)).
collect
(
Collectors
.
toList
());
List
<
DataDictionary
>
temp
=
dictionaries
.
stream
().
parallel
().
filter
(
d
->
d
.
getType
().
equals
(
type
)).
collect
(
Collectors
.
toList
());
return
TreeParser
.
getTree
(
null
,
temp
,
DataDictionary
.
class
.
getName
(),
"getSequenceNbr"
,
2
,
"getName"
,
"getParent"
,
null
,
"getCode"
);
}
private
List
<
DataDictionary
>
initAllDataDictionaryList
()
{
...
...
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