修复字段错误

This commit is contained in:
zhouhao
2017-06-08 09:14:10 +08:00
parent 5a24e04fd2
commit 6bf4485f29
3 changed files with 3 additions and 13 deletions

View File

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

View File

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

View File

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