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
3410b5d5
Commit
3410b5d5
authored
Jul 25, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.统计服务合并,tcm的总览
parent
bf35debb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
70 deletions
+32
-70
ZLStatisticsMapper.java
...boot/module/statistics/api/mapper/ZLStatisticsMapper.java
+7
-7
ZLStatisticsMapper.xml
...tics-api/src/main/resources/mapper/ZLStatisticsMapper.xml
+1
-1
ZLDPStatisticsController.java
...le/statistcs/biz/controller/ZLDPStatisticsController.java
+24
-18
ZLDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
+0
-0
ScreenDto.java
...a/com/yeejoin/amos/boot/module/tcm/api/dto/ScreenDto.java
+0
-13
IScreenService.java
...oot/module/tcm/api/service/statistics/IScreenService.java
+0
-31
ScreenImpl.java
...ot/module/tcm/biz/service/impl/statistics/ScreenImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-
tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/mapper/Screen
Mapper.java
→
amos-boot-system-tzs/amos-boot-module-
statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/mapper/ZLStatistics
Mapper.java
View file @
3410b5d5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistics
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.
tcm.api.dto.*
;
import
com.yeejoin.amos.boot.module.
common.api.dto.DPFilterParamDto
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -14,16 +14,16 @@ import java.util.Map;
...
@@ -14,16 +14,16 @@ import java.util.Map;
* @date 2024-07-09
* @date 2024-07-09
*/
*/
@Mapper
@Mapper
public
interface
Screen
Mapper
{
public
interface
ZLStatistics
Mapper
{
List
<
Map
<
String
,
Object
>>
getCompanyInfo
(
@Param
(
"screenDto"
)
Screen
Dto
screenDto
);
List
<
Map
<
String
,
Object
>>
getCompanyInfo
(
@Param
(
"screenDto"
)
DPFilterParam
Dto
screenDto
);
List
<
Map
<
String
,
Object
>>
testOrg
(
@Param
(
"screenDto"
)
Screen
Dto
screenDto
);
List
<
Map
<
String
,
Object
>>
testOrg
(
@Param
(
"screenDto"
)
DPFilterParam
Dto
screenDto
);
List
<
Map
<
String
,
String
>>
userCount
(
@Param
(
"screenDto"
)
Screen
Dto
screenDto
);
List
<
Map
<
String
,
String
>>
userCount
(
@Param
(
"screenDto"
)
DPFilterParam
Dto
screenDto
);
List
<
Map
<
String
,
Object
>>
supervisorCount
(
@Param
(
"screenDto"
)
Screen
Dto
screenDto
);
List
<
Map
<
String
,
Object
>>
supervisorCount
(
@Param
(
"screenDto"
)
DPFilterParam
Dto
screenDto
);
String
getOrgCodeByCompanyCode
(
@Param
(
"cityCode"
)
String
cityCode
);
String
getOrgCodeByCompanyCode
(
@Param
(
"cityCode"
)
String
cityCode
);
}
}
amos-boot-system-tzs/amos-boot-module-
tcm/amos-boot-module-tcm-api/src/main/resources/mapper/Screen
Mapper.xml
→
amos-boot-system-tzs/amos-boot-module-
statistics/amos-boot-module-statistics-api/src/main/resources/mapper/ZLStatistics
Mapper.xml
View file @
3410b5d5
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
<mapper
namespace=
"com.yeejoin.amos.boot.module.
tcm.api.mapper.Screen
Mapper"
>
namespace=
"com.yeejoin.amos.boot.module.
statistics.api.mapper.ZLStatistics
Mapper"
>
<select
id=
"getCompanyInfo"
resultType=
"java.util.Map"
>
<select
id=
"getCompanyInfo"
resultType=
"java.util.Map"
>
SELECT bi.equip_category as equipCategory,bi.unit_type as unitType
SELECT bi.equip_category as equipCategory,bi.unit_type as unitType
...
...
amos-boot-system-tzs/amos-boot-module-
tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/statistics/dp/Screen
Controller.java
→
amos-boot-system-tzs/amos-boot-module-
statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/ZLDPStatistics
Controller.java
View file @
3410b5d5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
biz
.
controller
.
statistics
.
dp
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.
tcm.api.dto.Screen
Dto
;
import
com.yeejoin.amos.boot.module.
common.api.dto.DPFilterParam
Dto
;
import
com.yeejoin.amos.boot.module.
tcm.api.service.statistics.IScreenService
;
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.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -13,10 +13,10 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...
@@ -13,10 +13,10 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
* 大屏控制层
* 大屏控制层
*
*
...
@@ -24,43 +24,49 @@ import java.util.Map;
...
@@ -24,43 +24,49 @@ import java.util.Map;
* @date 2024-07-09
* @date 2024-07-09
*/
*/
@RestController
@RestController
@Api
(
tags
=
"大屏
企业统计
"
)
@Api
(
tags
=
"大屏
-总览统计API
"
)
@RequestMapping
(
value
=
"/statistics"
)
@RequestMapping
(
value
=
"/statistics"
)
public
class
ScreenController
{
public
class
ZLDPStatisticsController
{
@Resource
private
IScreenService
screenService
;
private
ZLDPStatisticsServiceImpl
statisticsService
;
public
ZLDPStatisticsController
(
ZLDPStatisticsServiceImpl
statisticsService
)
{
this
.
statisticsService
=
statisticsService
;
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/companyInfo"
)
@PostMapping
(
value
=
"/companyInfo"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏企业统计"
,
notes
=
"大屏企业统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏企业统计"
,
notes
=
"大屏企业统计"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
companyInfo
(
@RequestBody
ScreenDto
screenDto
)
{
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
companyInfo
(
@RequestBody
DPFilterParamDto
screenDto
)
{
return
ResponseHelper
.
buildResponse
(
s
creen
Service
.
companyInfo
(
screenDto
));
return
ResponseHelper
.
buildResponse
(
s
tatistics
Service
.
companyInfo
(
screenDto
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/testOrg"
)
@PostMapping
(
value
=
"/testOrg"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏检测机构统计"
,
notes
=
"大屏检测机构统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏检测机构统计"
,
notes
=
"大屏检测机构统计"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
testOrg
(
@RequestBody
ScreenDto
screenDto
)
{
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
testOrg
(
@RequestBody
DPFilterParamDto
screenDto
)
{
return
ResponseHelper
.
buildResponse
(
s
creen
Service
.
testOrg
(
screenDto
));
return
ResponseHelper
.
buildResponse
(
s
tatistics
Service
.
testOrg
(
screenDto
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/userCount"
)
@PostMapping
(
value
=
"/userCount"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏人员统计"
,
notes
=
"大屏人员统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏人员统计"
,
notes
=
"大屏人员统计"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
userCount
(
@RequestBody
ScreenDto
screenDto
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
userCount
(
@RequestBody
DPFilterParamDto
screenDto
)
{
return
ResponseHelper
.
buildResponse
(
s
creen
Service
.
userCount
(
screenDto
));
return
ResponseHelper
.
buildResponse
(
s
tatistics
Service
.
userCount
(
screenDto
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/supervisorCount"
)
@PostMapping
(
value
=
"/supervisorCount"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏行业主管部门统计"
,
notes
=
"大屏行业主管部门统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏行业主管部门统计"
,
notes
=
"大屏行业主管部门统计"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
supervisorCount
(
@RequestBody
ScreenDto
screenDto
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
supervisorCount
(
@RequestBody
DPFilterParamDto
screenDto
)
{
return
ResponseHelper
.
buildResponse
(
s
creen
Service
.
supervisorCount
(
screenDto
));
return
ResponseHelper
.
buildResponse
(
s
tatistics
Service
.
supervisorCount
(
screenDto
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/equipmentInformCount"
)
@PostMapping
(
value
=
"/equipmentInformCount"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏设备使用场所统计"
,
notes
=
"大屏设备使用场所统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏设备使用场所统计"
,
notes
=
"大屏设备使用场所统计"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
equipmentInformCount
(
@RequestBody
ScreenDto
screenDto
)
{
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
equipmentInformCount
(
@RequestBody
DPFilterParamDto
screenDto
)
{
return
ResponseHelper
.
buildResponse
(
s
creen
Service
.
equipmentInformCount
(
screenDto
));
return
ResponseHelper
.
buildResponse
(
s
tatistics
Service
.
equipmentInformCount
(
screenDto
));
}
}
}
}
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
0 → 100644
View file @
3410b5d5
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/dto/ScreenDto.java
deleted
100644 → 0
View file @
bf35debb
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
dto
;
import
lombok.Data
;
@Data
public
class
ScreenDto
{
/**
* 城市编码
*/
String
cityCode
;
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/service/statistics/IScreenService.java
deleted
100644 → 0
View file @
bf35debb
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
service
.
statistics
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.*
;
import
com.yeejoin.amos.boot.module.tcm.api.enums.DispatchPaperEnums
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
/**
* 大屏接口类
*
* @author maxy
* @date 2024-07-09
*/
@Service
public
interface
IScreenService
{
List
<
Map
<
String
,
Object
>>
companyInfo
(
ScreenDto
screenDto
);
List
<
Map
<
String
,
Object
>>
testOrg
(
ScreenDto
screenDto
);
Map
<
String
,
Object
>
userCount
(
ScreenDto
screenDto
);
Map
<
String
,
Object
>
supervisorCount
(
ScreenDto
screenDto
);
List
<
Map
<
String
,
Object
>>
equipmentInformCount
(
ScreenDto
screenDto
);
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/statistics/ScreenImpl.java
deleted
100644 → 0
View file @
bf35debb
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