Browse Source

优化

master
blank 10 months ago
parent
commit
2b9e9a7286
  1. 2
      ruoyi-code/src/main/java/com/ruoyi/code/rtudata/service/impl/RtuDataServiceImpl.java

2
ruoyi-code/src/main/java/com/ruoyi/code/rtudata/service/impl/RtuDataServiceImpl.java

@ -29,6 +29,8 @@ public class RtuDataServiceImpl extends ServiceImpl<RtuDataMapper, RtuData> impl
new Query<RtuData>().getPage(params), new Query<RtuData>().getPage(params),
new QueryWrapper<RtuData>() new QueryWrapper<RtuData>()
.eq(ObjectUtils.isNotEmpty(params.get("itemCode")),"item_code",params.get("itemCode")) .eq(ObjectUtils.isNotEmpty(params.get("itemCode")),"item_code",params.get("itemCode"))
.ge(ObjectUtils.isNotEmpty(params.get("startTime")),"dt",params.get("startTime"))
.le(ObjectUtils.isNotEmpty(params.get("endTime")),"dt",params.get("endTime"))
.orderByDesc("dt") .orderByDesc("dt")
); );

Loading…
Cancel
Save