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"){
+
+
+ 是
+ 否
+
+
是
@@ -175,6 +181,7 @@ layout("/layouts/platform.html"){
if(resp.code === 0) {
this.$message.success(resp.msg)
this.doSearch()
+ this.inviteUserDialog = false
} else {
this.$message.warning(resp.msg)
}