Commit 50e29a1c by 田超

Merge branch 'message' into 'master'

feat:[1004974]个人主页消息加类型

See merge request rays/pcloud-book!1360
parents 4bf4472e 87c7c05b
......@@ -30,7 +30,15 @@ public enum AppletRecordTypeEnum {
SELF_COUPON(21,"自定义优惠券"),
SYS_COUPON(22,"系统优惠券");
SYS_COUPON(22,"系统优惠券"),
PERSONAL_LIKE(23,"个人页点赞"),
CLOCK_LIKE(24,"打卡点赞"),
CLOCK_COMMENT(25,"打卡评论")
;
public Integer value;
......
......@@ -27,4 +27,6 @@ public class AppletNotifySendDTO {
@ApiModelProperty("JSON形式额外信息")
private String extJson;
private Integer serveType;
}
......@@ -570,7 +570,11 @@ public class CultivateNotifyBizImpl implements CultivateNotifyBiz {
cultivateNotifyItem.setMessageId(cultivateNotify.getMessageId());
cultivateNotifyItem.setContentType(4);
cultivateNotifyItem.setServeId(newSendDTO.getFromId());
if(newSendDTO.getServeType()!=null){
cultivateNotifyItem.setServeType(newSendDTO.getServeType());
}else {
cultivateNotifyItem.setServeType(AppletRecordTypeEnum.RAISE_QUESTION.value);
}
cultivateNotifyItemDao.insert(Lists.newArrayList(cultivateNotifyItem));
return cultivateNotify.getMessageId();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment