Browse Source

优化

master
blank 2 years ago
parent
commit
2d7c1d2f15
  1. 4
      ruoyi-code/src/main/java/com/ruoyi/code/warning/service/impl/WaMessageServiceImpl.java

4
ruoyi-code/src/main/java/com/ruoyi/code/warning/service/impl/WaMessageServiceImpl.java

@ -35,13 +35,13 @@ public class WaMessageServiceImpl extends ServiceImpl<WaMessageMapper, WaMessage
public R queryPage(Map<String, Object> params) { public R queryPage(Map<String, Object> params) {
Object stnmId = params.get("stnmId"); Object stnmId = params.get("stnmId");
Object sendTime = params.get("sendTime"); Object sendTime = params.get("sendTime");
Object sendStatus = params.get("sendStatus"); Object sendStatus = params.get("sendStaus");
IPage<WaMessage> page = this.page( IPage<WaMessage> page = this.page(
new Query<WaMessage>().getPage(params), new Query<WaMessage>().getPage(params),
new QueryWrapper<WaMessage>() new QueryWrapper<WaMessage>()
.eq(ObjectUtils.isNotEmpty(stnmId),"stnm_id",stnmId) .eq(ObjectUtils.isNotEmpty(stnmId),"stnm_id",stnmId)
.eq(ObjectUtils.isNotEmpty(sendTime),"send_time",sendTime) .eq(ObjectUtils.isNotEmpty(sendTime),"send_time",sendTime)
.eq(ObjectUtils.isNotEmpty(sendStatus),"send_status",sendStatus) .eq(ObjectUtils.isNotEmpty(sendStatus),"send_staus",sendStatus)
); );
return R.ok().put("count", page.getTotal()).put("data", page.getRecords()); return R.ok().put("count", page.getTotal()).put("data", page.getRecords());

Loading…
Cancel
Save