Merge branch 'main' of https://dd3skj.picp.vip/JyuHsin/zhgh_jshvc
This commit is contained in:
@@ -391,11 +391,11 @@ public class SysMenuController {
|
|||||||
@At
|
@At
|
||||||
@Ok("json")
|
@Ok("json")
|
||||||
@SaCheckPermission("sys.manager.menu.edit")
|
@SaCheckPermission("sys.manager.menu.edit")
|
||||||
public Object sortDo(@Param("ids") String ids, HttpServletRequest req) {
|
public Object sortDo(@Param("ids") String ids, @Param("platform") String platform, HttpServletRequest req) {
|
||||||
try {
|
try {
|
||||||
String[] menuIds = StringUtils.split(ids, ",");
|
String[] menuIds = StringUtils.split(ids, ",");
|
||||||
int i = 0;
|
int i = 0;
|
||||||
sysMenuService.execute(Sqls.create("update sys_menu set location=0"));
|
sysMenuService.execute(Sqls.create("update sys_menu set location=0 where platform = '%s'".formatted(platform)));
|
||||||
for (String s : menuIds) {
|
for (String s : menuIds) {
|
||||||
if (!Strings.isBlank(s)) {
|
if (!Strings.isBlank(s)) {
|
||||||
sysMenuService.update(org.nutz.dao.Chain.make("location", i), Cnd.where("id", "=", s));
|
sysMenuService.update(org.nutz.dao.Chain.make("location", i), Cnd.where("id", "=", s));
|
||||||
|
|||||||
+3
-2
@@ -79,8 +79,8 @@ public class SysClubInfoManageServiceImpl extends BaseServiceImpl<ClubCommonPage
|
|||||||
WHERE
|
WHERE
|
||||||
scu.clubId = c.id
|
scu.clubId = c.id
|
||||||
) currentNum,
|
) currentNum,
|
||||||
presidentUser.username AS clubLeader,
|
GROUP_CONCAT(DISTINCT presidentUser.username) AS clubLeader,
|
||||||
secretaryUser.username AS clubSecretary
|
GROUP_CONCAT(secretaryUser.username) AS clubSecretary
|
||||||
FROM
|
FROM
|
||||||
sys_club c
|
sys_club c
|
||||||
LEFT JOIN club_user presidentCu on presidentCu.clubId = c.id AND JSON_CONTAINS(presidentCu.roleCode, '"CLUB_PRESIDENT"')
|
LEFT JOIN club_user presidentCu on presidentCu.clubId = c.id AND JSON_CONTAINS(presidentCu.roleCode, '"CLUB_PRESIDENT"')
|
||||||
@@ -105,6 +105,7 @@ public class SysClubInfoManageServiceImpl extends BaseServiceImpl<ClubCommonPage
|
|||||||
|
|
||||||
cnd.and("c.id", "in", clubIdList);
|
cnd.and("c.id", "in", clubIdList);
|
||||||
}
|
}
|
||||||
|
cnd.groupBy("c.id");
|
||||||
cnd.asc("c.clubCode");
|
cnd.asc("c.clubCode");
|
||||||
sql.setCondition(cnd);
|
sql.setCondition(cnd);
|
||||||
return listPageVO(pageForm, sql, ClubCommonPageVo.class);
|
return listPageVO(pageForm, sql, ClubCommonPageVo.class);
|
||||||
|
|||||||
+2
-2
@@ -491,14 +491,14 @@ public class TeacherCongressDelegateManageController {
|
|||||||
for (Teacher_congress_delegate delegate : delegateList) {
|
for (Teacher_congress_delegate delegate : delegateList) {
|
||||||
Teacher_congress_delegation_unit delegation_unit = dao.fetch(Teacher_congress_delegation_unit.class,
|
Teacher_congress_delegation_unit delegation_unit = dao.fetch(Teacher_congress_delegation_unit.class,
|
||||||
Cnd.where(Teacher_congress_delegation_unit::getUnitId, "=", delegate.getUnitId())
|
Cnd.where(Teacher_congress_delegation_unit::getUnitId, "=", delegate.getUnitId())
|
||||||
.and(Teacher_congress_delegation_union::getSessionId, "=", sessionId));
|
.and(Teacher_congress_delegation_unit::getSessionId, "=", sessionId));
|
||||||
if (ObjectUtil.isNotEmpty(delegation_unit)) {
|
if (ObjectUtil.isNotEmpty(delegation_unit)) {
|
||||||
delegate.setDelegationId(delegation_unit.getDelegationId());
|
delegate.setDelegationId(delegation_unit.getDelegationId());
|
||||||
dao.update(delegate);
|
dao.update(delegate);
|
||||||
Sys_user_role userRole = new Sys_user_role();
|
Sys_user_role userRole = new Sys_user_role();
|
||||||
userRole.setTcDelegationId(delegation_unit.getDelegationId());
|
userRole.setTcDelegationId(delegation_unit.getDelegationId());
|
||||||
userRole.setUserId(delegate.getUserId());
|
userRole.setUserId(delegate.getUserId());
|
||||||
userRole.setTcSessionId(delegate.getSessionId());
|
userRole.setTcSessionId(sessionId);
|
||||||
Sys_role sys_role = dao.fetch(Sys_role.class, Cnd.where(Sys_role::getCode, "=", RoleConstant.TEACHER_CONGRESS_DELEGATE_FORMAL.name()));
|
Sys_role sys_role = dao.fetch(Sys_role.class, Cnd.where(Sys_role::getCode, "=", RoleConstant.TEACHER_CONGRESS_DELEGATE_FORMAL.name()));
|
||||||
|
|
||||||
if (sys_role.getId().equals(delegate.getRoleId())) {
|
if (sys_role.getId().equals(delegate.getRoleId())) {
|
||||||
|
|||||||
@@ -20,11 +20,13 @@ const SYS_MENU_SORT_COMPONENT = {
|
|||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: "children",
|
children: "children",
|
||||||
label: "label"
|
label: "label"
|
||||||
}
|
},
|
||||||
|
platform: 'PC'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onOpen(platform) {
|
onOpen(platform) {
|
||||||
|
this.platform = platform
|
||||||
this.sortDialogVisible = true
|
this.sortDialogVisible = true
|
||||||
this.$axios.post("/platform/sys/menu/menuAll", { platform }).then((res) => {
|
this.$axios.post("/platform/sys/menu/menuAll", { platform }).then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -48,7 +50,7 @@ const SYS_MENU_SORT_COMPONENT = {
|
|||||||
})
|
})
|
||||||
this.getTreeIds(ids, this.sortMenuData)
|
this.getTreeIds(ids, this.sortMenuData)
|
||||||
this.$axios
|
this.$axios
|
||||||
.post("/platform/sys/menu/sortDo", { ids: ids.toString() })
|
.post("/platform/sys/menu/sortDo", { ids: ids.toString(), platform: this.platform })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user