增加数据类别字段

This commit is contained in:
zhangqinbin
2021-08-04 10:13:43 +08:00
parent 2d2eeb2f05
commit 5a941b83ad
3 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ public class BizMessage {
private String url;
private String params;
private Timestamp createtime;
private String templatetype;
/* 该值为1则标识开启授权控制只有授权列表( biz_message_authorize )内的用户可见 */
private Integer authorize;

View File

@ -17,6 +17,7 @@ public class BizMessageTemplate {
private String remark;
private String router;
private Timestamp createtime;
private String type;
private Timestamp updatetime;
}

View File

@ -85,6 +85,7 @@ public class BizMessageProducerServiceImpl implements BizMessageProducerService
bizmessage.setContent(fill(dao.getBody(), messageRaw.getBody()));
bizmessage.setUrl(fill(dao.getRouter(), messageRaw.getExtra()));
bizmessage.setParams(toJson(messageRaw.getExtra()));
bizmessage.setTemplatetype(dao.getType());
Optional.ofNullable(messageRaw.getUsers()).ifPresent(users -> {
log.debug("if user list {} is not emtpy, then grant current message to them.", users);