增加业务参数

This commit is contained in:
zhangqinbin
2021-08-04 17:06:27 +08:00
parent 69815abcc5
commit 9fe6eace74
2 changed files with 2 additions and 5 deletions

View File

@ -19,18 +19,16 @@
</select>
<select id="findMessageVo" resultType="com.chinaunicom.mall.ebtp.extend.bizmessage.entity.BizMessageVo">
SELECT biz_message.*,'1' as authorizestate,null as authorizeid
SELECT biz_message.*,'1' as authorizestate
FROM biz_message
left join biz_message_template on biz_message.templatecode = biz_message_template.code
WHERE authorize = 0
<if test="userId!=null and userId!=''">
UNION ALL
SELECT a.*,IFNULL(b.state,1) as authorizestate,b.id as authorizeid
SELECT a.*,IFNULL(b.state,1) as authorizestate
FROM ( SELECT biz_message.*
FROM biz_message
left join biz_message_template on biz_message.templatecode = biz_message_template.code
WHERE authorize = 1) a
INNER JOIN
( SELECT * FROM biz_message_authorize WHERE user_id = #{userId}) b ON a.id = b.message_id

View File

@ -6,6 +6,5 @@ import lombok.Data;
public class BizMessageVo extends BizMessage{
private String authorizestate;
private String authorizeid;
}