Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
c68e8fa0
Commit
c68e8fa0
authored
Jul 14, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):检验检测信息查询确保是最新的一条数据
parent
74fa4c51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
IdxBizJgInspectionDetectionInfoServiceImpl.java
...vice/impl/IdxBizJgInspectionDetectionInfoServiceImpl.java
+13
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgInspectionDetectionInfoServiceImpl.java
View file @
c68e8fa0
...
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
...
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -39,9 +40,16 @@ public class IdxBizJgInspectionDetectionInfoServiceImpl extends BaseService<IdxB
...
@@ -39,9 +40,16 @@ public class IdxBizJgInspectionDetectionInfoServiceImpl extends BaseService<IdxB
@Override
@Override
public
List
<
IdxBizJgInspectionDetectionInfo
>
checkInspectionInfo
(
List
<
String
>
records
)
{
public
List
<
IdxBizJgInspectionDetectionInfo
>
checkInspectionInfo
(
List
<
String
>
records
)
{
IdxBizJgInspectionDetectionInfo
result
=
new
IdxBizJgInspectionDetectionInfo
();
ArrayList
<
IdxBizJgInspectionDetectionInfo
>
result
=
new
ArrayList
<>();
QueryWrapper
<
IdxBizJgInspectionDetectionInfo
>
queryWrapper
=
new
QueryWrapper
<>();
for
(
String
record
:
records
)
{
queryWrapper
.
lambda
().
in
(
IdxBizJgInspectionDetectionInfo:
:
getRecord
,
records
).
orderByDesc
(
IdxBizJgInspectionDetectionInfo:
:
getInspectDate
);
QueryWrapper
<
IdxBizJgInspectionDetectionInfo
>
queryWrapper
=
new
QueryWrapper
<>();
return
list
(
queryWrapper
);
queryWrapper
.
lambda
().
eq
(
IdxBizJgInspectionDetectionInfo:
:
getRecord
,
record
)
.
orderByDesc
(
IdxBizJgInspectionDetectionInfo:
:
getInspectDate
);
List
<
IdxBizJgInspectionDetectionInfo
>
list
=
list
(
queryWrapper
);
if
(!
ValidationUtil
.
isEmpty
(
list
)){
result
.
add
(
list
.
get
(
0
));
}
}
return
result
;
}
}
}
}
\ No newline at end of file
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