Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
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
王飞
vehicle-quality-review
Commits
63a53733
Commit
63a53733
authored
Mar 08, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评审所需查询
parent
e68e63e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
ReviewDetailsResultMapper.java
...main/java/com/ruoyi/mapper/ReviewDetailsResultMapper.java
+7
-0
ReviewFindListRequest.java
...ain/java/com/ruoyi/web/request/ReviewFindListRequest.java
+1
-1
ReviewDetailsResultMapper.xml
...w/src/main/resources/mapper/ReviewDetailsResultMapper.xml
+11
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewDetailsResultMapper.java
View file @
63a53733
package
com
.
ruoyi
.
mapper
;
package
com
.
ruoyi
.
mapper
;
import
com.ruoyi.domain.ReviewDetails
;
import
com.ruoyi.domain.ReviewDetailsResult
;
import
com.ruoyi.domain.ReviewDetailsResult
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -26,6 +27,12 @@ public interface ReviewDetailsResultMapper extends BaseMapper<ReviewDetailsResul
...
@@ -26,6 +27,12 @@ public interface ReviewDetailsResultMapper extends BaseMapper<ReviewDetailsResul
* @return
* @return
*/
*/
Long
findNotPass
(
@Param
(
"taskId"
)
Long
taskId
);
Long
findNotPass
(
@Param
(
"taskId"
)
Long
taskId
);
// 根据细则列表查询结果
List
<
ReviewDetailsResult
>
findByDetailsList
(
@Param
(
"reviewDetailsList"
)
List
<
ReviewDetails
>
reviewDetailsList
);
// 根据细则id查询结果
List
<
ReviewDetailsResult
>
findByDetailsId
(
@Param
(
"detailsId"
)
Long
detailsId
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/request/ReviewFindListRequest.java
View file @
63a53733
...
@@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull;
...
@@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull;
@Data
@Data
public
class
ReviewFindListRequest
{
public
class
ReviewFindListRequest
{
@ApiModelProperty
(
"审查
要点
"
)
@ApiModelProperty
(
"审查
内容
"
)
private
String
text
;
private
String
text
;
@ApiModelProperty
(
"总标准ID"
)
@ApiModelProperty
(
"总标准ID"
)
...
...
quality-review/src/main/resources/mapper/ReviewDetailsResultMapper.xml
View file @
63a53733
...
@@ -38,5 +38,16 @@
...
@@ -38,5 +38,16 @@
SELECT COUNT(*) sum FROM t_review_details_result
SELECT COUNT(*) sum FROM t_review_details_result
WHERE passed = 0 AND task_id = #{taskId}
WHERE passed = 0 AND task_id = #{taskId}
</select>
</select>
<select
id=
"findByDetailsList"
resultType=
"com.ruoyi.domain.ReviewDetailsResult"
>
SELECT id, passed, comment, images_url, review_details_id, task_id, user_id, user_name, last_modify_time, catalogue, review_enterprise_archive_id
FROM t_review_details_result WHERE review_details_id IN
<foreach
collection=
"reviewDetailsList"
item=
"details"
open=
"("
separator=
","
close=
")"
>
#{details.id}
</foreach>
</select>
<select
id=
"findByDetailsId"
resultType=
"com.ruoyi.domain.ReviewDetailsResult"
>
SELECT id, passed, comment, images_url, review_details_id, task_id, user_id, user_name, last_modify_time, catalogue, review_enterprise_archive_id
FROM t_review_details_result WHERE review_details_id = #{detailsId}
</select>
</mapper>
</mapper>
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