feat(pocket): 添加数据查询倒序排列功能
- 在Klptcm1ProPlantStateCurrentMapper.xml中添加ORDER BY INSDATE DESC排序 - 在Klptcm1ProPlantStateHistoryServiceImpl中添加倒序查询逻辑- 在Klptcm1ProStoppageServiceImpl中添加倒序查询逻辑
This commit is contained in:
@@ -169,6 +169,8 @@ public class Klptcm1ProPlantStateHistoryServiceImpl implements IKlptcm1ProPlantS
|
|||||||
lqw.eq(bo.getVALUE97() != null, Klptcm1ProPlantStateHistory::getValue97, bo.getVALUE97());
|
lqw.eq(bo.getVALUE97() != null, Klptcm1ProPlantStateHistory::getValue97, bo.getVALUE97());
|
||||||
lqw.eq(bo.getVALUE98() != null, Klptcm1ProPlantStateHistory::getValue98, bo.getVALUE98());
|
lqw.eq(bo.getVALUE98() != null, Klptcm1ProPlantStateHistory::getValue98, bo.getVALUE98());
|
||||||
lqw.eq(bo.getVALUE99() != null, Klptcm1ProPlantStateHistory::getValue99, bo.getVALUE99());
|
lqw.eq(bo.getVALUE99() != null, Klptcm1ProPlantStateHistory::getValue99, bo.getVALUE99());
|
||||||
|
//倒叙
|
||||||
|
lqw.orderByDesc(Klptcm1ProPlantStateHistory::getInsdate);
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,8 @@ public class Klptcm1ProStoppageServiceImpl implements IKlptcm1ProStoppageService
|
|||||||
lqw.eq(bo.getDURATION() != null, Klptcm1ProStoppage::getDuration, bo.getDURATION());
|
lqw.eq(bo.getDURATION() != null, Klptcm1ProStoppage::getDuration, bo.getDURATION());
|
||||||
lqw.eq(bo.getInsDate() != null, Klptcm1ProStoppage::getInsDate, bo.getInsDate());
|
lqw.eq(bo.getInsDate() != null, Klptcm1ProStoppage::getInsDate, bo.getInsDate());
|
||||||
lqw.eq(StringUtils.isNotBlank(bo.getStopType()), Klptcm1ProStoppage::getStopType, bo.getStopType());
|
lqw.eq(StringUtils.isNotBlank(bo.getStopType()), Klptcm1ProStoppage::getStopType, bo.getStopType());
|
||||||
|
//倒叙
|
||||||
|
lqw.orderByDesc(Klptcm1ProStoppage::getInsDate);
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,6 +132,7 @@
|
|||||||
SELECT
|
SELECT
|
||||||
<include refid="Base_Column_List"/>
|
<include refid="Base_Column_List"/>
|
||||||
FROM klptcm1_pro_plant_state_current
|
FROM klptcm1_pro_plant_state_current
|
||||||
|
ORDER BY INSDATE DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 按复合键查询(INSDATE + TYPE) -->
|
<!-- 按复合键查询(INSDATE + TYPE) -->
|
||||||
|
|||||||
Reference in New Issue
Block a user