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
b3f83a8c
Commit
b3f83a8c
authored
Aug 18, 2022
by
xinglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)增加查询安全指令书编号接口
parent
7c30d7b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
InspectionService.java
...os/boot/module/tzs/flc/api/service/InspectionService.java
+2
-0
InspectionController.java
.../boot/module/tzs/biz/controller/InspectionController.java
+13
-0
InspectionServiceImpl.java
...ot/module/tzs/biz/service/impl/InspectionServiceImpl.java
+12
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/InspectionService.java
View file @
b3f83a8c
...
...
@@ -30,6 +30,8 @@ public interface InspectionService {
JSONObject
getSafetySupervisionCode
(
String
bizTable
);
JSONObject
getSafetySupervisionCodeMap
(
String
bizTable
,
String
mapKey
,
String
mapValue
);
JSONObject
getSafetySupervisionInfo
();
Page
<
JSONObject
>
getMapByRegion
(
Long
regionSeq
,
String
tableId
,
String
type
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/InspectionController.java
View file @
b3f83a8c
...
...
@@ -96,6 +96,19 @@ public class InspectionController {
}
/**
* 获取所有安全监察指令书编号
*
* @param bizTable
* @return
*/
@GetMapping
(
"/getSafetySupervisionCodeMap"
)
@ApiOperation
(
value
=
"获取所有安全监察指令书编号"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
ResponseModel
<
JSONObject
>
getSafetySupervisionCodeMap
(
@RequestParam
String
bizTable
,
@RequestParam
String
mapKey
,
@RequestParam
String
mapValue
)
{
return
ResponseHelper
.
buildResponse
(
inspectionService
.
getSafetySupervisionCodeMap
(
bizTable
,
mapKey
,
mapValue
));
}
/**
* 查询行政复议机构和行政诉讼机构
*
* @return
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/InspectionServiceImpl.java
View file @
b3f83a8c
...
...
@@ -155,6 +155,17 @@ public class InspectionServiceImpl implements InspectionService {
}
@Override
public
JSONObject
getSafetySupervisionCodeMap
(
String
bizTable
,
String
mapKey
,
String
mapValue
)
{
JSONObject
jsonObject
=
new
JSONObject
();
String
sql
=
String
.
format
(
"SELECT `%s`, `%s` FROM %s"
,
mapKey
,
mapValue
,
bizTable
);
List
<
Map
<
String
,
Object
>>
list
=
bizJdbcTemplate
.
queryForList
(
sql
);
list
.
forEach
(
x
->
{
jsonObject
.
put
(
x
.
get
(
mapKey
).
toString
(),
x
.
get
(
mapValue
));
});
return
jsonObject
;
}
@Override
public
JSONObject
getSafetySupervisionInfo
()
{
AgencyUserModel
agencyUserModel
=
Privilege
.
agencyUserClient
.
getme
().
getResult
();
Object
companyId
=
JsonValueUtils
.
getValueByKey
(
JSONObject
.
parse
(
JSON
.
toJSONString
(
agencyUserModel
)),
"companys"
,
"companys.0.sequenceNbr"
);
...
...
@@ -197,7 +208,7 @@ public class InspectionServiceImpl implements InspectionService {
jsonObject
.
put
(
regionName
,
objectMap
.
get
(
regionName
));
});
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
)){
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
))
{
page
.
setTotal
(
1
);
List
<
JSONObject
>
list
=
new
ArrayList
();
list
.
add
(
jsonObject
);
...
...
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