大屏bug
This commit is contained in:
parent
44f5f0c510
commit
e1df8bf961
|
|
@ -113,7 +113,7 @@ public class LargeScreenController {
|
||||||
Integer repairingDevNum = devInfoMapper.getRepairingDevNum();
|
Integer repairingDevNum = devInfoMapper.getRepairingDevNum();
|
||||||
orderData.setDevRepairingNum(repairingDevNum);
|
orderData.setDevRepairingNum(repairingDevNum);
|
||||||
DevInfo devInfo = devInfoMapper.getDevUsageRatio();
|
DevInfo devInfo = devInfoMapper.getDevUsageRatio();
|
||||||
orderData.setDevUsageRatio(MathUtil.calculatePercentage(devInfo.getTotalLeaseDay(), devInfo.getTotalUpDay()));
|
orderData.setDevUsageRatio(MathUtil.calculatePercentage(devInfo.getTotalLeaseDay(), devInfo.getTotalUpDay() + devInfo.getTotalLeaseDay()));
|
||||||
return AjaxResult.success(orderData);
|
return AjaxResult.success(orderData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -977,8 +977,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
sum(total_lease_day) as totalLeaseDay
|
sum(total_lease_day) as totalLeaseDay
|
||||||
FROM
|
FROM
|
||||||
ma_dev_info
|
ma_dev_info
|
||||||
WHERE
|
|
||||||
ma_status = '3'
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateTotalDevUpDay">
|
<update id="updateTotalDevUpDay">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue