commit
This commit is contained in:
@@ -329,6 +329,7 @@ public class SysUnitController {
|
|||||||
parentId = "";
|
parentId = "";
|
||||||
}
|
}
|
||||||
unit.setCreatedBy(SecurityUtil.getUserId());
|
unit.setCreatedBy(SecurityUtil.getUserId());
|
||||||
|
unit.setUnitTypeCode(1);
|
||||||
sysUnitService.save(unit, parentId);
|
sysUnitService.save(unit, parentId);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
+11
-1
@@ -4,11 +4,13 @@ import cn.hutool.core.date.DateUtil;
|
|||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.json.JSONObject;
|
import cn.hutool.json.JSONObject;
|
||||||
|
import com.budwk.app.base.constant.RoleConstant;
|
||||||
import com.budwk.app.base.exception.BaseException;
|
import com.budwk.app.base.exception.BaseException;
|
||||||
import com.budwk.app.base.page.Pagination;
|
import com.budwk.app.base.page.Pagination;
|
||||||
import com.budwk.app.base.param.PageForm;
|
import com.budwk.app.base.param.PageForm;
|
||||||
import com.budwk.app.base.service.impl.BaseServiceImpl;
|
import com.budwk.app.base.service.impl.BaseServiceImpl;
|
||||||
import com.budwk.app.sys.views.View_user;
|
import com.budwk.app.sys.views.View_user;
|
||||||
|
import com.budwk.app.web.commons.auth.utils.AuthUtil;
|
||||||
import com.budwk.app.web.commons.auth.utils.SecurityUtil;
|
import com.budwk.app.web.commons.auth.utils.SecurityUtil;
|
||||||
import com.budwk.app.zhgh.activity.basic.models.ActivityUserScope;
|
import com.budwk.app.zhgh.activity.basic.models.ActivityUserScope;
|
||||||
import com.budwk.app.zhgh.activity.culture.models.ActivityTissue;
|
import com.budwk.app.zhgh.activity.culture.models.ActivityTissue;
|
||||||
@@ -74,12 +76,20 @@ public class ActivityCultureApplyUserServiceImpl extends BaseServiceImpl<Activit
|
|||||||
cnd.andEX("tissue.activity_type", "=", activity_type);
|
cnd.andEX("tissue.activity_type", "=", activity_type);
|
||||||
cnd.and("tissue.isEnrollSystem", "=", 1);
|
cnd.and("tissue.isEnrollSystem", "=", 1);
|
||||||
cnd.andEX("tissue.projectTypeCode", "!=", 50004);
|
cnd.andEX("tissue.projectTypeCode", "!=", 50004);
|
||||||
cnd.andEX("tissue.signUpMethod", "in", List.of(1, 2, 3));
|
|
||||||
if (StrUtil.isNotBlank(page.getPageOrderName()) && StrUtil.isNotBlank(page.getPageOrderBy())) {
|
if (StrUtil.isNotBlank(page.getPageOrderName()) && StrUtil.isNotBlank(page.getPageOrderBy())) {
|
||||||
cnd.orderBy(page.getPageOrderName(), page.getPageOrderBy().equalsIgnoreCase("ascending") ? "ASC" : "DESC");
|
cnd.orderBy(page.getPageOrderName(), page.getPageOrderBy().equalsIgnoreCase("ascending") ? "ASC" : "DESC");
|
||||||
} else {
|
} else {
|
||||||
cnd.desc("tissue.startTime");
|
cnd.desc("tissue.startTime");
|
||||||
}
|
}
|
||||||
|
if (AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(),
|
||||||
|
RoleConstant.SCHOOL_UNION_ADMIN.name(),
|
||||||
|
RoleConstant.BRANCH_UNION_WENTI_SPORTS.name(),
|
||||||
|
RoleConstant.BRANCH_UNION_CHAIRMAN.name())) {
|
||||||
|
cnd.andEX("tissue.signUpMethod", "in", List.of(1, 2, 3));
|
||||||
|
} else {
|
||||||
|
cnd.andEX("tissue.signUpMethod", "in", List.of(1, 2));
|
||||||
|
}
|
||||||
|
|
||||||
if (state == 1) {
|
if (state == 1) {
|
||||||
|
|
||||||
|
|||||||
+10
-2
@@ -76,10 +76,18 @@ public class MemberDataManageController {
|
|||||||
@SaCheckPermission("member.info.dataManage")
|
@SaCheckPermission("member.info.dataManage")
|
||||||
@SLog(tag = "会员管理-数据管理工具", msg = "根据身份证号设置出生日期")
|
@SLog(tag = "会员管理-数据管理工具", msg = "根据身份证号设置出生日期")
|
||||||
public Object setBirthdayByIdCard() {
|
public Object setBirthdayByIdCard() {
|
||||||
|
int count = dao.count(Sys_user.class, Cnd.where("idCard", "is not", null));
|
||||||
|
if (count == 0) {
|
||||||
|
return Result.error("系统里暂时没有身份证");
|
||||||
|
}
|
||||||
Sql sql = Sqls.create("""
|
Sql sql = Sqls.create("""
|
||||||
UPDATE sys_user
|
UPDATE sys_user
|
||||||
SET birthday = STR_TO_DATE(SUBSTRING(idcard, 7, 8), '%Y%m%d')
|
SET birthday = STR_TO_DATE(SUBSTRING(idCard, 7, 8), '%Y%m%d')
|
||||||
WHERE (birthday IS NULL OR birthday = '') AND length(idcard)=18
|
WHERE birthday IS NULL
|
||||||
|
AND LENGTH(idCard) = 18
|
||||||
|
AND idCard IS NOT NULL
|
||||||
|
AND idCard != ''
|
||||||
|
AND SUBSTRING(idCard, 7, 8) REGEXP '^(19|20)[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[12][0-9]|3[01])$';
|
||||||
""");
|
""");
|
||||||
memberInfoService.execute(sql);
|
memberInfoService.execute(sql);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ public class SingleTeacherPageForm extends PageForm {
|
|||||||
private String sex;
|
private String sex;
|
||||||
|
|
||||||
@ApiModelProperty("婚姻状况")
|
@ApiModelProperty("婚姻状况")
|
||||||
private String maritalStatus;
|
private String marriage;
|
||||||
|
|
||||||
@ApiModelProperty("学历")
|
@ApiModelProperty("学历")
|
||||||
private String education;
|
private String education;
|
||||||
|
|||||||
+2
-2
@@ -36,7 +36,7 @@ public class SingleTeacherServiceImpl extends BaseServiceImpl<SingleTeacher> imp
|
|||||||
Sql sql = buildSql(pageForm);
|
Sql sql = buildSql(pageForm);
|
||||||
List<NutMap> list = listMap(sql);
|
List<NutMap> list = listMap(sql);
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
list.get(i).put("序号", (i + 1));
|
list.get(i).put("index", (i + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ExcelExportEntity> entities = new ArrayList<>();
|
List<ExcelExportEntity> entities = new ArrayList<>();
|
||||||
@@ -100,7 +100,7 @@ public class SingleTeacherServiceImpl extends BaseServiceImpl<SingleTeacher> imp
|
|||||||
cnd.andEX("u.personType", "=", pageForm.getPersonType());
|
cnd.andEX("u.personType", "=", pageForm.getPersonType());
|
||||||
cnd.andEX("u.userState", "=", pageForm.getUserState());
|
cnd.andEX("u.userState", "=", pageForm.getUserState());
|
||||||
cnd.andEX("st.education", "=", pageForm.getEducation());
|
cnd.andEX("st.education", "=", pageForm.getEducation());
|
||||||
cnd.andEX("u.maritalStatus", "=", pageForm.getMaritalStatus());
|
cnd.andEX("u.marriage", "=", pageForm.getMarriage());
|
||||||
|
|
||||||
if (StrUtil.isAllNotBlank(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) {
|
if (StrUtil.isAllNotBlank(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) {
|
||||||
cnd.orderBy(pageForm.getPageOrderName(), PageUtil.getOrder(pageForm.getPageOrderBy()));
|
cnd.orderBy(pageForm.getPageOrderName(), PageUtil.getOrder(pageForm.getPageOrderBy()));
|
||||||
|
|||||||
@@ -119,6 +119,11 @@ const act = {
|
|||||||
this.$message.warning("管理员未配置活动链接")
|
this.$message.warning("管理员未配置活动链接")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (act.url === "/platform/activity/apply"
|
||||||
|
&& !this.$auth.hasRoleOr(["SYSADMIN", "SCHOOL_UNION_ADMIN", "BRANCH_UNION_CHAIRMAN", "BRANCH_UNION_WENTI_SPORTS"])) {
|
||||||
|
return this.$message.warning("PC端暂未开放报名,请前往移动端报名!")
|
||||||
|
|
||||||
|
}
|
||||||
window.open(act.url)
|
window.open(act.url)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ layout("/layouts/platform.html"){
|
|||||||
</div>
|
</div>
|
||||||
</search-item>
|
</search-item>
|
||||||
<search-item label="婚姻状况">
|
<search-item label="婚姻状况">
|
||||||
<el-select v-model="pageForm.maritalStatus" placeholder="请选择婚姻状况" clearable style="width: 100%">
|
<el-select v-model="pageForm.marriage" placeholder="请选择婚姻状况" clearable style="width: 100%">
|
||||||
<el-option label="未婚" value="未婚"></el-option>
|
<el-option label="未婚" value="未婚"></el-option>
|
||||||
<el-option label="已婚" value="已婚"></el-option>
|
<el-option label="已婚" value="已婚"></el-option>
|
||||||
<el-option label="离异" value="离异"></el-option>
|
<el-option label="离异" value="离异"></el-option>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ layout("/layouts/platform_h5.html"){
|
|||||||
<van-dropdown-menu>
|
<van-dropdown-menu>
|
||||||
<year-van-dropdown-item :num="5" @change="doSearch" v-model="pageForm.year"></year-van-dropdown-item>
|
<year-van-dropdown-item :num="5" @change="doSearch" v-model="pageForm.year"></year-van-dropdown-item>
|
||||||
<van-dropdown-item :options="stateList" @change="doSearch" v-model="pageForm.state"></van-dropdown-item>
|
<van-dropdown-item :options="stateList" @change="doSearch" v-model="pageForm.state"></van-dropdown-item>
|
||||||
<van-dropdown-item :options="isEnrolledOptions" @change="doSearch" v-model="pageForm.isEnrolledText"></van-dropdown-item>
|
<van-dropdown-item :options="isEnrolledOptions" @change="doSearch" v-model="pageForm.isEnrolled"></van-dropdown-item>
|
||||||
<van-dropdown-item :options="activityTypeOptions" @change="doSearch" v-model="pageForm.activity_type"></van-dropdown-item>
|
<van-dropdown-item :options="activityTypeOptions" @change="doSearch" v-model="pageForm.activity_type"></van-dropdown-item>
|
||||||
</van-dropdown-menu>
|
</van-dropdown-menu>
|
||||||
</van-sticky>
|
</van-sticky>
|
||||||
@@ -94,7 +94,7 @@ layout("/layouts/platform_h5.html"){
|
|||||||
refreshing: false,
|
refreshing: false,
|
||||||
pageForm: {
|
pageForm: {
|
||||||
state: 2,
|
state: 2,
|
||||||
isEnrolledText: 0,
|
isEnrolled: 0,
|
||||||
year: new Date().getFullYear(),
|
year: new Date().getFullYear(),
|
||||||
pageNumber: 1,
|
pageNumber: 1,
|
||||||
pageSize: 5,
|
pageSize: 5,
|
||||||
|
|||||||
Reference in New Issue
Block a user