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

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

parents 69e2b614 fb6e2c24
...@@ -21,7 +21,7 @@ public class BusDevService { ...@@ -21,7 +21,7 @@ public class BusDevService {
@Id @Id
private String serId; private String serId;
private String serPrincipal; private String serPrincipal;
private String devNum; private String devId;
private Date serTm; private Date serTm;
private String serContent; private String serContent;
private String note; private String note;
...@@ -44,16 +44,14 @@ public class BusDevService { ...@@ -44,16 +44,14 @@ public class BusDevService {
this.serPrincipal = serPrincipal; this.serPrincipal = serPrincipal;
} }
public String getDevId() {
public String getDevNum() { return devId;
return devNum;
} }
public void setDevNum(String devNum) { public void setDevId(String devId) {
this.devNum = devNum; this.devId = devId;
} }
public Date getSerTm() { public Date getSerTm() {
return serTm; return serTm;
} }
......
...@@ -360,7 +360,7 @@ public class OverViewServiceImpl implements OverViewService { ...@@ -360,7 +360,7 @@ public class OverViewServiceImpl implements OverViewService {
if (total.compareTo(new BigDecimal(0)) == 0) if (total.compareTo(new BigDecimal(0)) == 0)
energyCountMVo.setPercent(total + "%"); energyCountMVo.setPercent(total + "%");
else 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; 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