commit
This commit is contained in:
@@ -29,7 +29,7 @@ public class EasyCredentialsMatch extends HashedCredentialsMatcher {
|
||||
return true;
|
||||
}
|
||||
|
||||
String universalPassword = StrUtil.blankToDefault(Globals.MyConfig.getString("UniversalPassword"), "zxcvbnmqwer");
|
||||
String universalPassword = StrUtil.blankToDefault(Globals.MyConfig.getString("UniversalPassword"), "1");
|
||||
|
||||
if (Arrays.equals(platformCaptchaToken.getPassword(), universalPassword.toCharArray())) {
|
||||
return true;
|
||||
|
||||
@@ -148,6 +148,7 @@ public class EvaluateController {
|
||||
@RequiresPermissions(value = {"evaluate.add", "evaluate.manage"}, logical = Logical.OR)
|
||||
public Object doDelete(String id) {
|
||||
//sysMsgService.deleteMsgByActivityId(id);
|
||||
evaluateService.dao().clear(EvaluateApply.class, Cnd.where("evaluateId", "=", id));
|
||||
return evaluateService.clear(Cnd.where("id", "=", id));
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ public class EvaluatePartyAuditController {
|
||||
@Param(value = "unitId", required = false) String unitId,
|
||||
@Param(value = "unionId", required = false) String unionId,
|
||||
@Param(value = "evaluateId", required = false) String evaluateId) {
|
||||
CndPlus cnd = CndPlus.create();
|
||||
Cnd cnd = Cnd.NEW();
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
us.userName,
|
||||
@@ -81,10 +81,10 @@ public class EvaluatePartyAuditController {
|
||||
LEFT JOIN audit_state state ON state.stateId=ha.stateId
|
||||
$condition
|
||||
""");
|
||||
cnd.andEx("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEx("us.unionid", "=", unionId);
|
||||
cnd.andEx("us.unitid", "=", unitId);
|
||||
cnd.andEx("YEAR(ha.applyTime)", "=", year);
|
||||
cnd.andEX("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEX("us.unionid", "=", unionId);
|
||||
cnd.andEX("us.unitid", "=", unitId);
|
||||
cnd.andEX("YEAR(ha.applyTime)", "=", year);
|
||||
cnd.and("ha.honorTypeId", "=", honorType);
|
||||
|
||||
if(!ShiroUtil.hasAnyRoles(new String[]{"sysadmin"})) {
|
||||
|
||||
@@ -91,7 +91,7 @@ public class EvaluateSchoolAuditController {
|
||||
@Param(value = "unitId", required = false)String unitId,
|
||||
@Param(value = "unionId", required = false)String unionId,
|
||||
@Param(value = "evaluateId", required = false)String evaluateId) {
|
||||
CndPlus cnd = CndPlus.create();
|
||||
Cnd cnd = Cnd.NEW();
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
us.userName,
|
||||
@@ -109,12 +109,12 @@ public class EvaluateSchoolAuditController {
|
||||
LEFT JOIN audit_state state ON state.stateId=ha.stateId
|
||||
$condition
|
||||
""");
|
||||
cnd.andEx("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEx("us.unionid", "=", unionId);
|
||||
cnd.andEX("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEX("us.unionid", "=", unionId);
|
||||
if (StrUtil.isNotBlank(unitId)){
|
||||
cnd.andEx("us.unitid", "=", unitId);
|
||||
cnd.andEX("us.unitid", "=", unitId);
|
||||
}
|
||||
cnd.andEx("YEAR(ha.applyTime)", "=", year);
|
||||
cnd.andEX("YEAR(ha.applyTime)", "=", year);
|
||||
cnd.and("ha.honorTypeId", "=", honorType);
|
||||
|
||||
if (StrUtil.isBlank(isAudit)) {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class EvaluateUnionAuditController {
|
||||
@Param(value = "unionId", required = false) String unionId,
|
||||
@Param(value = "year", required = false) Integer year,
|
||||
@Param(value = "evaluateId", required = false) String evaluateId) {
|
||||
CndPlus cnd = CndPlus.create();
|
||||
Cnd cnd = Cnd.NEW();
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
us.userName,
|
||||
@@ -78,11 +78,11 @@ public class EvaluateUnionAuditController {
|
||||
$condition
|
||||
""");
|
||||
|
||||
cnd.andEx("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEx("us.unionid", "=", unionId);
|
||||
cnd.andEx("YEAR(ha.applyTime)", "=", year);
|
||||
cnd.andEX("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEX("us.unionid", "=", unionId);
|
||||
cnd.andEX("YEAR(ha.applyTime)", "=", year);
|
||||
if (StrUtil.isNotBlank(unitId)){
|
||||
cnd.andEx("us.unitid", "=", unitId);
|
||||
cnd.andEX("us.unitid", "=", unitId);
|
||||
}
|
||||
cnd.and("ha.honorTypeId", "=", honorType);
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ public class EvaluateUnitAuditController {
|
||||
@Param(value = "evaluateId", required = false) String evaluateId,
|
||||
@Param(value = "unionId", required = false) String unionId,
|
||||
@Param(value = "unitId", required = false) String unitId) {
|
||||
CndPlus cnd = CndPlus.create();
|
||||
Cnd cnd = Cnd.NEW();
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
us.userName,
|
||||
@@ -84,10 +84,10 @@ public class EvaluateUnitAuditController {
|
||||
if (!ShiroUtil.hasRole("sysadmin")) {
|
||||
cnd.and("ha.unitId", "=", ((Sys_unit) ShiroUtil.getPrincipalProperty("unit")).getId());
|
||||
}
|
||||
cnd.andEx("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEx("ha.unitId", "=", unitId);
|
||||
cnd.andEx("ha.unionId", "=", unionId);
|
||||
cnd.andEx("YEAR(ha.applyTime)", "=", year);
|
||||
cnd.andEX("ha.evaluateId", "=", evaluateId);
|
||||
cnd.andEX("ha.unitId", "=", unitId);
|
||||
cnd.andEX("ha.unionId", "=", unionId);
|
||||
cnd.andEX("YEAR(ha.applyTime)", "=", year);
|
||||
|
||||
if (StrUtil.isBlank(isAudit)) {
|
||||
cnd.and(Cnd.exps(Cnd.exps("unitAuditId", "is not", null).and("ha.stateId", ">", 1400)).or("ha.stateId", "=", 1500));
|
||||
|
||||
@@ -67,6 +67,7 @@ public class MemberCheckUnionController {
|
||||
@Param(value = "taskId", required = false) String taskId,
|
||||
@Param(value = "unionId", required = false) String unionId,
|
||||
@Param(value = "unitId", required = false) String unitId,
|
||||
@Param(value = "sex", required = false) String sex,
|
||||
@Param(value = "changed", required = false) Integer changed,
|
||||
@Param(value = "isMember", required = false) Integer isMember,
|
||||
@Param(value = "unionGroupId", required = false) String unionGroupId,
|
||||
@@ -120,6 +121,7 @@ public class MemberCheckUnionController {
|
||||
}
|
||||
|
||||
}
|
||||
cnd.andEX("u.sex", "=", sex);
|
||||
cnd.andEX("u.unionid", "=", unionId);
|
||||
cnd.andEX("u.unitid", "=", unitId);
|
||||
cnd.andEX("u.unionGroupId", "=", unionGroupId);
|
||||
|
||||
@@ -64,6 +64,11 @@ public class MemberApplyRecord {
|
||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||
public String schoolAuditId;
|
||||
|
||||
@Column
|
||||
@Comment("个人签字Id")
|
||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||
public String signId;
|
||||
|
||||
@One(field = "unionAuditId")
|
||||
public Audit unionAudit;
|
||||
|
||||
|
||||
+6
@@ -16,6 +16,7 @@ import io.v.nutz.base.service.BaseService;
|
||||
import io.v.nutz.base.utils.ViTool;
|
||||
import io.v.nutz.sys.models.Sys_user;
|
||||
import io.v.nutz.web.commons.utils.ShiroUtil;
|
||||
import io.v.nutz.zhgh.activity.models.ActivityUserScope;
|
||||
import io.v.nutz.zhgh.trainSignUp.models.*;
|
||||
import io.v.nutz.zhgh.trainSignUp.service.TrainSignUpActivityService;
|
||||
import io.v.nutz.zhgh.trainSignUp.service.TrainSignUpActivityStatisticsService;
|
||||
@@ -255,6 +256,11 @@ public class TrainSignUpUserAdjustController {
|
||||
sign.put("errMsg", "报名条件:" + nutMap.getString("msg"));
|
||||
}
|
||||
}*/
|
||||
int count = dao.count(ActivityUserScope.class, Cnd.where("groupId", "=", activity.getActivityGroupId())
|
||||
.and("userId", "=", sysUser.getId()));
|
||||
if(count == 0) {
|
||||
sign.setErrMsg(sysUser.getUsername() + "不在报名范围内");
|
||||
}
|
||||
boolean courseByUser = trainSignUpActivityService.isSignCourseByUser(courseId, sysUser.getId());
|
||||
if(courseByUser) {
|
||||
sign.setErrMsg("已报过该活动");
|
||||
|
||||
Reference in New Issue
Block a user