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.getVALUE98() != null, Klptcm1ProPlantStateHistory::getValue98, bo.getVALUE98());
|
||||
lqw.eq(bo.getVALUE99() != null, Klptcm1ProPlantStateHistory::getValue99, bo.getVALUE99());
|
||||
//倒叙
|
||||
lqw.orderByDesc(Klptcm1ProPlantStateHistory::getInsdate);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,8 @@ public class Klptcm1ProStoppageServiceImpl implements IKlptcm1ProStoppageService
|
||||
lqw.eq(bo.getDURATION() != null, Klptcm1ProStoppage::getDuration, bo.getDURATION());
|
||||
lqw.eq(bo.getInsDate() != null, Klptcm1ProStoppage::getInsDate, bo.getInsDate());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getStopType()), Klptcm1ProStoppage::getStopType, bo.getStopType());
|
||||
//倒叙
|
||||
lqw.orderByDesc(Klptcm1ProStoppage::getInsDate);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user