bug整改

This commit is contained in:
=
2025-09-15 15:43:53 +08:00
parent 11b90741be
commit b21a619991
13 changed files with 211 additions and 41 deletions
@@ -52,14 +52,18 @@ public class OutlayManageUnionController {
@At
@ApiOperation("分页查询")
@SaCheckPermission("outlay.outlayManage.union.manage")
public Result pageData(PageForm pageForm, Integer year) {
public Result pageData(PageForm pageForm,
Integer year,
String unionId) {
Cnd cnd = Cnd.NEW();
Sql sql = Sqls.create("""
SELECT * FROM `outlay_manage_union` $condition
""");
cnd.andEX("year", "=", year);
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
cnd.andEX("unionId", "=", SecurityUtil.getUnionId());
if (AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
cnd.andEX("unionId", "=", unionId);
} else {
cnd.and("unionId", "=", SecurityUtil.getUnionId());
}
cnd.asc("unionCode");
sql.setCondition(cnd);
@@ -105,8 +105,11 @@ public class UnionReimburseFundSourceInterceptor implements FlowInterceptor {
}
}
else {
// 处理未知的经费来源类型
throw new BaseException("不支持的经费来源类型: " + reimburseFundSource);
if (reimburseFundSource == null) {
throw new BaseException("经费来源类型不能为空");
} else {
throw new BaseException("不支持的经费来源类型: " + reimburseFundSource);
}
}
}