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
9974d421
Commit
9974d421
authored
Sep 06, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通讯录查询列表接口、修改工商信息接口
parent
2e2992fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
AccessFeignService.java
...mos/boot/module/tzs/flc/api/feign/AccessFeignService.java
+1
-1
InspectionController.java
.../boot/module/tzs/biz/controller/InspectionController.java
+20
-4
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/feign/AccessFeignService.java
View file @
9974d421
...
...
@@ -9,7 +9,7 @@ import java.util.List;
import
java.util.Map
;
//@FeignClient(url="http://172.16.3.34:11005",name = "AMOS-API-ACCESSAPI-ZYB", path = "/accessapi" )
@FeignClient
(
name
=
"AMOS-API-ACCESSAPI
-ZYB
"
,
path
=
"/accessapi"
)
@FeignClient
(
name
=
"AMOS-API-ACCESSAPI"
,
path
=
"/accessapi"
)
public
interface
AccessFeignService
{
/**
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/InspectionController.java
View file @
9974d421
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.BizRecordCount
;
...
...
@@ -8,6 +9,7 @@ import com.yeejoin.amos.boot.module.tzs.flc.api.feign.IdxFeignService;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.InspectionService
;
import
com.yeejoin.amos.component.feign.model.Page
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -18,8 +20,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
@RestController
@RequestMapping
(
"/Inspection"
)
...
...
@@ -131,14 +132,29 @@ public class InspectionController {
@RequestParam
int
current
,
@RequestParam
int
size
)
{
List
<
String
>
ids
=
n
ull
;
List
<
String
>
ids
=
n
ew
ArrayList
<>()
;
if
(
StringUtils
.
hasText
(
selectValue
))
{
ids
=
idxFeignService
.
getTreeChildIds
(
dimensionTableId
,
selectValue
).
getResult
();
Collection
<
CompanyModel
>
a
=
Privilege
.
companyClient
.
querySubAgencyTree
(
Long
.
valueOf
(
selectValue
)).
getResult
();
ids
=
recursion
(
a
,
ids
);
}
Page
result
=
Privilege
.
agencyUserClient
.
queryForPage
(
null
,
realName
,
mobile
,
null
,
current
,
size
,
ids
).
getResult
();
return
ResponseHelper
.
buildResponse
(
result
);
}
public
List
recursion
(
Collection
feign
,
List
ids
){
if
(
feign
==
null
){
return
ids
;
}
Iterator
iter
=
feign
.
iterator
();
while
(
iter
.
hasNext
()){
String
json
=
JSON
.
toJSONString
(
iter
.
next
());
CompanyModel
companyModel
=
JSON
.
parseObject
(
json
,
CompanyModel
.
class
);
ids
.
add
(
String
.
valueOf
(
companyModel
.
getSequenceNbr
()));
recursion
(
companyModel
.
getChildren
(),
ids
);
}
return
ids
;
}
@GetMapping
(
"/getMapByRegion/{regionSeq}"
)
@ApiOperation
(
value
=
"获取下级行政区划下的所有数据"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
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