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
31454e80
Commit
31454e80
authored
Mar 19, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动化日志查询项优化-fxj
parent
93f2f6ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
TSocialSoldierLogServiceImpl.java
...ifu/social/service/impl/TSocialSoldierLogServiceImpl.java
+15
-2
TSocialSoldierLogMapper.xml
...biz/src/main/resources/mapper/TSocialSoldierLogMapper.xml
+2
-2
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialSoldierLogServiceImpl.java
View file @
31454e80
...
...
@@ -251,10 +251,23 @@ public class TSocialSoldierLogServiceImpl extends ServiceImpl<TSocialSoldierLogM
private
LambdaQueryWrapper
buildQueryWrapper
(
TSocialSoldierLogSearchVo
entity
)
{
LambdaQueryWrapper
<
TSocialSoldierLog
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
ArrayUtil
.
isNotEmpty
(
entity
.
getCreateTimeStart
()))
{
// 派单项筛选:社保/医保
if
(
Common
.
isNotNull
(
entity
.
getDispatchItem
())
&&
Common
.
isNotNull
(
entity
.
getDispatchItem
()))
{
wrapper
.
eq
(
TSocialSoldierLog:
:
getDispatchItem
,
entity
.
getDispatchItem
());
}
// 社保户模糊搜索
if
(
Common
.
isNotNull
(
entity
.
getSocialHuName
())
&&
Common
.
isNotNull
(
entity
.
getSocialHuName
()))
{
wrapper
.
eq
(
TSocialSoldierLog:
:
getSocialHuName
,
entity
.
getSocialHuName
());
}
// 结果模糊搜索
if
(
Common
.
isNotNull
(
entity
.
getRemark
())
&&
Common
.
isNotNull
(
entity
.
getRemark
()))
{
wrapper
.
like
(
TSocialSoldierLog:
:
getRemark
,
entity
.
getRemark
());
}
// 时间区间筛选
if
(
Common
.
isNotNull
(
entity
.
getCreateTimeStart
()))
{
wrapper
.
ge
(
TSocialSoldierLog:
:
getCreateTime
,
entity
.
getCreateTimeStart
());
}
if
(
ArrayUtil
.
isNotEmpty
(
entity
.
getCreateTimeEnd
()))
{
if
(
Common
.
isNotNull
(
entity
.
getCreateTimeEnd
()))
{
wrapper
.
le
(
TSocialSoldierLog:
:
getCreateTime
,
entity
.
getCreateTimeEnd
());
}
if
(
Common
.
isNotNull
(
entity
.
getCreateName
()))
{
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialSoldierLogMapper.xml
View file @
31454e80
...
...
@@ -82,7 +82,7 @@
AND a.TYPE = #{tSocialSoldierLog.type}
</if>
<if
test=
"tSocialSoldierLog.remark != null and tSocialSoldierLog.remark.trim() != ''"
>
AND a.REMARK
= #{tSocialSoldierLog.remark}
AND a.REMARK
LIKE CONCAT('%',#{tSocialSoldierLog.remark},'%')
</if>
<if
test=
"tSocialSoldierLog.createBy != null and tSocialSoldierLog.createBy.trim() != ''"
>
AND a.CREATE_BY = #{tSocialSoldierLog.createBy}
...
...
@@ -133,7 +133,7 @@
</if>
</select>
<!--tSocialSoldierLog简单分页查询-->
<!--tSocialSoldierLog
简单分页查询-->
<select
id=
"getMaxTimeToLog"
resultType=
"java.time.LocalDateTime"
>
SELECT
max(a.CREATE_TIME)
...
...
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