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
4197d376
Commit
4197d376
authored
Aug 21, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Statistics):监管接口迁移
parent
879293f0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
185 additions
and
2 deletions
+185
-2
JGDPStatisticsController.java
...le/statistcs/biz/controller/JGDPStatisticsController.java
+132
-2
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+0
-0
registrationBasic.json
...istics-biz/src/main/resources/json/registrationBasic.json
+53
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/JGDPStatisticsController.java
View file @
4197d376
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamForDetailDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.FourColorCountDataDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.SafetyProblemTracingDto
;
import
com.yeejoin.amos.boot.module.statistcs.biz.service.impl.JGDPStatisticsServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -17,7 +18,6 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -351,4 +351,134 @@ public class JGDPStatisticsController {
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getBusinessType
(
dpFilterParamForDetailDto
));
}
/**
* 查询设备注册列表
*
* @param map
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备注册信息分页查询"
,
notes
=
"设备注册信息分页查询"
)
public
ResponseModel
<
Page
<
JSONObject
>>
queryForPage
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
JSONObject
jsonObject
=
new
JSONObject
(
map
);
return
ResponseHelper
.
buildResponse
(
statisticsService
.
queryForEquipmentRegisterPage
(
jsonObject
));
}
/**
* 查询设备注册信息详情
*
* @param record
* @return 返回由页签的key包裹详情对象
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{record}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据record查询设备注册信息详情"
,
notes
=
"根据record查询设备注册信息详情"
)
public
ResponseModel
<
Object
>
selectOne
(
@PathVariable
String
record
,
@RequestParam
(
required
=
false
)
String
isCopy
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getEquipmentRegisterByRecord
(
record
,
isCopy
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/equOnJgServiceOperationRecords"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询设备在jg业务中的记录"
,
notes
=
"查询设备在jg业务中的记录"
)
public
ResponseModel
<
List
<
Map
<
String
,
String
>>>
equOnJgServiceOperationRecords
(
@RequestParam
(
value
=
"record"
)
String
record
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
equOnJgServiceOperationRecords
(
record
));
}
/**
* 设备问题列表分页查询
*
* @param current 当前页
* @param size 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/equipId/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备问题列表分页查询"
,
notes
=
"设备问题列表分页查询"
)
public
ResponseModel
<
Page
<
SafetyProblemTracingDto
>>
queryProblemPageByEquipId
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"record"
)
String
equipId
)
{
Page
<
SafetyProblemTracingDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
statisticsService
.
queryProblemPageByEquipId
(
page
,
equipId
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个安全追溯问题"
,
notes
=
"根据sequenceNbr查询单个安全追溯问题"
)
public
ResponseModel
<
SafetyProblemTracingDto
>
selectSafetyProblem
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
selectSafetyProblem
(
sequenceNbr
));
}
/**
* 根据问题ID及问题类型查询关联设备列表
*
* @param problemId 问题Id
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据问题ID及问题类型查询关联设备列表"
,
notes
=
"根据问题ID及问题类型查询关联设备列表"
)
@GetMapping
(
value
=
"/equip/list"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
queryEquipListProblemById
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"sequenceNbr"
)
String
problemId
)
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
statisticsService
.
queryEquipListByProblemId
(
page
,
problemId
));
}
/**
* 根据问题ID及问题类型查询关联企业
*
* @param problemId 问题Id
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据问题ID及问题类型查询关联企业"
,
notes
=
"根据问题ID及问题类型查询关联企业"
)
@GetMapping
(
value
=
"/unit/list"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
queryPrincipalUnitByProblemId
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"sequenceNbr"
)
String
problemId
)
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
statisticsService
.
queryPrincipalUnitByProblemId
(
page
,
problemId
));
}
/**
* 根据sequenceNbr查询---大屏使用
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/detail/dp"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询---大屏使用"
,
notes
=
"根据sequenceNbr查询---大屏使用"
)
public
ResponseModel
<
Object
>
getRegistrationDetail
(
@RequestParam
(
value
=
"sequenceNbr"
)
String
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getRegistrationDetail
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询使用登记证对应设备列表---使用登记证详情用
* 分页接口
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/detail/equList"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询使用登记证对应设备列表---使用登记证详情用"
,
notes
=
"根据sequenceNbr查询使用登记证对应设备列表---使用登记证详情用"
)
public
ResponseModel
<
Page
<
JSONObject
>>
certificateEquList
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"sequenceNbr"
)
String
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
certificateEquList
(
current
,
size
,
sequenceNbr
));
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
View file @
4197d376
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/registrationBasic.json
0 → 100644
View file @
4197d376
[
{
"key"
:
"useRegistrationCode"
,
"label"
:
"使用登记证编号"
,
"type"
:
"text"
},
{
"key"
:
"useUnitName"
,
"label"
:
"使用单位名称"
,
"type"
:
"text"
},
{
"key"
:
"useUnitAddress"
,
"label"
:
"使用单位地址"
,
"type"
:
"text"
},
{
"key"
:
"receiveOrgName"
,
"label"
:
"登记机关"
,
"type"
:
"text"
},
{
"key"
:
"equList"
,
"label"
:
"设备种类"
,
"type"
:
"text"
},
{
"key"
:
"equCategory"
,
"label"
:
"设备类别"
,
"type"
:
"text"
},
{
"key"
:
"equDefine"
,
"label"
:
"设备品种"
,
"type"
:
"text"
},
{
"key"
:
"equUseAddress"
,
"label"
:
"设备使用地址"
,
"type"
:
"text"
},
{
"key"
:
"certificateStatus"
,
"label"
:
"使用登记证状态"
,
"type"
:
"text"
},
{
"key"
:
"auditPassDate"
,
"label"
:
"办理日期"
,
"type"
:
"text"
}
]
\ No newline at end of file
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