Commit 0d71826d authored by wujiang's avatar wujiang

修改查询报错

parent 58609e8f
......@@ -613,6 +613,8 @@ public class TDBigScreenAnalyseController extends BaseController {
query.eq(IdxBizFanHealthLevel::getStatus, item.get("station"));
query.le(IdxBizFanHealthLevel::getGroupLowerLimit, equipmentHealthScore);
query.ge(IdxBizFanHealthLevel::getGroupUpperLimit, equipmentHealthScore);
query.orderByDesc(IdxBizFanHealthLevel::getGroupUpperLimit);
query.last("LIMIT 1");
IdxBizFanHealthLevel idxBizFanHealthLevel = idxBizFanHealthLevelMapper.selectOne(query);
if (ObjectUtils.isNotEmpty(idxBizFanHealthLevel)) {
item.put("warningName", idxBizFanHealthLevel.getHealthLevel());
......
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