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
ecd7f3c7
Commit
ecd7f3c7
authored
Sep 26, 2022
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改注册企业问题
parent
5ee9a522
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
31 deletions
+34
-31
TaBusinessServiceImpl.java
.../amos/api/openapi/face/service/TaBusinessServiceImpl.java
+1
-1
InspectionController.java
.../boot/module/tzs/biz/controller/InspectionController.java
+32
-30
RegUnitInfoServiceImpl.java
...dule/tzs/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+1
-0
No files found.
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TaBusinessServiceImpl.java
View file @
ecd7f3c7
...
...
@@ -60,7 +60,7 @@ public class TaBusinessServiceImpl extends BaseService<TaAccessConfigModel, TaAc
JSONObject
data
=
jsonObject
.
getJSONObject
(
"data"
);
//如果不存在该企业 则直接返回null
if
(
ValidationUtil
.
isEmpty
(
data
)){
return
null
;
return
result
;
}
//分割字符串 根据详细地址分割出 省/市/区、街道地址、小区地址
String
address
=
data
.
getString
(
"dom"
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/InspectionController.java
View file @
ecd7f3c7
...
...
@@ -7,8 +7,10 @@ import com.yeejoin.amos.boot.module.tzs.flc.api.dto.BizRecordCount;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.IdxUjerDto
;
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.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.Page
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -46,13 +48,9 @@ public class InspectionController {
@GetMapping
(
"/bizDetailList"
)
@ApiOperation
(
value
=
"检察任务填报详情"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
ResponseModel
<
IPage
<
IdxUjerDto
>>
bizDetailList
(
@RequestParam
String
dimensionTableId
,
@RequestParam
String
selectValue
,
@RequestParam
(
required
=
false
)
String
bizType
,
@RequestParam
int
current
,
@RequestParam
int
size
)
{
public
ResponseModel
<
IPage
<
IdxUjerDto
>>
bizDetailList
(
@RequestParam
String
dimensionTableId
,
@RequestParam
String
selectValue
,
@RequestParam
(
required
=
false
)
String
bizType
,
@RequestParam
int
current
,
@RequestParam
int
size
)
{
IPage
<
IdxUjerDto
>
page
=
inspectionService
.
bizDetailList
(
dimensionTableId
,
selectValue
,
bizType
,
current
,
size
);
return
ResponseHelper
.
buildResponse
(
page
);
}
...
...
@@ -66,7 +64,8 @@ public class InspectionController {
@PostMapping
(
"/safetySupervision"
)
@ApiOperation
(
value
=
"安全监察统计"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
safetySupervisionList
(
@RequestBody
List
<
BizRecordCount
>
bizRecordCountList
)
{
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
safetySupervisionList
(
@RequestBody
List
<
BizRecordCount
>
bizRecordCountList
)
{
return
ResponseHelper
.
buildResponse
(
inspectionService
.
bizRecordCountByField
(
bizRecordCountList
));
}
...
...
@@ -105,7 +104,8 @@ public class InspectionController {
@GetMapping
(
"/getSafetySupervisionCodeMap"
)
@ApiOperation
(
value
=
"获取所有安全监察指令书编号"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
ResponseModel
<
JSONObject
>
getSafetySupervisionCodeMap
(
@RequestParam
String
bizTable
,
@RequestParam
String
mapKey
,
@RequestParam
String
mapValue
)
{
public
ResponseModel
<
JSONObject
>
getSafetySupervisionCodeMap
(
@RequestParam
String
bizTable
,
@RequestParam
String
mapKey
,
@RequestParam
String
mapValue
)
{
return
ResponseHelper
.
buildResponse
(
inspectionService
.
getSafetySupervisionCodeMap
(
bizTable
,
mapKey
,
mapValue
));
}
...
...
@@ -124,35 +124,35 @@ public class InspectionController {
@GetMapping
(
"/contacts"
)
@ApiOperation
(
value
=
"通讯录"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
ResponseModel
<
Page
>
contacts
(
@RequestParam
(
required
=
false
)
String
realName
,
@RequestParam
(
required
=
false
)
String
mobile
,
@RequestParam
(
required
=
false
)
String
dimensionTableId
,
@RequestParam
(
required
=
false
)
String
selectValue
,
@RequestParam
int
current
,
@RequestParam
int
size
)
{
List
<
String
>
ids
=
new
ArrayList
<>();
if
(
StringUtils
.
hasText
(
selectValue
))
{
Collection
<
CompanyModel
>
a
=
Privilege
.
companyClient
.
querySubAgencyTree
(
Long
.
valueOf
(
selectValue
)).
getResult
();
ids
=
recursion
(
a
,
ids
);
public
ResponseModel
<
Page
<
AgencyUserModel
>>
contacts
(
@RequestParam
(
required
=
false
)
String
realName
,
@RequestParam
(
required
=
false
)
String
mobile
,
@RequestParam
(
required
=
false
)
String
dimensionTableId
,
@RequestParam
(
required
=
false
)
String
selectValue
,
@RequestParam
int
current
,
@RequestParam
int
size
)
{
// List<String> ids = new ArrayList<>();
// if (StringUtils.hasText(selectValue)) {
// Collection<CompanyModel> a = Privilege.companyClient.querySubAgencyTree(Long.valueOf(selectValue)).getResult();
// ids = recursion(a,ids);
// }
FeignClientResult
<
CompanyModel
>
company
=
Privilege
.
companyClient
.
seleteOne
(
Long
.
valueOf
(
selectValue
));
FeignClientResult
<
Page
<
AgencyUserModel
>>
result
=
new
FeignClientResult
<
Page
<
AgencyUserModel
>>();
if
(
company
.
getResult
()
!=
null
)
{
result
=
Privilege
.
agencyUserClient
.
queryForPageByCompany
(
company
.
getResult
().
getOrgCode
(),
"county"
,
mobile
,
realName
,
current
,
size
);
}
Page
result
=
Privilege
.
agencyUserClient
.
queryForPage
(
null
,
realName
,
mobile
,
null
,
current
,
size
,
ids
).
getResult
();
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
.
getResult
());
}
public
List
recursion
(
Collection
feign
,
List
ids
)
{
if
(
feign
==
null
)
{
public
List
recursion
(
Collection
feign
,
List
ids
)
{
if
(
feign
==
null
)
{
return
ids
;
}
Iterator
iter
=
feign
.
iterator
();
while
(
iter
.
hasNext
())
{
while
(
iter
.
hasNext
())
{
String
json
=
JSON
.
toJSONString
(
iter
.
next
());
CompanyModel
companyModel
=
JSON
.
parseObject
(
json
,
CompanyModel
.
class
);
if
(!
companyModel
.
getLevel
().
equals
(
"company"
))
{
CompanyModel
companyModel
=
JSON
.
parseObject
(
json
,
CompanyModel
.
class
);
if
(!
companyModel
.
getLevel
().
equals
(
"company"
))
{
ids
.
add
(
String
.
valueOf
(
companyModel
.
getSequenceNbr
()));
}
recursion
(
companyModel
.
getChildren
(),
ids
);
recursion
(
companyModel
.
getChildren
(),
ids
);
}
return
ids
;
}
...
...
@@ -160,7 +160,9 @@ public class InspectionController {
@GetMapping
(
"/getMapByRegion/{regionSeq}"
)
@ApiOperation
(
value
=
"获取下级行政区划下的所有数据"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
ResponseModel
<
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
>
getMapByRegion
(
@PathVariable
(
value
=
"regionSeq"
)
Long
regionSeq
,
@RequestParam
(
value
=
"tableId"
)
String
tableId
,
@RequestParam
(
value
=
"type"
)
String
type
)
{
public
ResponseModel
<
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
>
getMapByRegion
(
@PathVariable
(
value
=
"regionSeq"
)
Long
regionSeq
,
@RequestParam
(
value
=
"tableId"
)
String
tableId
,
@RequestParam
(
value
=
"type"
)
String
type
)
{
return
ResponseHelper
.
buildResponse
(
inspectionService
.
getMapByRegion
(
regionSeq
,
tableId
,
type
));
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
ecd7f3c7
...
...
@@ -242,6 +242,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
// RequestContext.setAppKey();
// RequestContext.setProduct();
Map
<
String
,
Object
>
resultMap
=
accessFeignService
.
getData
(
unitCode
).
getResult
();
// RequestEntity requestEntity = new RequestEntity(
// null, //body部分数据
// headers, //头
...
...
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