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
b154420d
Commit
b154420d
authored
May 23, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(tcm):监管可查询所有的许可信息
parent
b8068916
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
TzBaseEnterpriseInfoController.java
...le/tcm/biz/controller/TzBaseEnterpriseInfoController.java
+0
-8
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+14
-2
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzBaseEnterpriseInfoController.java
View file @
b154420d
...
...
@@ -194,14 +194,6 @@ public class TzBaseEnterpriseInfoController {
return
ResponseHelper
.
buildResponse
(
iTzBaseEnterpriseInfoService
.
page
(
pageParam
,
companyModels
.
get
(
0
).
getCompanyCode
()));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getAllInfoByUseCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据统一信用代码查询企业详情,包含资质许可等"
,
notes
=
"根据统一信用代码查询企业详情,包含资质许可等"
)
public
ResponseModel
<
IPage
<
TzBaseEnterpriseInfoDto
>>
getAllInfoByUseCode
(
String
useCode
)
{
PageParam
pageParam
=
new
PageParam
();
return
ResponseHelper
.
buildResponse
(
iTzBaseEnterpriseInfoService
.
page
(
pageParam
,
useCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getInfoByUseCode"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据统一信用代码查询企业详情"
,
notes
=
"根据统一信用代码查询企业详情"
)
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
View file @
b154420d
...
...
@@ -174,6 +174,10 @@ public class TzBaseEnterpriseInfoServiceImpl
List
<
BaseUnitLicence
>
unitLicences
=
baseUnitLicenceService
.
list
(
new
LambdaQueryWrapper
<
BaseUnitLicence
>()
.
eq
(
BaseUnitLicence:
:
getUnitCode
,
tzBaseEnterpriseInfo
.
getUseCode
()));
List
<
BaseUnitLicenceDto
>
unitLicenceDtos
=
new
ArrayList
<>();
List
<
BaseUnitLicence
>
unitLicencesCollect
;
if
(
"监管机构"
.
equals
(
companyType
))
{
unitLicencesCollect
=
unitLicences
;
}
else
{
Predicate
<
BaseUnitLicence
>
certTypePredicate
;
if
(
INSPECTION_AND_TESTING_INSTITUTIONS
.
equals
(
companyType
))
{
certTypePredicate
=
baseUnitLicence
->
INSPECTION_AGENCY
.
equals
(
baseUnitLicence
.
getCertType
())
||
...
...
@@ -181,9 +185,10 @@ public class TzBaseEnterpriseInfoServiceImpl
}
else
{
certTypePredicate
=
baseUnitLicence
->
companyType
.
contains
(
baseUnitLicence
.
getCertType
());
}
List
<
BaseUnitLicence
>
unitLicencesCollect
=
unitLicences
.
stream
()
unitLicencesCollect
=
unitLicences
.
stream
()
.
filter
(
certTypePredicate
)
.
collect
(
Collectors
.
toList
());
}
if
(!
ValidationUtil
.
isEmpty
(
unitLicencesCollect
))
{
for
(
BaseUnitLicence
baseUnitLicence
:
unitLicencesCollect
)
{
BaseUnitLicenceDto
baseUnitLicenceDto
=
new
BaseUnitLicenceDto
();
...
...
@@ -217,7 +222,14 @@ public class TzBaseEnterpriseInfoServiceImpl
@Override
public
TzBaseEnterpriseInfoDto
getInfoByUseCode
(
String
useCode
)
{
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
=
tzBaseEnterpriseInfoMapper
.
selectOne
(
new
QueryWrapper
<
TzBaseEnterpriseInfo
>().
eq
(
"use_code"
,
useCode
));
return
ObjectUtils
.
isEmpty
(
tzBaseEnterpriseInfo
)
?
null
:
getDetail
(
tzBaseEnterpriseInfo
);
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
=
getDetail
(
tzBaseEnterpriseInfo
);
if
(!
ObjectUtils
.
isEmpty
(
tzBaseEnterpriseInfo
)){
LambdaQueryWrapper
<
TzsBaseInstitution
>
lambda
=
new
QueryWrapper
<
TzsBaseInstitution
>().
lambda
();
lambda
.
eq
(
TzsBaseInstitution:
:
getEnterpriseId
,
tzBaseEnterpriseInfo
.
getSequenceNbr
());
TzsBaseInstitution
tzsBaseInstitution
=
tzsBaseInstitutionService
.
getBaseMapper
().
selectOne
(
lambda
);
tzBaseEnterpriseInfoDto
.
setRegUnitMessage
(
tzsBaseInstitution
);
}
return
ObjectUtils
.
isEmpty
(
tzBaseEnterpriseInfo
)
?
null
:
tzBaseEnterpriseInfoDto
;
}
private
TzBaseEnterpriseInfoDto
getDetail
(
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
){
...
...
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