zoujiajian 2 anos atrás
pai
commit
dd08a5c4ee

+ 2 - 2
netflix-common/src/main/java/com/cyksj/common/constant/Constant.java

@@ -251,7 +251,7 @@ public interface Constant {
 	 */
 	Integer CORP_LINK_JOB_ID = 192;
 
-	String ACCOUNT_PWD_UPDATE_SYS_MSG_NOTIFY = "您购买的%s,密码已修改";
+	String ACCOUNT_PWD_UPDATE_SYS_MSG_NOTIFY = "您购买的%s账号,密码已修改";
 
-	String ACCOUNT_SET_SYS_MSG_NOTIFY = "您购买的%s,账号已配置";
+	String ACCOUNT_SET_SYS_MSG_NOTIFY = "您购买的%s账号,账号已配置";
 }

+ 1 - 1
netflix-dao/src/main/java/com/cyksj/mapper/UserSysMsgNotifyMapper.java

@@ -17,5 +17,5 @@ import java.util.List;
 public interface UserSysMsgNotifyMapper extends BaseMapper<UserSysMsgNotify> {
 	void recordUserAccountUpdateSysMsg(@Param("goodsId") Long goodsId, @Param("skuId") Long skuId, @Param("list") List<GroupsRelationView> relations, @Param("account") String account, @Param("msg") String msg);
 
-	void recordUserAccountSetSysMsg(@Param("goodsId") Long goodsId, @Param("skuId") Long skuId, @Param("collect") List<GroupsRelation> collect, @Param("account") String account, @Param("msg") String msg);
+	void recordUserAccountSetSysMsg(@Param("goodsId") Long goodsId, @Param("skuId") Long skuId, @Param("list") List<GroupsRelation> collect, @Param("account") String account, @Param("msg") String msg);
 }

+ 2 - 2
netflix-dao/src/main/resources/mapper/UserSysMsgNotifyMapper.xml

@@ -7,7 +7,7 @@
         insert into
         user_sys_msg_notify(`goods_id`,`sku_id`,`user_id`,`relation_id`,`account`,`msg`,`created_time`,`update_time`)
         values
-        <foreach collection="userSet" item="item" separator=",">
+        <foreach collection="list" item="item" separator=",">
             (#{goodsId},#{skuId},#{item.userId},#{item.id},#{account},#{msg},now(),now())
         </foreach>
     </insert>
@@ -16,7 +16,7 @@
         insert into
         user_sys_msg_notify(`goods_id`,`sku_id`,`user_id`,`relation_id`,`account`,`msg`,`created_time`,`update_time`)
         values
-        <foreach collection="userSet" item="item" separator=",">
+        <foreach collection="list" item="item" separator=",">
             (#{goodsId},#{skuId},#{item.userId},#{item.id},#{account},#{msg},now(),now())
         </foreach>
     </insert>

+ 2 - 1
netflix-web/src/main/java/com/cyksj/web/controller/manage/account/CmsAccountController.java

@@ -467,7 +467,7 @@ public class CmsAccountController {
     @PutMapping("/update")
     @SaCheckPermission("account:update")
     @Log(module = "平台管理/编辑账号", businessType = BusinessType.PUT, isSaveRequestData = true)
-    public Result<String> update(@RequestBody Account account){
+    public Result<String> update(@RequestBody Account account) throws Exception {
 	    Account db = accountService.getById(account.getId());
 	    if (db == null) {
 		    throw BusinessRuntimeException.getInstance("该账号不存在");
@@ -533,6 +533,7 @@ public class CmsAccountController {
 		    //清除gpt token
 		    redisService.del(RedisKey.CHATGPT_ACCESS_TOKEN + dbAccount);
 		    redisService.del(RedisService.key.CHAT_GPT_TOKEN_EXCEPTION_KEY.getName() + dbAccount);
+		    templateCommonService.sendAccountTemplateMsg(account);
 	    }
 	    //时间有效
 	    if (account.getExpiryTime() != null && account.getExpiryTime().after(DateTime.now())) {