Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
2a93904e
Commit
2a93904e
authored
Aug 30, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.5.8-hgw-时间区间
parent
f21c1c41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
SysRoleInfoSearchVo.java
...cloud/plus/v1/yifu/permission/vo/SysRoleInfoSearchVo.java
+7
-2
SysRoleInfoServiceImpl.java
...us/v1/permission/service/impl/SysRoleInfoServiceImpl.java
+5
-5
SysRoleInfoMapper.xml
...ssion-biz/src/main/resources/mapper/SysRoleInfoMapper.xml
+6
-0
No files found.
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/yifu/permission/vo/SysRoleInfoSearchVo.java
View file @
2a93904e
...
...
@@ -24,8 +24,13 @@ public class SysRoleInfoSearchVo extends SysRoleInfo {
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
@Schema
(
description
=
"创建时间起"
)
private
LocalDateTime
createTimeStart
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间止"
)
private
LocalDateTime
createTimeEnd
;
/**
* @Author fxj
* 查询数据起
...
...
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysRoleInfoServiceImpl.java
View file @
2a93904e
...
...
@@ -16,7 +16,6 @@ package com.yifu.cloud.plus.v1.permission.service.impl;/*
*/
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.context.AnalysisContext
;
...
...
@@ -159,10 +158,11 @@ public class SysRoleInfoServiceImpl extends ServiceImpl<SysRoleInfoMapper, SysRo
private
LambdaQueryWrapper
buildQueryWrapper
(
SysRoleInfoSearchVo
entity
)
{
LambdaQueryWrapper
<
SysRoleInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
ArrayUtil
.
isNotEmpty
(
entity
.
getCreateTimes
()))
{
wrapper
.
ge
(
SysRoleInfo:
:
getCreateTime
,
entity
.
getCreateTimes
()[
0
])
.
le
(
SysRoleInfo:
:
getCreateTime
,
entity
.
getCreateTimes
()[
1
]);
if
(
Common
.
isNotNull
(
entity
.
getCreateTimeStart
()))
{
wrapper
.
ge
(
SysRoleInfo:
:
getCreateTime
,
entity
.
getCreateTimeStart
());
}
if
(
Common
.
isNotNull
(
entity
.
getCreateTimeEnd
()))
{
wrapper
.
le
(
SysRoleInfo:
:
getCreateTime
,
entity
.
getCreateTimeEnd
());
}
if
(
Common
.
isNotNull
(
entity
.
getCreateName
()))
{
wrapper
.
eq
(
SysRoleInfo:
:
getCreateName
,
entity
.
getCreateName
());
...
...
yifu-permission/yifu-permission-biz/src/main/resources/mapper/SysRoleInfoMapper.xml
View file @
2a93904e
...
...
@@ -78,6 +78,12 @@
<if
test=
"sysRoleInfo.createTime != null"
>
AND a.CREATE_TIME = #{sysRoleInfo.createTime}
</if>
<if
test=
"sysRoleInfo.createTimeStart != null"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
#{sysRoleInfo.createTimeStart}
</if>
<if
test=
"sysRoleInfo.createTimeEnd != null"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
#{sysRoleInfo.createTimeEnd}
</if>
<if
test=
"sysRoleInfo.updateBy != null and sysRoleInfo.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{sysRoleInfo.updateBy}
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment