commit
This commit is contained in:
+6
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user