mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-05 12:23:29 +08:00
修复字段错误
This commit is contained in:
@@ -18,19 +18,9 @@
|
||||
|
||||
package org.hswebframework.web.controller;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import org.hswebframework.web.authorization.Permission;
|
||||
import org.hswebframework.web.authorization.annotation.Authorize;
|
||||
import org.hswebframework.web.commons.entity.Entity;
|
||||
import org.hswebframework.web.commons.entity.GenericEntity;
|
||||
import org.hswebframework.web.controller.message.ResponseMessage;
|
||||
import org.hswebframework.web.logging.AccessLogger;
|
||||
import org.hswebframework.web.service.CrudService;
|
||||
import org.springframework.web.bind.annotation.PatchMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* 通用实体的增删改查控制器
|
||||
|
||||
@@ -248,7 +248,7 @@ public class SimpleAuthorizationSettingService extends GenericEntityService<Auth
|
||||
// where status=1 and setting_id in (?,?,?)
|
||||
List<AuthorizationSettingDetailEntity> detailList = DefaultDSLQueryService
|
||||
.createQuery(authorizationSettingDetailDao)
|
||||
.where(AuthorizationSettingDetailEntity.state, STATE_OK)
|
||||
.where(AuthorizationSettingDetailEntity.status, STATE_OK)
|
||||
.and().in(AuthorizationSettingDetailEntity.settingId, settingIdList)
|
||||
.list();
|
||||
//权限
|
||||
|
||||
@@ -132,7 +132,7 @@ public class SimpleMenuGroupService
|
||||
public void enable(String id) {
|
||||
tryValidateProperty(StringUtils.hasLength(id), MenuGroupEntity.id, "{id_is_null}");
|
||||
createUpdate()
|
||||
.set(MenuGroupEntity.state, 1)
|
||||
.set(MenuGroupEntity.status, 1)
|
||||
.where(MenuGroupEntity.id, id)
|
||||
.exec();
|
||||
}
|
||||
@@ -143,7 +143,7 @@ public class SimpleMenuGroupService
|
||||
tryValidateProperty(StringUtils.hasLength(id), MenuGroupEntity.id, "{id_is_null}");
|
||||
DefaultDSLUpdateService
|
||||
.createUpdate(getDao())
|
||||
.set(MenuGroupEntity.state, 0)
|
||||
.set(MenuGroupEntity.status, 0)
|
||||
.where(MenuGroupEntity.id, id)
|
||||
.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user