From 17da803b43c95f4ba2b9043ee2ee501251487c40 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Sat, 21 Oct 2017 17:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC=E6=8E=92?= =?UTF-8?q?=E5=BA=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cms/admin/controller/manage/CmsSettingController.java | 3 ++- .../server/controller/manage/UpmsPermissionController.java | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/zheng-cms/zheng-cms-admin/src/main/java/com/zheng/cms/admin/controller/manage/CmsSettingController.java b/zheng-cms/zheng-cms-admin/src/main/java/com/zheng/cms/admin/controller/manage/CmsSettingController.java index 0ecac637..d4dd86bf 100644 --- a/zheng-cms/zheng-cms-admin/src/main/java/com/zheng/cms/admin/controller/manage/CmsSettingController.java +++ b/zheng-cms/zheng-cms-admin/src/main/java/com/zheng/cms/admin/controller/manage/CmsSettingController.java @@ -9,6 +9,7 @@ import com.zheng.cms.dao.model.CmsSetting; import com.zheng.cms.dao.model.CmsSettingExample; import com.zheng.cms.rpc.api.CmsSettingService; import com.zheng.common.base.BaseController; +import com.zheng.common.util.StringUtil; import com.zheng.common.validator.LengthValidator; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -57,7 +58,7 @@ public class CmsSettingController extends BaseController { @RequestParam(required = false, value = "order") String order) { CmsSettingExample cmsSettingExample = new CmsSettingExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { - cmsSettingExample.setOrderByClause(sort + " " + order); + cmsSettingExample.setOrderByClause(StringUtil.humpToLine(sort) + " " + order); } List rows = cmsSettingService.selectByExampleForOffsetPage(cmsSettingExample, offset, limit); long total = cmsSettingService.countByExample(cmsSettingExample); diff --git a/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsPermissionController.java b/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsPermissionController.java index 3fffe8a3..74e6ab03 100644 --- a/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsPermissionController.java +++ b/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsPermissionController.java @@ -1,7 +1,5 @@ package com.zheng.upms.server.controller.manage; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; import com.baidu.unbiz.fluentvalidator.ComplexResult; import com.baidu.unbiz.fluentvalidator.FluentValidator; import com.baidu.unbiz.fluentvalidator.ResultCollectors; @@ -9,7 +7,10 @@ import com.zheng.common.base.BaseController; import com.zheng.common.validator.LengthValidator; import com.zheng.upms.common.constant.UpmsResult; import com.zheng.upms.common.constant.UpmsResultConstant; -import com.zheng.upms.dao.model.*; +import com.zheng.upms.dao.model.UpmsPermission; +import com.zheng.upms.dao.model.UpmsPermissionExample; +import com.zheng.upms.dao.model.UpmsSystem; +import com.zheng.upms.dao.model.UpmsSystemExample; import com.zheng.upms.rpc.api.UpmsApiService; import com.zheng.upms.rpc.api.UpmsPermissionService; import com.zheng.upms.rpc.api.UpmsSystemService;