From 9e65417d6e6d79fae20f20778be052d4e060c951 Mon Sep 17 00:00:00 2001 From: "@jyuhsin" <729757837@qq.com> Date: Wed, 8 Jan 2025 17:38:53 +0800 Subject: [PATCH] commit --- .../platform/sys/club/regist/ClubMyApplyController.java | 6 ++++++ src/main/java/io/v/nutz/sys/models/Sys_club_user.java | 6 ++++++ .../views/platform/sys/club/regist/clubMyApply.html | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/src/main/java/io/v/nutz/sys/controllers/platform/sys/club/regist/ClubMyApplyController.java b/src/main/java/io/v/nutz/sys/controllers/platform/sys/club/regist/ClubMyApplyController.java index 3e488f4..a0c87b2 100644 --- a/src/main/java/io/v/nutz/sys/controllers/platform/sys/club/regist/ClubMyApplyController.java +++ b/src/main/java/io/v/nutz/sys/controllers/platform/sys/club/regist/ClubMyApplyController.java @@ -16,6 +16,7 @@ import io.v.nutz.web.commons.utils.ShiroUtil; import org.apache.shiro.authz.annotation.Logical; import org.apache.shiro.authz.annotation.RequiresAuthentication; import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.nutz.dao.Chain; import org.nutz.dao.Cnd; import org.nutz.dao.Dao; import org.nutz.dao.Sqls; @@ -216,6 +217,11 @@ public class ClubMyApplyController { String content = "%s老师您好,欢迎加入%s,请进入入会申请进行确认!".formatted(sysUser.getUsername(), sysClub.getName()) + Globals.AppDomain + "/platform/sys/club/sq/mobile"; msgApi.sendMsg(List.of("DingTalk"), user, 1, "协会入会邀请", content, "", ""); + + dao.update( + Sys_club_user.class, + Chain.make("sendMsg", true), + Cnd.where("clubid", "=", id).and("userid", "=", sysUser.getId())); } return null; } diff --git a/src/main/java/io/v/nutz/sys/models/Sys_club_user.java b/src/main/java/io/v/nutz/sys/models/Sys_club_user.java index 4c0a4f2..24a10e0 100644 --- a/src/main/java/io/v/nutz/sys/models/Sys_club_user.java +++ b/src/main/java/io/v/nutz/sys/models/Sys_club_user.java @@ -221,4 +221,10 @@ public class Sys_club_user extends BaseModel { @ColDefine(type = ColType.BOOLEAN) @Default("0") private Boolean invite; + + @Column + @Comment("是否已发送邀请") + @ColDefine(type = ColType.BOOLEAN) + @Default("0") + private Boolean sendMsg; } diff --git a/src/main/resources/views/platform/sys/club/regist/clubMyApply.html b/src/main/resources/views/platform/sys/club/regist/clubMyApply.html index bb50608..41ef5aa 100644 --- a/src/main/resources/views/platform/sys/club/regist/clubMyApply.html +++ b/src/main/resources/views/platform/sys/club/regist/clubMyApply.html @@ -106,6 +106,12 @@ layout("/layouts/platform.html"){ + + +