From 45b3fa35375f74450a110c85ed4c912703501d2c Mon Sep 17 00:00:00 2001 From: renzexin Date: Fri, 23 Aug 2024 10:16:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/chushang/system/controller/RoleController.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java b/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java index 8b42c5b..4fc636d 100644 --- a/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java +++ b/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java @@ -1,5 +1,6 @@ package com.chushang.system.controller; +import com.chushang.common.core.util.StringUtils; import com.chushang.common.core.web.AjaxResult; import com.chushang.common.log.annotation.SysLog; import com.chushang.common.log.enums.BusinessType; @@ -50,9 +51,12 @@ public class RoleController { @RequestParam(defaultValue = "10") Integer limit // 默认每页条数为10 ) { ListRoleDTO.Params params = new ListRoleDTO.Params(); - params.setBeginTime(beginTime); - params.setEndTime(endTime); - + if(StringUtils.isNotEmpty(beginTime)){ + params.setBeginTime(beginTime+" 00:00:00"); + } + if(StringUtils.isNotEmpty(endTime)){ + params.setEndTime(endTime+" 23:59:59"); + } ListRoleDTO listRole = new ListRoleDTO(); listRole.setRoleName(roleName); listRole.setRoleKey(roleKey);