Commit 87c7c05b by 田超

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

parent 11f24611
...@@ -30,7 +30,15 @@ public enum AppletRecordTypeEnum { ...@@ -30,7 +30,15 @@ public enum AppletRecordTypeEnum {
SELF_COUPON(21,"自定义优惠券"), SELF_COUPON(21,"自定义优惠券"),
SYS_COUPON(22,"系统优惠券"); SYS_COUPON(22,"系统优惠券"),
PERSONAL_LIKE(23,"个人页点赞"),
CLOCK_LIKE(24,"打卡点赞"),
CLOCK_COMMENT(25,"打卡评论")
;
public Integer value; public Integer value;
......
...@@ -27,4 +27,6 @@ public class AppletNotifySendDTO { ...@@ -27,4 +27,6 @@ public class AppletNotifySendDTO {
@ApiModelProperty("JSON形式额外信息") @ApiModelProperty("JSON形式额外信息")
private String extJson; private String extJson;
private Integer serveType;
} }
...@@ -570,7 +570,11 @@ public class CultivateNotifyBizImpl implements CultivateNotifyBiz { ...@@ -570,7 +570,11 @@ public class CultivateNotifyBizImpl implements CultivateNotifyBiz {
cultivateNotifyItem.setMessageId(cultivateNotify.getMessageId()); cultivateNotifyItem.setMessageId(cultivateNotify.getMessageId());
cultivateNotifyItem.setContentType(4); cultivateNotifyItem.setContentType(4);
cultivateNotifyItem.setServeId(newSendDTO.getFromId()); cultivateNotifyItem.setServeId(newSendDTO.getFromId());
if(newSendDTO.getServeType()!=null){
cultivateNotifyItem.setServeType(newSendDTO.getServeType());
}else {
cultivateNotifyItem.setServeType(AppletRecordTypeEnum.RAISE_QUESTION.value); cultivateNotifyItem.setServeType(AppletRecordTypeEnum.RAISE_QUESTION.value);
}
cultivateNotifyItemDao.insert(Lists.newArrayList(cultivateNotifyItem)); cultivateNotifyItemDao.insert(Lists.newArrayList(cultivateNotifyItem));
return cultivateNotify.getMessageId(); 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