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
f2102a56
Commit
f2102a56
authored
Nov 12, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg): 证列表过滤
1.有接收机构时按照制度的接收机构进行过滤
parent
1b54a6f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
+23
-9
JgUseRegistrationManageController.java
.../jg/biz/controller/JgUseRegistrationManageController.java
+23
-9
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgUseRegistrationManageController.java
View file @
f2102a56
...
...
@@ -14,6 +14,7 @@ import com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationManageS
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -199,17 +200,30 @@ public class JgUseRegistrationManageController extends BaseController {
@GetMapping
(
value
=
"/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"按照单位统一代码查询当前单位下的证"
,
notes
=
"按照单位统一代码查询当前单位下的证"
)
public
ResponseModel
<
List
<
JgUseRegistrationManageDto
>>
queryByUseUnitCreditCode
(
JgUseRegistrationManageDto
dto
)
{
CompanyBo
company
=
getSelectedOrgInfo
().
getCompany
();
if
(
company
.
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
if
(
ValidationUtil
.
isEmpty
(
dto
.
getUseUnitCreditCode
()))
{
// 不传的话取当前登录单位的统一信用代码
// 个人主体特殊处理
dto
.
setUseUnitCreditCode
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
company
.
getCompanyType
())
?
company
.
getCompanyCode
().
split
(
"_"
)[
1
]
:
company
.
getCompanyCode
());
if
(
StringUtils
.
isEmpty
(
dto
.
getReceiveCompanyCode
())){
CompanyBo
company
=
getSelectedOrgInfo
().
getCompany
();
if
(
company
.
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
if
(
ValidationUtil
.
isEmpty
(
dto
.
getUseUnitCreditCode
()))
{
// 不传的话取当前登录单位的统一信用代码
// 个人主体特殊处理
dto
.
setUseUnitCreditCode
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
company
.
getCompanyType
())
?
company
.
getCompanyCode
().
split
(
"_"
)[
1
]
:
company
.
getCompanyCode
());
}
}
else
{
dto
.
setReceiveCompanyCode
(
company
.
getCompanyCode
());
}
}
else
{
dto
.
setReceiveCompanyCode
(
company
.
getCompanyCode
());
CompanyBo
company
=
getSelectedOrgInfo
().
getCompany
();
if
(
company
.
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
if
(
ValidationUtil
.
isEmpty
(
dto
.
getUseUnitCreditCode
()))
{
// 不传的话取当前登录单位的统一信用代码
// 个人主体特殊处理
dto
.
setUseUnitCreditCode
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
company
.
getCompanyType
())
?
company
.
getCompanyCode
().
split
(
"_"
)[
1
]
:
company
.
getCompanyCode
());
}
}
}
dto
.
setIsDoBusiness
(
"1"
);
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationManageServiceImpl
.
queryByUseUnitCreditCode
(
dto
));
...
...
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