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
30a82d50
Commit
30a82d50
authored
Nov 05, 2024
by
宋源硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'songyuanshuo' into 'dev'
2024/11/05修改接口 See merge request
!457
parents
2a10e740
5838749a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
52 additions
and
5 deletions
+52
-5
ResultFileRelationMapper.java
.../main/java/com/ruoyi/mapper/ResultFileRelationMapper.java
+3
-0
ReviewDetailsMapper.java
...w/src/main/java/com/ruoyi/mapper/ReviewDetailsMapper.java
+3
-0
ReviewEnterpriseArchiveServiceImpl.java
...uoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
+12
-0
StrategySystemReviewTaskClose.java
...com/ruoyi/service/impl/StrategySystemReviewTaskClose.java
+9
-0
StrategySystemReviewTaskFinish.java
...om/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
+4
-5
StrategySystemReviewTaskNew.java
...a/com/ruoyi/service/impl/StrategySystemReviewTaskNew.java
+9
-0
StrategySystemReviewTaskSigned.java
...om/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
+4
-0
ResultFileRelationMapper.xml
...ew/src/main/resources/mapper/ResultFileRelationMapper.xml
+4
-0
ReviewDetailsMapper.xml
...-review/src/main/resources/mapper/ReviewDetailsMapper.xml
+4
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ResultFileRelationMapper.java
View file @
30a82d50
...
...
@@ -11,4 +11,7 @@ import java.util.List;
public
interface
ResultFileRelationMapper
extends
BaseMapper
<
ResultFileRelation
>
{
List
<
ResultFileRelation
>
findByResultId
(
@Param
(
"resultId"
)
Long
resultId
);
//删除结果文件关系表中数据
void
updateByFileId
(
Long
id
);
}
quality-review/src/main/java/com/ruoyi/mapper/ReviewDetailsMapper.java
View file @
30a82d50
...
...
@@ -37,4 +37,7 @@ public interface ReviewDetailsMapper extends BaseMapper<ReviewDetails> {
List
<
ReviewDetails
>
findDetailsList
(
ReviewFindListRequest
request
);
// 查询细则列表
List
<
DeleteDetailsResponse
>
getDeleteDetailsResponseByStandardId
(
@Param
(
"standardId"
)
Long
standardId
);
//删除当前任务中引用了此车企文件的地方数据
void
updateByReviewEnterpriseArchiveId
(
String
id
);
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
View file @
30a82d50
...
...
@@ -13,6 +13,8 @@ import com.ruoyi.common.utils.bean.BeanUtils;
import
com.ruoyi.domain.ReviewEnterpriseArchive
;
import
com.ruoyi.domain.Task
;
import
com.ruoyi.domain.vo.*
;
import
com.ruoyi.mapper.ResultFileRelationMapper
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
import
com.ruoyi.mapper.TaskMapper
;
import
com.ruoyi.service.ReviewEnterpriseArchiveService
;
import
com.ruoyi.mapper.ReviewEnterpriseArchiveMapper
;
...
...
@@ -55,6 +57,10 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
@Autowired
private
ReviewEnterpriseArchiveService
reviewEnterpriseArchiveService
;
@Autowired
private
ResultFileRelationMapper
resultFileRelationMapper
;
@Autowired
private
ReviewDetailsMapper
reviewDetailsMapper
;
@Autowired
private
TaskMapper
taskMapper
;
...
...
@@ -301,7 +307,13 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
@Override
public
void
deleteById
(
Long
id
)
{
//删除车企文件库里的文件 t_review_enterprise_archive
reviewEnterpriseArchiveMapper
.
deleteById
(
id
);
//删除当前任务中引用了此车企文件的地方数据 t_review_details_result
String
newId
=
id
.
toString
();
reviewDetailsMapper
.
updateByReviewEnterpriseArchiveId
(
newId
);
//删除结果文件关系表中数据 t_result_file_relation
resultFileRelationMapper
.
updateByFileId
(
id
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskClose.java
View file @
30a82d50
...
...
@@ -3,6 +3,8 @@ package com.ruoyi.service.impl;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.domain.Task
;
import
com.ruoyi.mapper.TaskMapper
;
import
com.ruoyi.service.StrategySystemReviewTask
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
import
org.springframework.beans.factory.InitializingBean
;
...
...
@@ -22,6 +24,9 @@ public class StrategySystemReviewTaskClose implements StrategySystemReviewTask,
@Autowired
private
ApplicationContext
applicationContext
;
@Autowired
private
TaskMapper
taskMapper
;
@Override
public
void
doStart
(
SystemReviewTask
systemReviewTask
)
{
throw
new
ServiceException
(
"不能开始一个已关闭的任务"
,
HttpStatus
.
ERROR
);
...
...
@@ -49,6 +54,10 @@ public class StrategySystemReviewTaskClose implements StrategySystemReviewTask,
@Override
public
SystemReviewTaskViewResponse
doView
(
SystemReviewTask
systemReviewTask
)
{
//设置生产企业名称
Task
task
=
taskMapper
.
getTaskBySystemTaskId
(
systemReviewTask
.
getId
());
systemReviewTask
.
setEnterpriseName
(
task
.
getEnterpriseName
());
SystemReviewTaskViewResponse
response
=
new
SystemReviewTaskViewResponse
();
response
.
setSystemReviewTask
(
systemReviewTask
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
View file @
30a82d50
...
...
@@ -3,10 +3,7 @@ package com.ruoyi.service.impl;
import
com.ruoyi.common.DataStatisticsUtils
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.domain.ReviewDetailsResult
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.domain.TaskUserRelation
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.mapper.TaskMapper
;
import
com.ruoyi.mapper.TaskUserRelationMapper
;
import
com.ruoyi.service.ReviewDetailsResultService
;
...
...
@@ -83,7 +80,9 @@ public class StrategySystemReviewTaskFinish implements StrategySystemReviewTask,
// 体系审查
setSystemDataStatistics
(
standardTree
,
results
,
systemReviewTask
);
//设置生产企业名称
Task
task
=
taskMapper
.
getTaskBySystemTaskId
(
systemReviewTask
.
getId
());
systemReviewTask
.
setEnterpriseName
(
task
.
getEnterpriseName
());
response
.
setSystemReviewTask
(
systemReviewTask
);
return
response
;
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskNew.java
View file @
30a82d50
...
...
@@ -4,7 +4,9 @@ import com.ruoyi.common.constant.HttpStatus;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.domain.Task
;
import
com.ruoyi.mapper.SystemReviewTaskMapper
;
import
com.ruoyi.mapper.TaskMapper
;
import
com.ruoyi.service.ReviewStandardService
;
import
com.ruoyi.service.StrategySystemReviewTask
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
...
...
@@ -32,6 +34,9 @@ public class StrategySystemReviewTaskNew implements StrategySystemReviewTask, In
@Autowired
private
SystemReviewTaskMapper
systemReviewTaskMapper
;
@Autowired
private
TaskMapper
taskMapper
;
@Override
public
void
doStart
(
SystemReviewTask
systemReviewTask
)
{
systemReviewTask
.
setTaskBeginTime
(
new
Date
());
...
...
@@ -69,6 +74,10 @@ public class StrategySystemReviewTaskNew implements StrategySystemReviewTask, In
// 将问卷赋值到任务
systemReviewTask
.
setStandard
(
standardTree
);
//设置生产企业名称
Task
task
=
taskMapper
.
getTaskBySystemTaskId
(
systemReviewTask
.
getId
());
systemReviewTask
.
setEnterpriseName
(
task
.
getEnterpriseName
());
// 生成返回结果
SystemReviewTaskViewResponse
response
=
new
SystemReviewTaskViewResponse
();
response
.
setSystemReviewTask
(
systemReviewTask
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
View file @
30a82d50
...
...
@@ -115,6 +115,10 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
// 体系审查
setSystemDataStatistics
(
standardTree
,
results
,
systemReviewTask
);
//设置生产企业名称
Task
task
=
taskMapper
.
getTaskBySystemTaskId
(
systemReviewTask
.
getId
());
systemReviewTask
.
setEnterpriseName
(
task
.
getEnterpriseName
());
response
.
setSystemReviewTask
(
systemReviewTask
);
return
response
;
...
...
quality-review/src/main/resources/mapper/ResultFileRelationMapper.xml
View file @
30a82d50
...
...
@@ -12,6 +12,10 @@
<result
property=
"catalogue"
column=
"catalogue"
jdbcType=
"VARCHAR"
/>
<result
property=
"fileName"
column=
"file_name"
jdbcType=
"VARCHAR"
/>
</resultMap>
<update
id=
"updateByFileId"
>
update t_result_file_relation set file_id = null,catalogue = '',file_name = ''
where file_id = #{id}
</update>
<select
id=
"findByResultId"
resultType=
"com.ruoyi.domain.ResultFileRelation"
>
select id,task_id,result_id,file_id,catalogue,file_name from t_result_file_relation
where result_id = #{resultId}
...
...
quality-review/src/main/resources/mapper/ReviewDetailsMapper.xml
View file @
30a82d50
...
...
@@ -3,6 +3,10 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.mapper.ReviewDetailsMapper"
>
<update
id=
"updateByReviewEnterpriseArchiveId"
>
update t_review_details_result set review_enterprise_archive_id = '',catalogue = '', file_name = ''
where review_enterprise_archive_id = #{id}
</update>
<select
id=
"findByKeyPointList"
resultType=
"com.ruoyi.domain.ReviewDetails"
>
...
...
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