Commit 6111f450 by 丁伟峰

createTime ==> updateTime

1 parent cb3e58e5
......@@ -2,6 +2,7 @@ package com.alibaba.cloud.integration.order.dto;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;
@lombok.Data
......@@ -20,7 +21,7 @@ public class CapacityStatQueryRespDTO {
private long capAdjust;
private long capTotal;
private long capUsed;
private String createTime;
private Date updateTime;
private String date;
private long engineerNum;
private String groupName;
......
......@@ -104,14 +104,14 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
OrgGroupEntity g = orgGroupDao.getByGroupId(e.getOrgId());
content.setDate(e.getWorkday()).setLayer(e.getLayer()).setGroupName(g.getGroupName())
.setCapTotal(e.getCapTotal()).setCapUsed(e.getCapUsedTotal())
.setEngineerNum(e.getEngineerCount()).setCreateTime(e.getCreateTime().toString());
.setEngineerNum(e.getEngineerCount()).setUpdateTime(e.getUpdateTime());
} else {
// group查询,是capacity_team_stat
CapacityTeamStatEntity e = (CapacityTeamStatEntity) item;
// capacity_team_stat表中的team_id,直接就是字符串
content.setDate(e.getWorkday()).setLayer(e.getLayer()).setTeamName(e.getTeamId())
.setCapTotal(e.getCapTotal()).setCapUsed(e.getCapUsed()).setCapAdjust(e.getCapAdjust())
.setEngineerNum(e.getEngineerCount()).setCreateTime(e.getCreateTime().toString());
.setEngineerNum(e.getEngineerCount()).setUpdateTime(e.getUpdateTime());
}
contents.add(content);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!