|
|
@@ -1235,11 +1235,14 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
lifeNotice.setTitle("店铺审核通知");
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
String createDate = simpleDateFormat.format(storeInfo.getCreatedTime());
|
|
|
+
|
|
|
+ com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
|
|
|
if (2 == approvalStatus) {
|
|
|
- lifeNotice.setContext("您在"+createDate+"提交的入驻店铺申请,审核失败。失败原因:"+reason+"。");
|
|
|
+ jsonObject.put("message", "您在"+createDate+"提交的入驻店铺申请,审核失败。失败原因:"+reason+"。");
|
|
|
} else {
|
|
|
- lifeNotice.setContext("您在"+createDate+"提交的入驻店铺申请,已通过审核,欢迎您的加入。");
|
|
|
+ jsonObject.put("message", "您在"+createDate+"提交的入驻店铺申请,已通过审核,欢迎您的加入。");
|
|
|
}
|
|
|
+ lifeNotice.setContext(jsonObject.toJSONString());
|
|
|
lifeNotice.setNoticeType(1); // 系统通知
|
|
|
lifeNotice.setIsRead(0);
|
|
|
lifeNoticeMapper.insert(lifeNotice);
|