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
63904d74
Commit
63904d74
authored
Aug 03, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createTimeEnd
parent
e3b651e0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
13 deletions
+27
-13
TDispatchInfoSearchVo.java
...u/cloud/plus/v1/yifu/social/vo/TDispatchInfoSearchVo.java
+8
-3
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+11
-4
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+8
-6
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchInfoSearchVo.java
View file @
63904d74
...
...
@@ -49,10 +49,15 @@ public class TDispatchInfoSearchVo extends TDispatchInfo {
private
String
ids
;
/**
*
创建时间区间 [开始时间,结束时间]
*
申请时间起
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
@Schema
(
description
=
"申请时间起"
)
private
LocalDateTime
createTimeStart
;
/**
* 申请时间止
*/
@Schema
(
description
=
"申请时间止"
)
private
LocalDateTime
createTimeEnd
;
/**
* @Author fxj
* 查询数据起
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
63904d74
...
...
@@ -210,15 +210,22 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
idList
=
searchVo
.
getIdList
();
wrapper
.
in
(
TDispatchInfo:
:
getId
,
idList
);
}
if
(
Common
.
isNotNull
(
searchVo
.
getCreateTimeStart
()))
{
wrapper
.
ge
(
TDispatchInfo:
:
getCreateTime
,
searchVo
.
getCreateTimeStart
());
}
if
(
Common
.
isNotNull
(
searchVo
.
getCreateTimeEnd
()))
{
wrapper
.
le
(
TDispatchInfo:
:
getCreateTime
,
searchVo
.
getCreateTimeEnd
());
}
return
baseMapper
.
selectCount
(
wrapper
);
}
private
LambdaQueryWrapper
buildQueryWrapper
(
TDispatchInfoSearchVo
entity
)
{
LambdaQueryWrapper
<
TDispatchInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
ArrayUtil
.
isNotEmpty
(
entity
.
getCreateTimes
()))
{
wrapper
.
ge
(
TDispatchInfo:
:
getCreateTime
,
entity
.
getCreateTimes
()[
0
])
.
le
(
TDispatchInfo:
:
getCreateTime
,
entity
.
getCreateTimes
()[
1
]);
if
(
Common
.
isNotNull
(
entity
.
getCreateTimeStart
()))
{
wrapper
.
ge
(
TDispatchInfo:
:
getCreateTime
,
entity
.
getCreateTimeStart
());
}
if
(
Common
.
isNotNull
(
entity
.
getCreateTimeEnd
()))
{
wrapper
.
le
(
TDispatchInfo:
:
getCreateTime
,
entity
.
getCreateTimeEnd
());
}
if
(
Common
.
isNotNull
(
entity
.
getCreateName
()))
{
wrapper
.
eq
(
TDispatchInfo:
:
getCreateName
,
entity
.
getCreateName
());
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
63904d74
...
...
@@ -400,9 +400,11 @@
<if
test=
"tDispatchInfo.providentHouseholdName != null and tDispatchInfo.providentHouseholdName.trim() != ''"
>
AND f.PROVIDENT_HOUSEHOLD_NAME = #{tDispatchInfo.providentHouseholdName}
</if>
<if
test=
"tDispatchInfo.createTimes != null and tDispatchInfo.createTimes.length>0"
>
AND a.UPDATE_TIME
<![CDATA[ >= ]]>
#{tDispatchInfo.createTimes[0]}
AND a.UPDATE_TIME
<![CDATA[ <= ]]>
#{tDispatchInfo.createTimes[1]}
<if
test=
"tDispatchInfo.createTimeStart != null and tDispatchInfo.createTimeStart.trim() != ''"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
#{tDispatchInfo.createTimeStart}
</if>
<if
test=
"tDispatchInfo.createTimeEnd != null and tDispatchInfo.createTimeEnd.trim() != ''"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
#{tDispatchInfo.createTimeEnd}
</if>
</if>
</sql>
...
...
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