Jelajahi Sumber

修复字段错误

zhouhao 8 tahun lalu
induk
melakukan
6bf4485f29

+ 0 - 10
hsweb-commons/hsweb-commons-controller/src/main/java/org/hswebframework/web/controller/SimpleGenericEntityController.java

@@ -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;
 
 /**
  * 通用实体的增删改查控制器

+ 1 - 1
hsweb-system/hsweb-system-authorization/hsweb-system-authorization-service/hsweb-system-authorization-service-simple/src/main/java/org/hswebframework/web/service/authorization/simple/SimpleAuthorizationSettingService.java

@@ -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();
         //权限

+ 2 - 2
hsweb-system/hsweb-system-authorization/hsweb-system-authorization-service/hsweb-system-authorization-service-simple/src/main/java/org/hswebframework/web/service/authorization/simple/SimpleMenuGroupService.java

@@ -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();
     }