diff --git a/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinApplyController.java b/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinApplyController.java index 2f86470..678ef9e 100644 --- a/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinApplyController.java +++ b/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinApplyController.java @@ -68,7 +68,6 @@ public class ClubUserJoinApplyController { u.sex, u.unitName, u.unionName, - u.governmentPosition, u.technicalTitle, u.education, u.academicDegree diff --git a/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinCommonController.java b/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinCommonController.java index 5f67aab..3e8f6df 100644 --- a/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinCommonController.java +++ b/src/main/java/com/budwk/app/zhgh/club/controller/apply/ClubUserJoinCommonController.java @@ -39,7 +39,6 @@ public class ClubUserJoinCommonController { u.mobile, u.unitName, u.unionName, - u.governmentPosition, u.technicalTitle, u.education, u.academicDegree diff --git a/src/main/java/com/budwk/app/zhgh/club/controller/applyJoin/ClubUserApplyController.java b/src/main/java/com/budwk/app/zhgh/club/controller/applyJoin/ClubUserApplyController.java index b294cfd..db6d9da 100644 --- a/src/main/java/com/budwk/app/zhgh/club/controller/applyJoin/ClubUserApplyController.java +++ b/src/main/java/com/budwk/app/zhgh/club/controller/applyJoin/ClubUserApplyController.java @@ -110,8 +110,6 @@ public class ClubUserApplyController { left join club_user cu on club.id=cu.clubId where cu.userId=@userId - and isNormal = true - and cu.status in (1, 3, 5) group by cu.clubId """).setParam("userId", id); List list = sysClubService.listMap(sql); diff --git a/src/main/java/com/budwk/app/zhgh/club/h5controller/H5ClubMineController.java b/src/main/java/com/budwk/app/zhgh/club/h5controller/H5ClubMineController.java new file mode 100644 index 0000000..6ec463b --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/club/h5controller/H5ClubMineController.java @@ -0,0 +1,27 @@ +package com.budwk.app.zhgh.club.h5controller; + +import cn.dev33.satoken.annotation.SaCheckPermission; +import io.swagger.annotations.Api; +import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.mvc.annotation.At; +import org.nutz.mvc.annotation.Ok; + +/** + * @ClassName H5ClubMineController + * @Author JyuHsin + * @Date 2025/7/2 19:19 + * @Version 1.0 + * @Description TODO + */ +@IocBean +@At("/platform/h5/club/mine") +@Ok("json:full") +@Api("h5申请入会") +public class H5ClubMineController { + + @At("") + @Ok("beetl:/platform/zhghh5/club/mine/index.html") + @SaCheckPermission("h5.club.mine") + public void index() { + } +} diff --git a/src/main/java/com/budwk/app/zhgh/club/service/impl/SysClubServiceImpl.java b/src/main/java/com/budwk/app/zhgh/club/service/impl/SysClubServiceImpl.java index 1498e0e..b1f4980 100644 --- a/src/main/java/com/budwk/app/zhgh/club/service/impl/SysClubServiceImpl.java +++ b/src/main/java/com/budwk/app/zhgh/club/service/impl/SysClubServiceImpl.java @@ -71,8 +71,10 @@ public class SysClubServiceImpl extends BaseServiceImpl implements SysC FROM sys_club club LEFT JOIN sys_user u on club.concatPerson = u.id + LEFT JOIN bpm_process_instance ins ON ins.processInstanceBusinessId = club.id $condition """).setParam("userId", SecurityUtil.getUserId()); + cnd.and("ins.processInstanceStatus", "=", BpmProcessInstanceStatusEnum.COMPLETED); sql.setCondition(cnd); return listPageVO(pageForm, sql, ClubCommonPageVo.class); } diff --git a/src/main/resources/views/platform/zhgh/club/register/apply/index.html b/src/main/resources/views/platform/zhgh/club/register/apply/index.html index 558e8cd..5a61703 100644 --- a/src/main/resources/views/platform/zhgh/club/register/apply/index.html +++ b/src/main/resources/views/platform/zhgh/club/register/apply/index.html @@ -93,9 +93,11 @@ layout("/layouts/platform.html"){ await this.doHandle("doSave") }, async doSubmit() { - let valid = await this.$refs.clubFormRef.$refs.form.validate() - if (!valid) return - await this.doHandle("doSubmit") + this.$refs.clubFormRef.$refs.form.validate().then(() => { + this.doHandle("doSubmit") + }).catch(() => { + this.$message.warning({ title: "警告", message: "存在必填项未填写!" }) + }) }, async doHandle(type) { let formData = {} @@ -151,7 +153,6 @@ layout("/layouts/platform.html"){ } } catch (e) { console.log(e) - this.$message.warning({ title: "警告", message: "存在必填项未填写!" }) } }, async userRemoteMethod(query) { diff --git a/src/main/resources/views/platform/zhghh5/club/apply/index.html b/src/main/resources/views/platform/zhghh5/club/apply/index.html index 0c1d4d9..0072498 100644 --- a/src/main/resources/views/platform/zhghh5/club/apply/index.html +++ b/src/main/resources/views/platform/zhghh5/club/apply/index.html @@ -2,67 +2,199 @@ layout("/layouts/platform_h5.html"){ #--> - + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 注:本人已仔细阅读并愿意遵守所参加本校教职工文体协会的章程和规定,自愿加入所报名协会。 + + + + +
+ 提交申请 +
+
diff --git a/src/main/resources/views/platform/zhghh5/club/mine/index.html b/src/main/resources/views/platform/zhghh5/club/mine/index.html new file mode 100644 index 0000000..0d38974 --- /dev/null +++ b/src/main/resources/views/platform/zhghh5/club/mine/index.html @@ -0,0 +1,33 @@ + + + + +
+ +
+ + + +