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
e9de4c45
Commit
e9de4c45
authored
Sep 29, 2022
by
高建强
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6
parents
1a8f0feb
ab35117a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
0 deletions
+70
-0
AnalysisReportLogController.java
...n/equipmanage/controller/AnalysisReportLogController.java
+19
-0
AnalysisReportLogMapper.java
...m/yeejoin/equipmanage/mapper/AnalysisReportLogMapper.java
+2
-0
IAnalysisReportLogService.java
...eejoin/equipmanage/service/IAnalysisReportLogService.java
+10
-0
AnalysisReportLogServiceImpl.java
...quipmanage/service/impl/AnalysisReportLogServiceImpl.java
+8
-0
AnalysisReportLogMapper.xml
...uip/src/main/resources/mapper/AnalysisReportLogMapper.xml
+31
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/AnalysisReportLogController.java
View file @
e9de4c45
...
@@ -4,8 +4,11 @@ import java.text.ParseException;
...
@@ -4,8 +4,11 @@ import java.text.ParseException;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Date
;
import
com.yeejoin.equipmanage.common.dto.AnalysisReportLogDto
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -87,4 +90,20 @@ public class AnalysisReportLogController extends AbstractBaseController {
...
@@ -87,4 +90,20 @@ public class AnalysisReportLogController extends AbstractBaseController {
return
reportResponse
;
return
reportResponse
;
}
}
@GetMapping
(
value
=
"/iotReportPage"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
IPage
<
AnalysisReportLogDto
>
iotReportPage
(
Page
page
,
@RequestParam
Integer
reportType
,
@ApiParam
(
value
=
"开始日期"
,
required
=
false
)
@RequestParam
(
required
=
false
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
startDate
,
@ApiParam
(
value
=
"结束日期"
,
required
=
false
)
@RequestParam
(
required
=
false
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
endDate
,
@ApiParam
(
value
=
"换流站编码"
,
required
=
false
)
@RequestParam
(
required
=
false
)
String
stationCode
)
{
AnalysisReportLogDto
dto
=
new
AnalysisReportLogDto
();
dto
.
setStartDate
(
startDate
);
dto
.
setEndDate
(
endDate
);
dto
.
setReportType
(
reportType
);
dto
.
setStationCode
(
stationCode
);
return
iAnalysisReportLogService
.
iotReportPage
(
page
,
dto
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/AnalysisReportLogMapper.java
View file @
e9de4c45
...
@@ -30,4 +30,6 @@ public interface AnalysisReportLogMapper extends BaseMapper<AnalysisReportLog> {
...
@@ -30,4 +30,6 @@ public interface AnalysisReportLogMapper extends BaseMapper<AnalysisReportLog> {
List
<
Map
<
String
,
Object
>>
getDefect
(
@Param
(
"analysisReportLog"
)
AnalysisReportLogDto
analysisReportLog
);
List
<
Map
<
String
,
Object
>>
getDefect
(
@Param
(
"analysisReportLog"
)
AnalysisReportLogDto
analysisReportLog
);
Map
<
String
,
Object
>
getRootOrgUsr
();
Map
<
String
,
Object
>
getRootOrgUsr
();
IPage
<
AnalysisReportLogDto
>
iotReportPage
(
Page
page
,
@Param
(
"analysisReportLog"
)
AnalysisReportLogDto
analysisReportLog
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IAnalysisReportLogService.java
View file @
e9de4c45
...
@@ -3,6 +3,7 @@ package com.yeejoin.equipmanage.service;
...
@@ -3,6 +3,7 @@ package com.yeejoin.equipmanage.service;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.equipmanage.common.dto.AnalysisReportLogDto
;
import
com.yeejoin.equipmanage.common.entity.AnalysisReportLog
;
import
com.yeejoin.equipmanage.common.entity.AnalysisReportLog
;
import
com.yeejoin.equipmanage.common.enums.AnalysisReportEnum
;
import
com.yeejoin.equipmanage.common.enums.AnalysisReportEnum
;
...
@@ -35,4 +36,13 @@ public interface IAnalysisReportLogService extends IService<AnalysisReportLog> {
...
@@ -35,4 +36,13 @@ public interface IAnalysisReportLogService extends IService<AnalysisReportLog> {
* @param endDate 结束日期
* @param endDate 结束日期
*/
*/
void
generateMonthReport
(
AnalysisReportEnum
monthReport
,
Date
beginDate
,
Date
endDate
)
throws
ParseException
;
void
generateMonthReport
(
AnalysisReportEnum
monthReport
,
Date
beginDate
,
Date
endDate
)
throws
ParseException
;
/**
* 消防物联报表列表分页查询
* @param page
* @param dto
* @return
*/
IPage
<
AnalysisReportLogDto
>
iotReportPage
(
Page
page
,
AnalysisReportLogDto
dto
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/AnalysisReportLogServiceImpl.java
View file @
e9de4c45
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.equipmanage.common.dto.AnalysisReportLogDto
;
import
com.yeejoin.equipmanage.common.entity.AnalysisReportLog
;
import
com.yeejoin.equipmanage.common.entity.AnalysisReportLog
;
import
com.yeejoin.equipmanage.common.entity.FireFightingSystemEntity
;
import
com.yeejoin.equipmanage.common.entity.FireFightingSystemEntity
;
import
com.yeejoin.equipmanage.common.entity.publics.BaseEntity
;
import
com.yeejoin.equipmanage.common.entity.publics.BaseEntity
;
...
@@ -39,6 +40,8 @@ public class AnalysisReportLogServiceImpl extends ServiceImpl<AnalysisReportLogM
...
@@ -39,6 +40,8 @@ public class AnalysisReportLogServiceImpl extends ServiceImpl<AnalysisReportLogM
@Autowired
@Autowired
AnalysisReportSummaryMapper
analysisReportSummaryMapper
;
AnalysisReportSummaryMapper
analysisReportSummaryMapper
;
@Autowired
AnalysisReportLogMapper
analysisReportLogMapper
;
@Override
@Override
public
IPage
<
AnalysisReportLog
>
listPage
(
Page
page
,
AnalysisReportLog
analysisReportLog
)
{
public
IPage
<
AnalysisReportLog
>
listPage
(
Page
page
,
AnalysisReportLog
analysisReportLog
)
{
...
@@ -127,4 +130,9 @@ public class AnalysisReportLogServiceImpl extends ServiceImpl<AnalysisReportLogM
...
@@ -127,4 +130,9 @@ public class AnalysisReportLogServiceImpl extends ServiceImpl<AnalysisReportLogM
}
}
return
desc
.
toString
();
return
desc
.
toString
();
}
}
@Override
public
IPage
<
AnalysisReportLogDto
>
iotReportPage
(
Page
page
,
AnalysisReportLogDto
dto
)
{
return
analysisReportLogMapper
.
iotReportPage
(
page
,
dto
);
}
}
}
amos-boot-system-equip/src/main/resources/mapper/AnalysisReportLogMapper.xml
View file @
e9de4c45
...
@@ -98,4 +98,35 @@
...
@@ -98,4 +98,35 @@
</where>
</where>
LIMIT 1
LIMIT 1
</select>
</select>
<select
id=
"iotReportPage"
resultType=
"com.yeejoin.equipmanage.common.dto.AnalysisReportLogDto"
>
SELECT
*,
cb_org_usr.biz_org_code AS stationCode,
'消防物联报表' AS reportName,
cb_org_usr.biz_org_name AS stationName,
(CASE wl_analysis_report_log.report_type
WHEN 0 THEN '日报表'
WHEN 1 THEN '周报表'
ELSE '月报表'
END) reportTypeName
FROM
wl_analysis_report_log,cb_org_usr
<where>
cb_org_usr.biz_org_type = 'COMPANY' AND cb_org_usr.is_delete = 0 AND LENGTH(cb_org_usr.biz_org_code)>12
<if
test=
"analysisReportLog.reportType != null"
>
AND wl_analysis_report_log.report_type = #{analysisReportLog.reportType}
</if>
<if
test=
"analysisReportLog.startDate != null"
>
AND DATE_FORMAT(wl_analysis_report_log.start_date, '%Y-%m-%d')
>
= DATE_FORMAT(#{analysisReportLog.startDate}, '%Y-%m-%d')
</if>
<if
test=
"analysisReportLog.endDate != null"
>
AND DATE_FORMAT(wl_analysis_report_log.end_date, '%Y-%m-%d')
<
= DATE_FORMAT(#{analysisReportLog.endDate}, '%Y-%m-%d')
</if>
<if
test=
"analysisReportLog.stationCode != null"
>
AND cb_org_usr.biz_org_code like concat(#{analysisReportLog.stationCode},'%')
</if>
</where>
ORDER BY
report_date_desc DESC
</select>
</mapper>
</mapper>
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