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
f00bc308
Commit
f00bc308
authored
Aug 15, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Statistics):设备认领率统计
parent
9b6f6b85
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
7 deletions
+20
-7
ZLStatisticsMapper.java
...boot/module/statistics/api/mapper/ZLStatisticsMapper.java
+2
-1
ZLStatisticsMapper.xml
...tics-api/src/main/resources/mapper/ZLStatisticsMapper.xml
+4
-0
ZLDPStatisticsController.java
...le/statistcs/biz/controller/ZLDPStatisticsController.java
+14
-6
ZLDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/mapper/ZLStatisticsMapper.java
View file @
f00bc308
...
@@ -16,7 +16,6 @@ import java.util.Map;
...
@@ -16,7 +16,6 @@ import java.util.Map;
@Mapper
@Mapper
public
interface
ZLStatisticsMapper
{
public
interface
ZLStatisticsMapper
{
List
<
Map
<
String
,
Object
>>
getCompanyInfo
(
@Param
(
"screenDto"
)
DPFilterParamDto
screenDto
);
List
<
Map
<
String
,
Object
>>
getCompanyInfo
(
@Param
(
"screenDto"
)
DPFilterParamDto
screenDto
);
List
<
Map
<
String
,
Object
>>
testOrg
(
@Param
(
"screenDto"
)
DPFilterParamDto
screenDto
);
List
<
Map
<
String
,
Object
>>
testOrg
(
@Param
(
"screenDto"
)
DPFilterParamDto
screenDto
);
...
@@ -34,4 +33,6 @@ public interface ZLStatisticsMapper {
...
@@ -34,4 +33,6 @@ public interface ZLStatisticsMapper {
Long
countCompanyForCertDateTemporary
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"limitDate"
)
String
limitDate
);
Long
countCompanyForCertDateTemporary
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"limitDate"
)
String
limitDate
);
Long
getEquipTotal
(
@Param
(
"cityCode"
)
String
cityCode
);
Long
getEquipTotal
(
@Param
(
"cityCode"
)
String
cityCode
);
Long
getEquListTotal
(
@Param
(
"field"
)
String
field
,
@Param
(
"cityCode"
)
String
cityCode
);
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/ZLStatisticsMapper.xml
View file @
f00bc308
...
@@ -101,6 +101,10 @@
...
@@ -101,6 +101,10 @@
<select
id=
"getEquipTotal"
resultType=
"java.lang.Long"
>
<select
id=
"getEquipTotal"
resultType=
"java.lang.Long"
>
select equip_num from tzs_equip_claim_statistics where city_code = #{cityCode}
select equip_num from tzs_equip_claim_statistics where city_code = #{cityCode}
</select>
</select>
<select
id=
"getEquListTotal"
resultType=
"java.lang.Long"
>
select ${field} from tzs_equip_claim_statistics where city_code = #{cityCode}
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/ZLDPStatisticsController.java
View file @
f00bc308
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
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.DPFilterParamDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamForDetailDto
;
import
com.yeejoin.amos.boot.module.statistcs.biz.service.impl.ZLDPStatisticsServiceImpl
;
import
com.yeejoin.amos.boot.module.statistcs.biz.service.impl.ZLDPStatisticsServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.FieldError
;
import
org.springframework.validation.FieldError
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
...
@@ -100,7 +100,15 @@ public class ZLDPStatisticsController {
...
@@ -100,7 +100,15 @@ public class ZLDPStatisticsController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/getEquipManagementRateStatistics"
)
@PostMapping
(
value
=
"/getEquipManagementRateStatistics"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏-总览-左屏-设备纳管率"
,
notes
=
"大屏-总览-左屏-设备纳管率"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏-总览-左屏-设备纳管率"
,
notes
=
"大屏-总览-左屏-设备纳管率"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getEquipManagementRateStatistics
(
@RequestBody
DPFilterParamDto
screenDto
){
public
ResponseModel
<
Map
<
String
,
Object
>>
getEquipManagementRateStatistics
(
@RequestBody
DPFilterParamForDetailDto
paramDto
){
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getEquipManagementRateStatistics
(
screenDto
));
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getEquipManagementRateStatistics
(
paramDto
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/viewJgAll"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"viewJgAll"
,
notes
=
"viewJgAll"
)
public
ResponseModel
<
Page
<
JSONObject
>>
viewJgAll
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
JSONObject
jsonObject
=
new
JSONObject
(
map
);
return
ResponseHelper
.
buildResponse
(
statisticsService
.
queryByKeys
(
jsonObject
));
}
}
}
}
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/ZLDPStatisticsServiceImpl.java
View file @
f00bc308
This diff is collapsed.
Click to expand it.
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