首页信息查询接口 增加根据类型查询条件

This commit is contained in:
zhangqinbin
2022-04-06 16:06:28 +08:00
parent 8b1063e2a4
commit 90710da445
2 changed files with 10 additions and 0 deletions

View File

@ -74,6 +74,12 @@
<if test="templatetype!=null and templatetype!=''"> <if test="templatetype!=null and templatetype!=''">
and biz_message_template.type = #{templatetype} and biz_message_template.type = #{templatetype}
</if> </if>
<if test="templatecodes!=null and templatecodes.size()>0 ">
and biz_message.templatecode in
<foreach item="item" collection="templatecodes" separator="," open="(" close=")" index="">
#{item, jdbcType=NUMERIC}
</foreach>
</if>
ORDER BY createtime DESC ORDER BY createtime DESC
</select> </select>

View File

@ -1,5 +1,6 @@
package com.chinaunicom.mall.ebtp.extend.bizmessage.entity; package com.chinaunicom.mall.ebtp.extend.bizmessage.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
@ -12,4 +13,7 @@ public class BizMessageVo extends BizMessage{
private String userId; private String userId;
private Long datanum; private Long datanum;
private Integer size; private Integer size;
@ApiModelProperty(required = false, value = "指定消息类型,null 查全部")
private List<String> templatecodes;
} }