Commit e041b7ac authored by 王夏晖's avatar 王夏晖

Merge remote-tracking branch 'origin/develop' into develop

parents 69e2b614 fb6e2c24
......@@ -21,7 +21,7 @@ public class BusDevService {
@Id
private String serId;
private String serPrincipal;
private String devNum;
private String devId;
private Date serTm;
private String serContent;
private String note;
......@@ -44,16 +44,14 @@ public class BusDevService {
this.serPrincipal = serPrincipal;
}
public String getDevNum() {
return devNum;
public String getDevId() {
return devId;
}
public void setDevNum(String devNum) {
this.devNum = devNum;
public void setDevId(String devId) {
this.devId = devId;
}
public Date getSerTm() {
return serTm;
}
......
......@@ -360,7 +360,7 @@ public class OverViewServiceImpl implements OverViewService {
if (total.compareTo(new BigDecimal(0)) == 0)
energyCountMVo.setPercent(total + "%");
else
energyCountMVo.setPercent(energyCountMVo.getEnergy().divide(total).multiply(new BigDecimal(100)).setScale(1) + "%");
energyCountMVo.setPercent(energyCountMVo.getEnergy().divide(total, 1, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)) + "%");
}
}
return list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment