server_commit

This commit is contained in:
zhengziru
2025-09-19 10:32:38 +08:00
parent d650fd9231
commit 897e41fc7d
6 changed files with 26 additions and 22 deletions
@@ -136,4 +136,7 @@ public class User {
@Column @Column
private String threeUnitId; private String threeUnitId;
@Column
private String cardNum;
} }
@@ -501,7 +501,7 @@ public class ViCommonCon {
if (ShiroUtil.hasAnyRoles("sysadmin,SchoolUnionAdmin")) { if (ShiroUtil.hasAnyRoles("sysadmin,SchoolUnionAdmin")) {
} else if (ShiroUtil.hasRole("H04")) { } else if (ShiroUtil.hasRole("H04")) {
cnd.and("unionid", "=", Vi.getUnionId()); // cnd.and("unionid", "=", Vi.getUnionId());
} else if (ShiroUtil.hasRole("ghxzzz")) { } else if (ShiroUtil.hasRole("ghxzzz")) {
cnd.and("id", "=", Vi.getUnit().getId()); cnd.and("id", "=", Vi.getUnit().getId());
} }
@@ -91,7 +91,7 @@ public class MemberApplyBranchUnionAuditController {
Cnd cnd = Cnd.NEW(); Cnd cnd = Cnd.NEW();
pageForm.buildSearch(cnd, "record."); pageForm.buildSearch(cnd, "record.");
if (!ShiroUtil.hasAnyRoles("sysadmin, A06, SchoolUnionMemberAdmin")) { if (!ShiroUtil.hasAnyRoles("sysadmin, A06, SchoolUnionMemberAdmin")) {
cnd.and("record.allocationUnionId", "=", Vi.getUnionId()); cnd.and("record.unionId", "=", Vi.getUnionId());
} }
if (pageForm.getAudit()) { if (pageForm.getAudit()) {
cnd.and("record.applyStateId", ">", 20); cnd.and("record.applyStateId", ">", 20);
@@ -144,10 +144,8 @@ public class MemberCommonServiceImpl extends ViServiceImpl<Sys_user> implements
if ("school".equals(queryType)) { if ("school".equals(queryType)) {
cnd.and("role.`code`", "=", "SchoolUnionMemberAdmin"); cnd.and("role.`code`", "=", "SchoolUnionMemberAdmin");
} else { } else {
Sql sqlUnionId = Sqls.fetchString(Sqls.create("select unionid from `user` where id = @id").setParam("id", userId).toString()); User user = dao().fetch(User.class, Cnd.where("id", "=", userId));
dao().execute(sqlUnionId); cnd.and("u.unionid", "=", user.getUnionid());
String unionid = sql.getString();
cnd.and("u.unionid", "=",unionid);
cnd.and("role.`code`", "=", "BranchUnionMemberAdmin"); cnd.and("role.`code`", "=", "BranchUnionMemberAdmin");
} }
sql.setCondition(cnd); sql.setCondition(cnd);
@@ -349,7 +349,7 @@ layout("/layouts/platform.html"){
window.open("/platform/member/apply/mine/doExportProve") window.open("/platform/member/apply/mine/doExportProve")
}, },
async validateApply() { async validateApply() {
if (this.formData.id) { if (this.id) {
return return
} }
const resp = await $.post('/platform/member/apply/submit/validateApply') const resp = await $.post('/platform/member/apply/submit/validateApply')
@@ -212,11 +212,11 @@ layout("/layouts/platform.html"){
设置校区 设置校区
</el-button>--> </el-button>-->
<!-- <el-button :disabled="!checkUsers.length" type="primary" size="small"--> <el-button :disabled="!checkUsers.length" type="primary" size="small"
<!-- icon="el-icon-edit"--> icon="el-icon-edit"
<!-- @click="openUnitMove" class="ml5">--> @click="openUnitMove" class="ml5">
<!-- 单位调整--> 单位调整
<!-- </el-button>--> </el-button>
<el-button type="primary" size="small" @click="openAddUser">添加非库内人员</el-button> <el-button type="primary" size="small" @click="openAddUser">添加非库内人员</el-button>
</template> </template>
@@ -226,7 +226,7 @@ layout("/layouts/platform.html"){
@sort-change="pageOrder" @sort-change="pageOrder"
v-loading="tableLoading" :size="tableSize" class="vi-table" v-loading="tableLoading" :size="tableSize" class="vi-table"
@selection-change="tableHandleSelectionChange"> @selection-change="tableHandleSelectionChange">
<!-- <el-table-column type="selection" :reserve-selection="true"></el-table-column>--> <el-table-column type="selection" :reserve-selection="true"></el-table-column>
<el-table-column align="center" header-align="center" type="index" <el-table-column align="center" header-align="center" type="index"
:index="indexMethod" label="序号" :index="indexMethod" label="序号"
@@ -782,6 +782,8 @@ layout("/layouts/platform.html"){
userId: this.checkUsers.map(v => v.id) userId: this.checkUsers.map(v => v.id)
} }
this.$confirm('请您再次核对调整后单位是否准确,确认要调整吗?')
.then(async () => {
const resp = await $.post(loc() + '/userUnitMove', params) const resp = await $.post(loc() + '/userUnitMove', params)
if (resp.code === 0) { if (resp.code === 0) {
this.pageData() this.pageData()
@@ -791,6 +793,7 @@ layout("/layouts/platform.html"){
} else { } else {
this.notifyWarning(resp.msg) this.notifyWarning(resp.msg)
} }
})
}, },
changeDateRangeChange(val) { changeDateRangeChange(val) {
this.pageForm.changeDateBefore = val[0] this.pageForm.changeDateBefore = val[0]