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 2ff72eac
authored
Jul 14, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-dingwf-0714' into develop
2 parents
e862680b
ccca1513
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
project-order/src/main/java/com/dituhui/pea/order/dto/CapacityStatQueryDTO.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrgCapacityServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/dto/CapacityStatQueryDTO.java
View file @
2ff72ea
...
...
@@ -52,6 +52,7 @@ public class CapacityStatQueryDTO {
private
long
capAdjust
;
private
long
capTotal
;
private
long
capUsed
;
private
long
capLeft
;
@JsonDeserialize
(
using
=
LocalDateTimeDeserializer
.
class
)
@JsonSerialize
(
using
=
LocalDateTimeSerializer
.
class
)
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrgCapacityServiceImpl.java
View file @
2ff72ea
...
...
@@ -77,18 +77,28 @@ public class OrgCapacityServiceImpl implements OrgCapacityService {
CapacityOrgStatEntity
e
=
(
CapacityOrgStatEntity
)
item
;
content
.
setLevelType
(
e
.
getType
()).
setLevelValue
(
e
.
getOrgId
());
content
.
setShowName
(
names
.
get
(
e
.
getOrgId
()));
content
.
setDate
(
e
.
getWorkday
()).
setLayer
(
e
.
getLayer
())
.
setCapTotal
(
e
.
getCapTotal
()).
setCapUsed
(
e
.
getCapUsedTotal
())
.
setEngineerNum
(
e
.
getEngineerCount
()).
setUpdateTime
(
e
.
getUpdateTime
());
content
.
setDate
(
e
.
getWorkday
())
.
setLayer
(
e
.
getLayer
())
.
setCapTotal
(
e
.
getCapTotal
())
.
setCapUsed
(
e
.
getCapUsedTotal
())
.
setCapLeft
(
e
.
getCapLeft
())
.
setEngineerNum
(
e
.
getEngineerCount
())
.
setUpdateTime
(
e
.
getUpdateTime
());
}
else
{
// group查询,是capacity_team_stat
CapacityTeamStatEntity
e
=
(
CapacityTeamStatEntity
)
item
;
// capacity_team_stat表中的team_id,直接就是字符串
content
.
setLevelType
(
"team"
).
setLevelValue
(
e
.
getTeamId
());
content
.
setShowName
(
names
.
get
(
e
.
getTeamId
()));
content
.
setDate
(
e
.
getWorkday
()).
setLayer
(
e
.
getLayer
()).
setShowName
(
e
.
getTeamId
())
.
setCapTotal
(
e
.
getCapTotal
()).
setCapUsed
(
e
.
getCapUsed
()).
setCapAdjust
(
e
.
getCapAdjust
())
.
setEngineerNum
(
e
.
getEngineerCount
()).
setUpdateTime
(
e
.
getUpdateTime
());
content
.
setDate
(
e
.
getWorkday
())
.
setLayer
(
e
.
getLayer
())
.
setShowName
(
e
.
getTeamId
())
.
setCapTotal
(
e
.
getCapTotal
())
.
setCapUsed
(
e
.
getCapUsed
())
.
setCapLeft
(
e
.
getCapLeft
())
.
setCapAdjust
(
e
.
getCapAdjust
())
.
setEngineerNum
(
e
.
getEngineerCount
())
.
setUpdateTime
(
e
.
getUpdateTime
());
}
contents
.
add
(
content
);
}
...
...
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