From 693a33f660891c98b8b95490d020c428c5da9871 Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期一, 19 九月 2022 21:46:32 +0800 Subject: [PATCH] 完善功能:前端可以配置多排序参数支持依次排序 如:{isAsc:"asc",orderByColumn:"id"} {isAsc:"asc",orderByColumn:"id,createTime"} {isAsc:"asc,desc",orderByColumn:"id,createTime"} 共三种配置方式 --- ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java index 9599c4f..1bad680 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java @@ -1,6 +1,6 @@ package com.ruoyi.system.service; -import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.common.core.domain.PageQuery; import com.ruoyi.common.core.domain.entity.SysDictData; import com.ruoyi.common.core.domain.entity.SysDictType; import com.ruoyi.common.core.page.TableDataInfo; @@ -12,10 +12,10 @@ * * @author Lion Li */ -public interface ISysDictTypeService extends IService<SysDictType> { +public interface ISysDictTypeService { - TableDataInfo<SysDictType> selectPageDictTypeList(SysDictType dictType); + TableDataInfo<SysDictType> selectPageDictTypeList(SysDictType dictType, PageQuery pageQuery); /** * 鏍规嵁鏉′欢鍒嗛〉鏌ヨ瀛楀吀绫诲瀷 @@ -60,7 +60,6 @@ * 鎵归噺鍒犻櫎瀛楀吀淇℃伅 * * @param dictIds 闇�瑕佸垹闄ょ殑瀛楀吀ID - * @return 缁撴灉 */ void deleteDictTypeByIds(Long[] dictIds); @@ -85,7 +84,7 @@ * @param dictType 瀛楀吀绫诲瀷淇℃伅 * @return 缁撴灉 */ - int insertDictType(SysDictType dictType); + List<SysDictData> insertDictType(SysDictType dictType); /** * 淇敼淇濆瓨瀛楀吀绫诲瀷淇℃伅 @@ -93,7 +92,7 @@ * @param dictType 瀛楀吀绫诲瀷淇℃伅 * @return 缁撴灉 */ - int updateDictType(SysDictType dictType); + List<SysDictData> updateDictType(SysDictType dictType); /** * 鏍¢獙瀛楀吀绫诲瀷绉版槸鍚﹀敮涓� -- Gitblit v1.9.3