Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 83fd6e55
authored
Nov 14, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(分站技能): 分站技能计算数据类型转换错误, 导致无法正常生成分站容量记录
1 parent
a66a2a2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
project-order/src/main/java/com/dituhui/pea/order/scheduler/CalcOrgCapacityScheduler.java
project-order/src/main/java/com/dituhui/pea/order/scheduler/CalcOrgCapacityScheduler.java
View file @
83fd6e5
...
...
@@ -10,6 +10,8 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
...
...
@@ -100,10 +102,10 @@ public class CalcOrgCapacityScheduler {
dto
.
setOrgId
(
groupId
);
dto
.
setLayerId
((
String
)
result
[
1
]);
dto
.
setLayer
((
String
)
result
[
2
]);
dto
.
setEngineerCount
((
Integer
)
result
[
3
]
);
dto
.
setCapTotal
((
Integer
)
result
[
4
]
);
dto
.
setCapUsed
((
Integer
)
result
[
5
]
);
dto
.
setCapLeft
((
Integer
)
result
[
6
]
);
dto
.
setEngineerCount
((
(
BigInteger
)
result
[
3
]).
intValue
()
);
dto
.
setCapTotal
((
(
BigDecimal
)
result
[
4
]).
intValue
()
);
dto
.
setCapUsed
((
(
BigDecimal
)
result
[
5
]).
intValue
()
);
dto
.
setCapLeft
((
(
BigDecimal
)
result
[
6
]).
intValue
()
);
stats
.
add
(
dto
);
}
// 逐条保存
...
...
@@ -178,7 +180,7 @@ public class CalcOrgCapacityScheduler {
}
}
p
rivate
void
calcAllGroupByDays
(
String
bdate
,
String
edate
)
{
p
ublic
void
calcAllGroupByDays
(
String
bdate
,
String
edate
)
{
LocalDate
currentDate
=
DateUtils
.
localDateFromStr
(
bdate
);
LocalDate
endDate
=
DateUtils
.
localDateFromStr
(
edate
);
List
<
String
>
allGroupIds
=
orgGroupDao
.
findAll
().
stream
().
map
(
OrgGroupEntity:
:
getGroupId
).
collect
(
Collectors
.
toList
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment