提交 ff55ce09 作者: 沈振路

客服消息列表查询添加关键词&发送时间查询条件

上级 c97fbf4a
......@@ -18,6 +18,9 @@ import java.io.Serializable;
public class CustomerMessageQueryDTO extends PageParams implements Serializable {
private static final long serialVersionUID = 2406901469313438527L;
private String keyword;
private String date;
}
......@@ -45,6 +45,12 @@
and dic.level = 3
where cg.is_deleted = 0
<if test="queryDto.keyword != null and queryDto.keyword != ''">
and cg.name like concat('%', #{queryDto.keyword}, '%')
</if>
<if test="queryDto.date != null and queryDto.date != ''">
and cg.post_time like concat('%', #{queryDto.date}, '%')
</if>
</select>
</mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论