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
f52b10da
Commit
f52b10da
authored
Nov 14, 2024
by
宋源硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
2024/11/14修改方法 See merge request
!462
parents
baf471a4
c65a927d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
6 deletions
+59
-6
ReviewDetailsResult.java
...w/src/main/java/com/ruoyi/domain/ReviewDetailsResult.java
+5
-1
ReviewDetailsResultMapper.java
...main/java/com/ruoyi/mapper/ReviewDetailsResultMapper.java
+5
-0
ReviewDetailsResultServiceImpl.java
...om/ruoyi/service/impl/ReviewDetailsResultServiceImpl.java
+31
-4
ReviewDetailsResultSaveRequest.java
...com/ruoyi/web/request/ReviewDetailsResultSaveRequest.java
+10
-0
ReviewDetailsResultMapper.xml
...w/src/main/resources/mapper/ReviewDetailsResultMapper.xml
+8
-1
No files found.
quality-review/src/main/java/com/ruoyi/domain/ReviewDetailsResult.java
View file @
f52b10da
...
@@ -79,7 +79,7 @@ public class ReviewDetailsResult implements Serializable {
...
@@ -79,7 +79,7 @@ public class ReviewDetailsResult implements Serializable {
* 最后修改时间
* 最后修改时间
*/
*/
@ApiModelProperty
(
"最后修改时间"
)
@ApiModelProperty
(
"最后修改时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm
"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
lastModifyTime
;
private
Date
lastModifyTime
;
@ApiModelProperty
(
"文件目录"
)
@ApiModelProperty
(
"文件目录"
)
...
@@ -96,5 +96,9 @@ public class ReviewDetailsResult implements Serializable {
...
@@ -96,5 +96,9 @@ public class ReviewDetailsResult implements Serializable {
@ApiModelProperty
(
"文件列表"
)
@ApiModelProperty
(
"文件列表"
)
List
<
ReviewEnterpriseArchiveFileVO
>
fileList
;
List
<
ReviewEnterpriseArchiveFileVO
>
fileList
;
@ApiModelProperty
(
"符合项备注"
)
private
String
successRemark
;
@ApiModelProperty
(
"不符合项备注"
)
private
String
failRemark
;
}
}
quality-review/src/main/java/com/ruoyi/mapper/ReviewDetailsResultMapper.java
View file @
f52b10da
...
@@ -36,6 +36,11 @@ public interface ReviewDetailsResultMapper extends BaseMapper<ReviewDetailsResul
...
@@ -36,6 +36,11 @@ public interface ReviewDetailsResultMapper extends BaseMapper<ReviewDetailsResul
List
<
ReviewDetailsResult
>
findByDetailsId
(
@Param
(
"detailsId"
)
Long
detailsId
);
List
<
ReviewDetailsResult
>
findByDetailsId
(
@Param
(
"detailsId"
)
Long
detailsId
);
List
<
UserNameResponse
>
findByResultList
(
@Param
(
"resultList"
)
List
<
ReviewDetailsResult
>
resultList
);
List
<
UserNameResponse
>
findByResultList
(
@Param
(
"resultList"
)
List
<
ReviewDetailsResult
>
resultList
);
/*
* 根据id修改
* */
void
updateByIdNew
(
ReviewDetailsResult
result
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/ReviewDetailsResultServiceImpl.java
View file @
f52b10da
...
@@ -56,12 +56,28 @@ public class ReviewDetailsResultServiceImpl extends ServiceImpl<ReviewDetailsRes
...
@@ -56,12 +56,28 @@ public class ReviewDetailsResultServiceImpl extends ServiceImpl<ReviewDetailsRes
result
.
setPassed
(
request
.
getPassed
());
result
.
setPassed
(
request
.
getPassed
());
result
.
setUserId
(
loginUser
.
getUserId
());
result
.
setUserId
(
loginUser
.
getUserId
());
result
.
setUserName
(
loginUser
.
getNickName
());
result
.
setUserName
(
loginUser
.
getNickName
());
result
.
setLastModifyTime
(
new
Date
());
//
result.setLastModifyTime(new Date());
result
.
setComment
(
request
.
getComment
());
result
.
setComment
(
request
.
getComment
());
/*if (request.getPassed() == 1){
result.setSuccessRemark(request.getSuccessRemark());
}else if(request.getPassed() == 0){
result.setFailRemark(request.getFailRemark());
}*/
if
(
request
.
getSuccessRemark
()
!=
null
){
result
.
setSuccessRemark
(
request
.
getSuccessRemark
());
}
if
(
request
.
getFailRemark
()
!=
null
){
result
.
setFailRemark
(
request
.
getFailRemark
());
}
//这里单独加了一个时间,如果用户想要修改时间,那么前端就会传来一个updateTime字段 如果不为null那么就设置时间然后修改数据库
if
(
request
.
getUpdateTime
()!=
null
){
result
.
setLastModifyTime
(
request
.
getUpdateTime
());
}
Save
(
result
,
request
);
Save
(
result
,
request
);
this
.
baseMapper
.
updateById
(
result
);
reviewDetailsResultMapper
.
updateByIdNew
(
result
);
//mybatis-plus的update方法有null值的话那个字段不会修改这里自己写了一个update
//this.baseMapper.updateById(result);
SaveFileRelation
(
result
.
getId
(),
request
);
SaveFileRelation
(
result
.
getId
(),
request
);
}
else
{
}
else
{
...
@@ -72,9 +88,20 @@ public class ReviewDetailsResultServiceImpl extends ServiceImpl<ReviewDetailsRes
...
@@ -72,9 +88,20 @@ public class ReviewDetailsResultServiceImpl extends ServiceImpl<ReviewDetailsRes
reviewDetailsResult
.
setPassed
(
request
.
getPassed
());
reviewDetailsResult
.
setPassed
(
request
.
getPassed
());
reviewDetailsResult
.
setUserId
(
loginUser
.
getUserId
());
reviewDetailsResult
.
setUserId
(
loginUser
.
getUserId
());
reviewDetailsResult
.
setUserName
(
loginUser
.
getNickName
());
reviewDetailsResult
.
setUserName
(
loginUser
.
getNickName
());
reviewDetailsResult
.
setLastModifyTime
(
new
Dat
e
());
reviewDetailsResult
.
setLastModifyTime
(
request
.
getUpdateTim
e
());
reviewDetailsResult
.
setComment
(
request
.
getComment
());
reviewDetailsResult
.
setComment
(
request
.
getComment
());
/*if (request.getPassed() == 1){
reviewDetailsResult.setSuccessRemark(request.getSuccessRemark());
}else if(request.getPassed() == 0){
reviewDetailsResult.setFailRemark(request.getFailRemark());
}*/
if
(
request
.
getSuccessRemark
()
!=
null
){
reviewDetailsResult
.
setSuccessRemark
(
request
.
getSuccessRemark
());
}
if
(
request
.
getFailRemark
()
!=
null
){
reviewDetailsResult
.
setFailRemark
(
request
.
getFailRemark
());
}
Save
(
reviewDetailsResult
,
request
);
Save
(
reviewDetailsResult
,
request
);
this
.
baseMapper
.
insert
(
reviewDetailsResult
);
this
.
baseMapper
.
insert
(
reviewDetailsResult
);
...
...
quality-review/src/main/java/com/ruoyi/web/request/ReviewDetailsResultSaveRequest.java
View file @
f52b10da
package
com
.
ruoyi
.
web
.
request
;
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.domain.vo.ReviewEnterpriseArchiveFileVO
;
import
com.ruoyi.domain.vo.ReviewEnterpriseArchiveFileVO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@ApiModel
(
value
=
"ReviewDetailsResultSaveRequest"
,
description
=
"保存审查细则的审查结果"
)
@ApiModel
(
value
=
"ReviewDetailsResultSaveRequest"
,
description
=
"保存审查细则的审查结果"
)
...
@@ -34,4 +36,12 @@ public class ReviewDetailsResultSaveRequest {
...
@@ -34,4 +36,12 @@ public class ReviewDetailsResultSaveRequest {
@ApiModelProperty
(
"关联文件列表"
)
@ApiModelProperty
(
"关联文件列表"
)
List
<
ReviewEnterpriseArchiveFileVO
>
fileList
;
List
<
ReviewEnterpriseArchiveFileVO
>
fileList
;
@ApiModelProperty
(
"符合项备注"
)
private
String
successRemark
;
@ApiModelProperty
(
"不符合项备注"
)
private
String
failRemark
;
@ApiModelProperty
(
"修改时间"
)
private
Date
updateTime
;
}
}
quality-review/src/main/resources/mapper/ReviewDetailsResultMapper.xml
View file @
f52b10da
...
@@ -25,8 +25,15 @@
...
@@ -25,8 +25,15 @@
scene,imagesUrl,review_details_id,
scene,imagesUrl,review_details_id,
task_id from t_review_details_result
task_id from t_review_details_result
</sql>
</sql>
<update
id=
"updateByIdNew"
>
update t_review_details_result set passed=#{passed},comment=#{comment},images_url=#{imagesUrl},
user_id=#{userId},user_name=#{userName},last_modify_time = #{lastModifyTime},
catalogue=#{catalogue},review_enterprise_archive_id=#{reviewEnterpriseArchiveId},
file_name=#{fileName},success_remark=#{successRemark},fail_remark=#{failRemark}
where id=#{id}
</update>
<select
id=
"findByTaskId"
resultType=
"com.ruoyi.domain.ReviewDetailsResult"
>
<select
id=
"findByTaskId"
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, file_name FROM t_review_details_result WHERE task_id = #{taskId}
SELECT id, passed, comment, images_url, review_details_id, task_id, user_id, user_name, last_modify_time, catalogue, review_enterprise_archive_id, file_name
,success_remark,fail_remark
FROM t_review_details_result WHERE task_id = #{taskId}
</select>
</select>
<select
id=
"findByTaskIdAndDetailsId"
resultType=
"com.ruoyi.domain.ReviewDetailsResult"
>
<select
id=
"findByTaskIdAndDetailsId"
resultType=
"com.ruoyi.domain.ReviewDetailsResult"
>
...
...
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