Преглед изворни кода

bugfix: 注销门店 通知内容修改

qinxuyang пре 2 месеци
родитељ
комит
6c0b0f6108

+ 4 - 4
alien-store-platform/src/main/java/shop/alien/storeplatform/service/impl/StoreBusinessServiceImpl.java

@@ -1836,7 +1836,7 @@ public class StoreBusinessServiceImpl extends ServiceImpl<StoreInfoMapper, Store
     private static LifeNotice getLifeNotice(StoreInfoVo storeInfo) {
         LifeNotice lifeMessage = new LifeNotice();
         lifeMessage.setReceiverId("store_" + storeInfo.getStorePhone());
-        String text = "您提交的店铺注销申请已成功接收,系统将按流程进行处理。注销申请提交后,将进入7天的冷静期,期间您可随在【我的设置】-【店铺信息】-【操作】-【注销店铺】中撤回申请,冷静期结束后,系统将正式开始注销操作,店铺内所数据将被永久清除,且无法恢复。如有疑问,可联系客服咨询,感谢您使用我们的服务。";
+        String text = "您提交的店铺注销申请已成功接收,系统将按流程进行处理。\n\n注销申请提交后,将进入7天的冷静期,期间您可随时在【我的设置】-【注销店铺】中撤回申请。冷静期结束后,系统将正式开始注销操作,店铺内所有数据将被永久清除,且无法恢复。\n\n如有疑问,可联系客服咨询,感谢您使用我们的服务。";
         com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
         jsonObject.put("message", text);
         lifeMessage.setContext(jsonObject.toJSONString());
@@ -1868,13 +1868,13 @@ public class StoreBusinessServiceImpl extends ServiceImpl<StoreInfoMapper, Store
             // 发送通知
             LifeNotice lifeMessage = new LifeNotice();
             lifeMessage.setReceiverId("store_" + storeInfo.getStorePhone());
-            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm");
             String storeDate = simpleDateFormat.format(new Date());
-            String text = "您在"+storeDate+"撤销了注销账号,所有数据均已保留,您可继续在平台使用。";
+            String text = "处理结果: 已撤回注销申请\n\n" + storeDate + "\n\n当前店铺状态已恢复正常。您可继续使用该店铺登录并享受各项服务,所有店铺数据均已妥善保留。\n\n若您后续仍有注销需求,可随时通过【我的设置】-【注销店铺】中重新提交申请。感谢您的理解与支持!";
             com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
             jsonObject.put("message", text);
             lifeMessage.setContext(jsonObject.toJSONString());
-            lifeMessage.setTitle("撤销注销店铺通知");
+            lifeMessage.setTitle("处理结果: 已撤回注销申请");
             lifeMessage.setSenderId("system");
             lifeMessage.setIsRead(0);
             lifeMessage.setNoticeType(1);

+ 4 - 4
alien-store/src/main/java/shop/alien/store/service/impl/StoreInfoServiceImpl.java

@@ -2699,7 +2699,7 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
     private static LifeNotice getLifeNotice(StoreInfoVo storeInfo) {
         LifeNotice lifeMessage = new LifeNotice();
         lifeMessage.setReceiverId("store_" + storeInfo.getStorePhone());
-        String text = "您提交的店铺注销申请已成功接收,系统将按流程进行处理。注销申请提交后,将进入7天的冷静期,期间您可随在【我的设置】-【店铺信息】-【操作】-【注销店铺】中撤回申请,冷静期结束后,系统将正式开始注销操作,店铺内所数据将被永久清除,且无法恢复。如有疑问,可联系客服咨询,感谢您使用我们的服务。";
+        String text = "您提交的店铺注销申请已成功接收,系统将按流程进行处理。\n\n注销申请提交后,将进入7天的冷静期,期间您可随时在【我的设置】-【注销店铺】中撤回申请。冷静期结束后,系统将正式开始注销操作,店铺内所有数据将被永久清除,且无法恢复。\n\n如有疑问,可联系客服咨询,感谢您使用我们的服务。";
         com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
         jsonObject.put("message", text);
         lifeMessage.setContext(jsonObject.toJSONString());
@@ -2731,13 +2731,13 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
             // 发送通知
             LifeNotice lifeMessage = new LifeNotice();
             lifeMessage.setReceiverId("store_" + storeInfo.getStorePhone());
-            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm");
             String storeDate = simpleDateFormat.format(new Date());
-            String text = "您在" + storeDate + "撤销了注销账号,所有数据均已保留,您可继续在平台使用。";
+            String text = "处理结果: 已撤回注销申请\n\n" + storeDate + "\n\n当前店铺状态已恢复正常。您可继续使用该店铺登录并享受各项服务,所有店铺数据均已妥善保留。\n\n若您后续仍有注销需求,可随时通过【我的设置】-【注销店铺】中重新提交申请。感谢您的理解与支持!";
             com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
             jsonObject.put("message", text);
             lifeMessage.setContext(jsonObject.toJSONString());
-            lifeMessage.setTitle("撤销注销店铺通知");
+            lifeMessage.setTitle("处理结果: 已撤回注销申请");
             lifeMessage.setSenderId("system");
             lifeMessage.setIsRead(0);
             lifeMessage.setNoticeType(1);