Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
4b8adf65
由
sonin
编写于
2025-04-29 11:56:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
运营月报
1 个父辈
9f62f4cb
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
41 行增加
和
1 行删除
sk-module-datafill/src/main/java/com/skua/modules/report/controller/OperationReportController.java
sk-module-datafill/src/main/java/com/skua/modules/report/service/IOperationReportService.java
sk-module-datafill/src/main/java/com/skua/modules/report/service/impl/OperationReportServiceImpl.java
sk-module-datafill/src/main/java/com/skua/modules/report/controller/OperationReportController.java
查看文件 @
4b8adf6
package
com
.
skua
.
modules
.
report
.
controller
;
import
com.skua.aop.annotation.CustomExceptionAnno
;
import
com.skua.core.api.vo.Result
;
import
com.skua.core.aspect.annotation.AutoLog
;
import
com.skua.core.context.BaseContextHandler
;
import
com.skua.core.util.ConvertUtils
;
import
com.skua.modules.biz.IBusinessService
;
import
com.skua.modules.custom.service.IFCustomReportDatasetService
;
import
com.skua.modules.report.service.IOperationReportService
;
import
com.skua.modules.report.vo.JnhbReportData
;
import
com.skua.modules.report.vo.ProductDataVO
;
import
com.skua.modules.system.service.ISysDepartService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -18,7 +22,10 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@Slf4j
@Api
(
tags
=
"数据接口"
)
...
...
@@ -28,6 +35,12 @@ public class OperationReportController {
@Autowired
private
IOperationReportService
operationReportService
;
@Autowired
private
ISysDepartService
departService
;
@Autowired
private
IBusinessService
businessService
;
/**
* 功能描述: 运营日报进出水初始化
*/
...
...
@@ -47,4 +60,31 @@ public class OperationReportController {
return
result
;
}
@GetMapping
(
value
=
"/operationMonthReport"
)
@CustomExceptionAnno
(
description
=
"报表:运营月报"
)
public
Result
<
Object
>
operationMonthReportCtrl
(
@RequestParam
Map
<
String
,
Object
>
paramsMap
)
{
// 请求参数
String
departId
=
ConvertUtils
.
getString
(
paramsMap
.
get
(
"departId"
));
String
startTime
=
ConvertUtils
.
getString
(
paramsMap
.
get
(
"startTime"
));
String
endTime
=
ConvertUtils
.
getString
(
paramsMap
.
get
(
"endTime"
));
String
[]
departIdArray
=
departId
.
split
(
","
);
// 翻译
Map
<
String
,
String
>
sysDepartDictMap
=
businessService
.
dictMap
(
"sys_depart"
,
null
);
// 封装结果集
List
<
Map
<
String
,
Object
>>
resMapList
=
new
ArrayList
<>();
for
(
String
tmpDepartId
:
departIdArray
)
{
String
childDepartId
=
departService
.
getChildDepartId
(
tmpDepartId
);
// 获取机构子集
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"startTime"
,
startTime
);
paramMap
.
put
(
"endTime"
,
endTime
);
paramMap
.
put
(
"departId"
,
childDepartId
);
Map
<
String
,
Object
>
resMap
=
operationReportService
.
dataAnalysisOfMonth
(
paramMap
);
resMap
.
put
(
"departId"
,
tmpDepartId
);
resMap
.
put
(
"departName"
,
sysDepartDictMap
.
get
(
tmpDepartId
));
resMapList
.
add
(
resMap
);
}
return
Result
.
ok
(
resMapList
);
}
}
...
...
sk-module-datafill/src/main/java/com/skua/modules/report/service/IOperationReportService.java
查看文件 @
4b8adf6
...
...
@@ -17,5 +17,5 @@ public interface IOperationReportService {
*/
ProductDataVO
handeReportMonthData
(
String
departIds
,
Integer
year
,
Integer
season
,
String
startDate
,
String
endDate
);
Map
<
String
,
String
>
dataAnalysisOfMonth
(
Map
<
String
,
Object
>
paramMap
);
Map
<
String
,
Object
>
dataAnalysisOfMonth
(
Map
<
String
,
Object
>
paramMap
);
}
...
...
sk-module-datafill/src/main/java/com/skua/modules/report/service/impl/OperationReportServiceImpl.java
查看文件 @
4b8adf6
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论