Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_platformV2
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
赵剑炜
jyzb_platformV2
Commits
ac350801
Commit
ac350801
authored
Feb 23, 2024
by
李小惠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报表跳转代入时间问题
parent
90f5ac16
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
22 行增加
和
1 行删除
+22
-1
log_error.log
app-log/log_error.log
+0
-0
log_total.log
app-log/log_total.log
+0
-0
TjOrgCountReq.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/TjReq/TjOrgCountReq.java
+5
-1
TjServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/TjServiceImpl.java
+17
-0
没有找到文件。
app-log/log_error.log
View file @
ac350801
This source diff could not be displayed because it is too large. You can
view the blob
instead.
app-log/log_total.log
View file @
ac350801
This source diff could not be displayed because it is too large. You can
view the blob
instead.
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/TjReq/TjOrgCountReq.java
View file @
ac350801
...
...
@@ -4,6 +4,7 @@ import com.junmp.v2.common.bean.request.BaseRequest;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -14,7 +15,6 @@ public class TjOrgCountReq extends BaseRequest {
private
Long
orgId
;
private
List
<
String
>
typeIdsList
;
private
List
<
String
>
sizeNameList
;
@NotNull
(
message
=
"年份不能为空"
,
groups
=
detail
.
class
)
private
Integer
year
;
private
List
<
Integer
>
monthList
;
...
...
@@ -26,4 +26,7 @@ public class TjOrgCountReq extends BaseRequest {
private
String
column
;
private
Integer
level
;
private
String
startTime
;
private
String
endTime
;
}
\ No newline at end of file
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/TjServiceImpl.java
View file @
ac350801
...
...
@@ -629,6 +629,15 @@ public class TjServiceImpl implements TjService {
List
<
String
>
orgList
=
inventorySummaryMapper
.
getTotalData
(
String
.
valueOf
(
req
.
getOrgId
()));
List
<
TjOrgCountDto
>
tjOrgCountList
=
new
ArrayList
<>();
String
[]
splitStart
=
req
.
getStartTime
().
split
(
"-"
);
String
[]
splitEnd
=
req
.
getEndTime
().
split
(
"-"
);
Integer
year
=
Integer
.
parseInt
(
splitStart
[
0
]
);
req
.
setYear
(
year
);
List
<
Integer
>
monthList
=
new
ArrayList
<>();
for
(
int
i
=
Integer
.
parseInt
(
splitStart
[
1
])
;
i
<=
Integer
.
parseInt
(
splitEnd
[
1
]);
i
++)
{
monthList
.
add
(
i
);
}
req
.
setMonthList
(
monthList
);
List
<
CompletableFuture
<
TjOrgCountDto
>>
futures
=
orgList
.
stream
()
.
map
(
orgId
->
CompletableFuture
.
supplyAsync
(()
->
equipmentCountSummaryMapper
.
TjOrgCount
(
orgId
,
...
...
@@ -711,6 +720,14 @@ public class TjServiceImpl implements TjService {
List
<
String
>
orgList
=
inventorySummaryMapper
.
getTotalData
(
String
.
valueOf
(
req
.
getOrgId
()));
List
<
TjOrgCountDto
>
tjOrgCountList
=
new
ArrayList
<>();
String
[]
splitStart
=
req
.
getStartTime
().
split
(
"-"
);
String
[]
splitEnd
=
req
.
getEndTime
().
split
(
"-"
);
Integer
year
=
Integer
.
parseInt
(
splitStart
[
0
]
);
req
.
setYear
(
year
);
List
<
Integer
>
monthList
=
new
ArrayList
<>();
for
(
int
i
=
Integer
.
parseInt
(
splitStart
[
1
])
;
i
<=
Integer
.
parseInt
(
splitEnd
[
1
]);
i
++)
{
monthList
.
add
(
i
);
}
List
<
CompletableFuture
<
TjOrgCountDto
>>
futures
=
orgList
.
stream
()
.
map
(
orgId
->
CompletableFuture
.
supplyAsync
(()
->
equipmentCountSummaryMapper
.
TjOrgCount
(
orgId
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论