规则列表接口
This commit is contained in:
parent
bf77da6df7
commit
80901549e4
@ -146,11 +146,12 @@ public class DryEquipmentInfoServiceImpl implements IDryEquipmentInfoService
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<ParamThresholdDTO> ruleList() {
|
public List<ParamThresholdDTO> ruleList() {
|
||||||
List<DryParamThreshold> list = paramMapper.selectList(null);
|
List<DryParamThreshold> list = paramMapper.selectList(new LambdaQueryWrapper<DryParamThreshold>().orderByDesc(DryParamThreshold::getCreateTime));
|
||||||
List<ParamThresholdDTO> result = new ArrayList<>();
|
List<ParamThresholdDTO> result = new ArrayList<>();
|
||||||
for (DryParamThreshold item : list) {
|
for (DryParamThreshold item : list) {
|
||||||
ParamThresholdDTO param = new ParamThresholdDTO();
|
ParamThresholdDTO param = new ParamThresholdDTO();
|
||||||
param.ruleName = item.getRuleName();
|
param.ruleName = item.getRuleName();
|
||||||
|
result.add(param);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user