增加数据类别字段
This commit is contained in:
@ -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;
|
||||
|
@ -17,6 +17,7 @@ public class BizMessageTemplate {
|
||||
private String remark;
|
||||
private String router;
|
||||
private Timestamp createtime;
|
||||
private String type;
|
||||
private Timestamp updatetime;
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user