|
@@ -17,6 +17,7 @@ import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.IntegerUtil;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.RespDTOUtil;
|
|
|
+import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.RuleAppIdVO;
|
|
|
import com.diagbot.vo.RuleAppPageVO;
|
|
@@ -44,7 +45,9 @@ public class RuleAppFacade extends RuleAppServiceImpl {
|
|
|
public IPage<RuleAppDTO> pageRuleApp(RuleAppPageVO ruleAppPageVO) {
|
|
|
IPage<RuleAppDTO> res = new Page<>(ruleAppPageVO.getCurrent(), ruleAppPageVO.getSize());
|
|
|
QueryWrapper<RuleApp> ruleAppQueryWrapper = new QueryWrapper<>();
|
|
|
- ruleAppQueryWrapper.orderByDesc("gmt_modified", "id");
|
|
|
+ ruleAppQueryWrapper.like(StringUtil.isNotBlank(ruleAppPageVO.getRemind()), "remind", ruleAppPageVO.getRemind())
|
|
|
+ .eq(StringUtil.isNotBlank(ruleAppPageVO.getTypeId()), "type_id", ruleAppPageVO.getTypeId())
|
|
|
+ .orderByDesc("gmt_modified", "id");
|
|
|
IPage<RuleApp> page = this.page(ruleAppPageVO, ruleAppQueryWrapper);
|
|
|
BeanUtil.copyProperties(page, res);
|
|
|
if (ListUtil.isNotEmpty(page.getRecords())) {
|