Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-api
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
中汽研标准应用数据库
car-database-api
Commits
037b5069
Commit
037b5069
authored
Sep 18, 2024
by
宋源硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'songyuanshuo' into 'master'
修改接口和添加新接口 See merge request
!19
parents
86593b5c
84e535cc
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
169 additions
and
22 deletions
+169
-22
ReviewDetailsMapper.java
...w/src/main/java/com/ruoyi/mapper/ReviewDetailsMapper.java
+5
-0
ReviewKeyPointMapper.java
.../src/main/java/com/ruoyi/mapper/ReviewKeyPointMapper.java
+9
-3
ReviewSceneChangeTaskMapper.java
...in/java/com/ruoyi/mapper/ReviewSceneChangeTaskMapper.java
+2
-0
ReviewSceneMapper.java
...iew/src/main/java/com/ruoyi/mapper/ReviewSceneMapper.java
+2
-2
ReviewStandardMapper.java
.../src/main/java/com/ruoyi/mapper/ReviewStandardMapper.java
+9
-2
ReviewDetailsService.java
...src/main/java/com/ruoyi/service/ReviewDetailsService.java
+6
-0
ReviewSceneService.java
...w/src/main/java/com/ruoyi/service/ReviewSceneService.java
+1
-1
ReviewStandardService.java
...rc/main/java/com/ruoyi/service/ReviewStandardService.java
+5
-3
ReviewDetailsServiceImpl.java
...java/com/ruoyi/service/impl/ReviewDetailsServiceImpl.java
+25
-1
ReviewSceneChangeTaskServiceImpl.java
.../ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
+8
-1
ReviewSceneServiceImpl.java
...n/java/com/ruoyi/service/impl/ReviewSceneServiceImpl.java
+2
-2
ReviewStandardServiceImpl.java
...ava/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
+12
-3
ReviewSceneChangeTaskController.java
...n/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
+29
-3
DeleteDetailsRequest.java
...main/java/com/ruoyi/web/request/DeleteDetailsRequest.java
+1
-0
GetKeypointListRequest.java
...in/java/com/ruoyi/web/request/GetKeypointListRequest.java
+2
-0
GetSceneListRequest.java
.../main/java/com/ruoyi/web/request/GetSceneListRequest.java
+2
-0
ReviewDetailsMapper.xml
...-review/src/main/resources/mapper/ReviewDetailsMapper.xml
+8
-0
ReviewKeyPointMapper.xml
...review/src/main/resources/mapper/ReviewKeyPointMapper.xml
+13
-0
ReviewSceneChangeTaskMapper.xml
...src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
+6
-0
ReviewSceneMapper.xml
...ty-review/src/main/resources/mapper/ReviewSceneMapper.xml
+3
-0
ReviewStandardMapper.xml
...review/src/main/resources/mapper/ReviewStandardMapper.xml
+19
-1
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewDetailsMapper.java
View file @
037b5069
...
@@ -6,6 +6,7 @@ import com.ruoyi.domain.ReviewDetails;
...
@@ -6,6 +6,7 @@ import com.ruoyi.domain.ReviewDetails;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.web.request.ReviewFindListRequest
;
import
com.ruoyi.web.request.ReviewFindListRequest
;
import
com.ruoyi.web.response.DeleteDetails
;
import
com.ruoyi.web.response.ResultCountResponse
;
import
com.ruoyi.web.response.ResultCountResponse
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -37,4 +38,8 @@ public interface ReviewDetailsMapper extends BaseMapper<ReviewDetails> {
...
@@ -37,4 +38,8 @@ public interface ReviewDetailsMapper extends BaseMapper<ReviewDetails> {
// 根据检验要点ID查询细则(Details)列表
// 根据检验要点ID查询细则(Details)列表
List
<
ReviewDetails
>
selectDetailsListByKeypointId
(
Long
keypointId
);
List
<
ReviewDetails
>
selectDetailsListByKeypointId
(
Long
keypointId
);
/*
* 删除细则按钮2
* */
List
<
DeleteDetails
>
selectDetailsList
(
@Param
(
"keypointId"
)
Long
keypointId
,
@Param
(
"text"
)
String
text
);
}
}
quality-review/src/main/java/com/ruoyi/mapper/ReviewKeyPointMapper.java
View file @
037b5069
...
@@ -5,9 +5,7 @@ import com.ruoyi.domain.ReviewDetails;
...
@@ -5,9 +5,7 @@ import com.ruoyi.domain.ReviewDetails;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.web.request.ReviewFindListRequest
;
import
com.ruoyi.web.request.ReviewFindListRequest
;
import
com.ruoyi.web.response.ReviewDetailsListResponse
;
import
com.ruoyi.web.response.*
;
import
com.ruoyi.web.response.ReviewKeyPointListResponse
;
import
com.ruoyi.web.response.ReviewKeyPointNew
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -32,4 +30,12 @@ public interface ReviewKeyPointMapper extends BaseMapper<ReviewKeyPoint> {
...
@@ -32,4 +30,12 @@ public interface ReviewKeyPointMapper extends BaseMapper<ReviewKeyPoint> {
List
<
ReviewKeyPointNew
>
selectKeypointListByStandardId
(
Long
standardId
);
List
<
ReviewKeyPointNew
>
selectKeypointListByStandardId
(
Long
standardId
);
ReviewKeyPointNew
selectKeypointById
(
Long
id
);
ReviewKeyPointNew
selectKeypointById
(
Long
id
);
/*
* 新增细则按钮2
* */
List
<
KeypointList
>
selectKeypointList
(
@Param
(
"id"
)
Long
id
,
@Param
(
"text"
)
String
text
);
/*
* 删除细则按钮2
* */
List
<
DeleteDetailsList
>
selectKeypointListNew
(
@Param
(
"id"
)
Long
id
);
}
}
quality-review/src/main/java/com/ruoyi/mapper/ReviewSceneChangeTaskMapper.java
View file @
037b5069
...
@@ -72,6 +72,8 @@ public interface ReviewSceneChangeTaskMapper extends BaseMapper<ReviewSceneChang
...
@@ -72,6 +72,8 @@ public interface ReviewSceneChangeTaskMapper extends BaseMapper<ReviewSceneChang
List
<
ReviewOpinionResponse
>
getReviewerOpinion
(
@Param
(
"id"
)
Long
id
,
@Param
(
"userId"
)
Long
userId
);
List
<
ReviewOpinionResponse
>
getReviewerOpinion
(
@Param
(
"id"
)
Long
id
,
@Param
(
"userId"
)
Long
userId
);
Long
getinspectStandardIdByTaskId
(
@Param
(
"taskId"
)
Long
taskId
);
Long
getinspectStandardIdByTaskId
(
@Param
(
"taskId"
)
Long
taskId
);
void
updateByIdNew
(
@Param
(
"task"
)
ReviewSceneChangeTask
task
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/mapper/ReviewSceneMapper.java
View file @
037b5069
...
@@ -21,8 +21,8 @@ public interface ReviewSceneMapper extends BaseMapper<ReviewScene> {
...
@@ -21,8 +21,8 @@ public interface ReviewSceneMapper extends BaseMapper<ReviewScene> {
// 查询场景列表
// 查询场景列表
List
<
ReviewScene
>
findList
(
ReviewSceneFindListRequest
request
);
List
<
ReviewScene
>
findList
(
ReviewSceneFindListRequest
request
);
List
<
GetSceneListResponse
>
getSceneListById
(
@Param
(
"id"
)
Long
id
);
List
<
GetSceneListResponse
>
getSceneListById
(
@Param
(
"id"
)
Long
id
,
@Param
(
"text"
)
String
text
);
// 根据细则ID查询审核场景(Scene)列表
// 根据细则ID查询审核场景(Scene)列表
List
<
ReviewScene
>
selectSceneListByDetailsId
(
Long
detailsId
);
List
<
ReviewScene
>
selectSceneListByDetailsId
(
@Param
(
"detailsId"
)
Long
detailsId
);
}
}
quality-review/src/main/java/com/ruoyi/mapper/ReviewStandardMapper.java
View file @
037b5069
...
@@ -67,7 +67,7 @@ public interface ReviewStandardMapper extends BaseMapper<ReviewStandard> {
...
@@ -67,7 +67,7 @@ public interface ReviewStandardMapper extends BaseMapper<ReviewStandard> {
/*
/*
* 获取要点id列表
* 获取要点id列表
* */
* */
List
<
KeypointList
>
getKeypointListByIdList
(
@Param
(
"idList"
)
List
<
Long
>
idList
);
List
<
KeypointList
>
getKeypointListByIdList
(
@Param
(
"idList"
)
List
<
Long
>
idList
,
@Param
(
"text"
)
String
text
);
List
<
Long
>
getDetailsIdList
(
@Param
(
"deleteDetailsRequest"
)
DeleteDetailsRequest
deleteDetailsRequest
);
List
<
Long
>
getDetailsIdList
(
@Param
(
"deleteDetailsRequest"
)
DeleteDetailsRequest
deleteDetailsRequest
);
...
@@ -92,5 +92,12 @@ public interface ReviewStandardMapper extends BaseMapper<ReviewStandard> {
...
@@ -92,5 +92,12 @@ public interface ReviewStandardMapper extends BaseMapper<ReviewStandard> {
List
<
ReviewStandardResponse
>
selectReviewStandardListBySystemType
();
List
<
ReviewStandardResponse
>
selectReviewStandardListBySystemType
();
List
<
ReviewStandardResponse
>
selectReviewStandardListByCarType
();
List
<
ReviewStandardResponse
>
selectReviewStandardListByCarType
();
/*
* 新增细则按钮2
* */
List
<
AddDetailsResponse
>
getKeypointList
(
@Param
(
"getKeypointListRequest"
)
GetKeypointListRequest
getKeypointListRequest
);
/*
* 删除细则按钮2
* */
List
<
DeleteDetailsResponse
>
selectStandardList
(
@Param
(
"deleteDetailsRequest"
)
DeleteDetailsRequest
deleteDetailsRequest
);
}
}
quality-review/src/main/java/com/ruoyi/service/ReviewDetailsService.java
View file @
037b5069
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.ruoyi.domain.ReviewDetails
;
import
com.ruoyi.domain.ReviewDetails
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.web.request.DeleteDetailsRequest
;
import
com.ruoyi.web.request.DeleteDetailsRequest
;
import
com.ruoyi.web.request.GetKeypointListRequest
;
import
com.ruoyi.web.response.DeleteDetailsResponse
;
import
com.ruoyi.web.response.DeleteDetailsResponse
;
import
java.util.List
;
import
java.util.List
;
...
@@ -16,4 +17,9 @@ public interface ReviewDetailsService extends IService<ReviewDetails> {
...
@@ -16,4 +17,9 @@ public interface ReviewDetailsService extends IService<ReviewDetails> {
* 删除细则按钮
* 删除细则按钮
* */
* */
List
<
DeleteDetailsResponse
>
getDeleteDetailsResponseList
(
DeleteDetailsRequest
deleteDetailsRequest
);
List
<
DeleteDetailsResponse
>
getDeleteDetailsResponseList
(
DeleteDetailsRequest
deleteDetailsRequest
);
/*
* 删除细则按钮2
* */
List
<
DeleteDetailsResponse
>
selectDetailsList
(
DeleteDetailsRequest
deleteDetailsRequest
);
}
}
quality-review/src/main/java/com/ruoyi/service/ReviewSceneService.java
View file @
037b5069
...
@@ -35,5 +35,5 @@ public interface ReviewSceneService extends IService<ReviewScene> {
...
@@ -35,5 +35,5 @@ public interface ReviewSceneService extends IService<ReviewScene> {
/*
/*
* 获取所有场景列表
* 获取所有场景列表
* */
* */
List
<
GetSceneListResponse
>
getSceneListById
(
Long
id
);
List
<
GetSceneListResponse
>
getSceneListById
(
Long
id
,
String
text
);
}
}
quality-review/src/main/java/com/ruoyi/service/ReviewStandardService.java
View file @
037b5069
...
@@ -126,7 +126,7 @@ public interface ReviewStandardService extends IService<ReviewStandard> {
...
@@ -126,7 +126,7 @@ public interface ReviewStandardService extends IService<ReviewStandard> {
/*
/*
* 新增细则按钮
* 新增细则按钮
* */
* */
List
<
AddDetailsResponse
>
getKeypointListByIds
(
List
<
Long
>
idList
);
List
<
AddDetailsResponse
>
getKeypointListByIds
(
List
<
Long
>
idList
,
String
text
);
/*
/*
* 删除细则按钮
* 删除细则按钮
...
@@ -134,6 +134,8 @@ public interface ReviewStandardService extends IService<ReviewStandard> {
...
@@ -134,6 +134,8 @@ public interface ReviewStandardService extends IService<ReviewStandard> {
List
<
Long
>
getDetailsIdList
(
DeleteDetailsRequest
deleteDetailsRequest
);
List
<
Long
>
getDetailsIdList
(
DeleteDetailsRequest
deleteDetailsRequest
);
ReviewStandardListNewResponse
getListAll
(
String
standardId
);
ReviewStandardListNewResponse
getListAll
(
String
standardId
);
/*
* 新增细则按钮2
* */
List
<
AddDetailsResponse
>
getKeypointListNew
(
GetKeypointListRequest
getKeypointListRequest
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewDetailsServiceImpl.java
View file @
037b5069
...
@@ -4,9 +4,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -4,9 +4,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.ruoyi.domain.ReviewDetails
;
import
com.ruoyi.domain.ReviewDetails
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
import
com.ruoyi.mapper.ReviewKeyPointMapper
;
import
com.ruoyi.mapper.ReviewStandardMapper
;
import
com.ruoyi.mapper.ReviewStandardMapper
;
import
com.ruoyi.service.ReviewDetailsService
;
import
com.ruoyi.service.ReviewDetailsService
;
import
com.ruoyi.web.request.DeleteDetailsRequest
;
import
com.ruoyi.web.request.DeleteDetailsRequest
;
import
com.ruoyi.web.request.GetKeypointListRequest
;
import
com.ruoyi.web.response.*
;
import
com.ruoyi.web.response.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -25,6 +27,9 @@ public class ReviewDetailsServiceImpl extends ServiceImpl<ReviewDetailsMapper, R
...
@@ -25,6 +27,9 @@ public class ReviewDetailsServiceImpl extends ServiceImpl<ReviewDetailsMapper, R
@Autowired
@Autowired
private
ReviewStandardMapper
reviewStandardMapper
;
private
ReviewStandardMapper
reviewStandardMapper
;
@Autowired
private
ReviewKeyPointMapper
reviewKeyPointMapper
;
@Override
@Override
public
List
<
ReviewDetails
>
findByKeyPointsList
(
List
<
ReviewKeyPoint
>
reviewKeyPointList
)
{
public
List
<
ReviewDetails
>
findByKeyPointsList
(
List
<
ReviewKeyPoint
>
reviewKeyPointList
)
{
return
reviewDetailsMapper
.
findByKeyPointList
(
reviewKeyPointList
);
return
reviewDetailsMapper
.
findByKeyPointList
(
reviewKeyPointList
);
...
@@ -38,8 +43,9 @@ public class ReviewDetailsServiceImpl extends ServiceImpl<ReviewDetailsMapper, R
...
@@ -38,8 +43,9 @@ public class ReviewDetailsServiceImpl extends ServiceImpl<ReviewDetailsMapper, R
// 获取所有要点ID列表
// 获取所有要点ID列表
List
<
Long
>
idList
=
reviewStandardMapper
.
getDelKeypointIdList
(
deleteDetailsRequest
);
List
<
Long
>
idList
=
reviewStandardMapper
.
getDelKeypointIdList
(
deleteDetailsRequest
);
String
s
=
""
;
// 获取所有的细则列表
// 获取所有的细则列表
List
<
KeypointList
>
keypointLists
=
reviewStandardMapper
.
getKeypointListByIdList
(
idList
);
List
<
KeypointList
>
keypointLists
=
reviewStandardMapper
.
getKeypointListByIdList
(
idList
,
s
);
// 将要点列表按reviewStandardId分组
// 将要点列表按reviewStandardId分组
Map
<
String
,
List
<
KeypointList
>>
groupKeypoint
=
keypointLists
.
stream
()
Map
<
String
,
List
<
KeypointList
>>
groupKeypoint
=
keypointLists
.
stream
()
...
@@ -87,4 +93,22 @@ public class ReviewDetailsServiceImpl extends ServiceImpl<ReviewDetailsMapper, R
...
@@ -87,4 +93,22 @@ public class ReviewDetailsServiceImpl extends ServiceImpl<ReviewDetailsMapper, R
return
deleteDetailsResponseList
;
return
deleteDetailsResponseList
;
}
}
/*
* 删除细则按钮2
* */
@Override
public
List
<
DeleteDetailsResponse
>
selectDetailsList
(
DeleteDetailsRequest
deleteDetailsRequest
)
{
List
<
DeleteDetailsResponse
>
deleteDetailsResponseList
=
reviewStandardMapper
.
selectStandardList
(
deleteDetailsRequest
);
for
(
DeleteDetailsResponse
deleteDetailsResponse
:
deleteDetailsResponseList
){
Long
id
=
Long
.
parseLong
(
deleteDetailsResponse
.
getId
());
List
<
DeleteDetailsList
>
deleteDetailsLists
=
reviewKeyPointMapper
.
selectKeypointListNew
(
id
);
for
(
DeleteDetailsList
deleteDetailsList
:
deleteDetailsLists
){
Long
keypointId
=
Long
.
parseLong
(
deleteDetailsList
.
getId
());
List
<
DeleteDetails
>
deleteDetails
=
reviewDetailsMapper
.
selectDetailsList
(
keypointId
,
deleteDetailsRequest
.
getText
());
deleteDetailsList
.
setDeleteDetailsList
(
deleteDetails
);
}
deleteDetailsResponse
.
setDeleteDetailsLists
(
deleteDetailsLists
);
}
return
deleteDetailsResponseList
;
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
View file @
037b5069
...
@@ -14,6 +14,7 @@ import com.ruoyi.domain.ReviewSceneChangeTaskUserRelation;
...
@@ -14,6 +14,7 @@ import com.ruoyi.domain.ReviewSceneChangeTaskUserRelation;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.framework.web.domain.server.Sys
;
import
com.ruoyi.framework.web.domain.server.Sys
;
import
com.ruoyi.mapper.ReviewKeyPointMapper
;
import
com.ruoyi.mapper.ReviewKeyPointMapper
;
import
com.ruoyi.mapper.ReviewSceneChangeTaskUserRelationMapper
;
import
com.ruoyi.mapper.StandardMapper
;
import
com.ruoyi.mapper.StandardMapper
;
import
com.ruoyi.service.*
;
import
com.ruoyi.service.*
;
import
com.ruoyi.mapper.ReviewSceneChangeTaskMapper
;
import
com.ruoyi.mapper.ReviewSceneChangeTaskMapper
;
...
@@ -70,6 +71,9 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -70,6 +71,9 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
@Autowired
@Autowired
private
StandardMapper
standardMapper
;
private
StandardMapper
standardMapper
;
@Autowired
ReviewSceneChangeTaskUserRelationMapper
reviewSceneChangeTaskUserRelationMapper
;
@Override
@Override
public
void
create
(
ReviewSceneChangeTask
reviewSceneChangeTask
)
throws
IOException
{
public
void
create
(
ReviewSceneChangeTask
reviewSceneChangeTask
)
throws
IOException
{
...
@@ -620,8 +624,11 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -620,8 +624,11 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
@Override
@Override
public
void
cancel
(
ReviewSceneChangeTaskCancelRequest
request
)
{
public
void
cancel
(
ReviewSceneChangeTaskCancelRequest
request
)
{
ReviewSceneChangeTask
task
=
getById
(
request
.
getId
());
ReviewSceneChangeTask
task
=
getById
(
request
.
getId
());
task
.
setTaskResult
(
null
);
task
.
setTaskStatus
(
ReviewSceneChangeTask
.
STATUS_CLOSE
);
task
.
setTaskStatus
(
ReviewSceneChangeTask
.
STATUS_CLOSE
);
updateById
(
task
);
System
.
out
.
println
(
task
+
"=========="
);
reviewSceneChangeTaskMapper
.
updateByIdNew
(
task
);
}
}
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneServiceImpl.java
View file @
037b5069
...
@@ -53,8 +53,8 @@ public class ReviewSceneServiceImpl extends ServiceImpl<ReviewSceneMapper, Revie
...
@@ -53,8 +53,8 @@ public class ReviewSceneServiceImpl extends ServiceImpl<ReviewSceneMapper, Revie
* 获取所有场景列表
* 获取所有场景列表
* */
* */
@Override
@Override
public
List
<
GetSceneListResponse
>
getSceneListById
(
Long
id
)
{
public
List
<
GetSceneListResponse
>
getSceneListById
(
Long
id
,
String
text
)
{
return
reviewSceneMapper
.
getSceneListById
(
id
);
return
reviewSceneMapper
.
getSceneListById
(
id
,
text
);
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
View file @
037b5069
...
@@ -639,9 +639,9 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
...
@@ -639,9 +639,9 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
}
}
@Override
@Override
public
List
<
AddDetailsResponse
>
getKeypointListByIds
(
List
<
Long
>
idList
)
{
public
List
<
AddDetailsResponse
>
getKeypointListByIds
(
List
<
Long
>
idList
,
String
text
)
{
//获取所有要点
//获取所有要点
List
<
KeypointList
>
keypointLists
=
reviewStandardMapper
.
getKeypointListByIdList
(
idList
);
List
<
KeypointList
>
keypointLists
=
reviewStandardMapper
.
getKeypointListByIdList
(
idList
,
text
);
//按reviewStandard 分组
//按reviewStandard 分组
Map
<
String
,
List
<
KeypointList
>>
groupKeypoint
=
keypointLists
.
stream
()
Map
<
String
,
List
<
KeypointList
>>
groupKeypoint
=
keypointLists
.
stream
()
...
@@ -706,7 +706,16 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
...
@@ -706,7 +706,16 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
return
response
;
return
response
;
}
}
@Override
public
List
<
AddDetailsResponse
>
getKeypointListNew
(
GetKeypointListRequest
getKeypointListRequest
)
{
List
<
AddDetailsResponse
>
addDetailsResponseList
=
reviewStandardMapper
.
getKeypointList
(
getKeypointListRequest
);
for
(
AddDetailsResponse
addDetailsResponse
:
addDetailsResponseList
){
Long
id
=
Long
.
parseLong
(
addDetailsResponse
.
getId
());
List
<
KeypointList
>
keypointListList
=
reviewKeyPointMapper
.
selectKeypointList
(
id
,
getKeypointListRequest
.
getText
());
addDetailsResponse
.
setKeypointList
(
keypointListList
);
}
return
addDetailsResponseList
;
}
}
}
quality-review/src/main/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
View file @
037b5069
...
@@ -256,7 +256,20 @@ public class ReviewSceneChangeTaskController extends BaseController {
...
@@ -256,7 +256,20 @@ public class ReviewSceneChangeTaskController extends BaseController {
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getKeypointListAll"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getKeypointListAll"
)
public
R
<
List
<
AddDetailsResponse
>>
getDetailsListNew
(
@RequestBody
GetKeypointListRequest
getKeypointListRequest
){
public
R
<
List
<
AddDetailsResponse
>>
getDetailsListNew
(
@RequestBody
GetKeypointListRequest
getKeypointListRequest
){
List
<
Long
>
idList
=
reviewStandardService
.
getKeypointIdList
(
getKeypointListRequest
);
List
<
Long
>
idList
=
reviewStandardService
.
getKeypointIdList
(
getKeypointListRequest
);
List
<
AddDetailsResponse
>
addDetailsResponseList
=
reviewStandardService
.
getKeypointListByIds
(
idList
);
List
<
AddDetailsResponse
>
addDetailsResponseList
=
reviewStandardService
.
getKeypointListByIds
(
idList
,
getKeypointListRequest
.
getText
());
return
R
.
ok
(
addDetailsResponseList
);
}
/*
* 新增细则按钮2
* */
@ApiOperation
(
"新增细则按钮"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"新增细则按钮"
,
businessType
=
BusinessType
.
UPDATE
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getKeypointListAllNew"
)
public
R
<
List
<
AddDetailsResponse
>>
getKeypointListAllNew
(
@RequestBody
GetKeypointListRequest
getKeypointListRequest
){
List
<
AddDetailsResponse
>
addDetailsResponseList
=
reviewStandardService
.
getKeypointListNew
(
getKeypointListRequest
);
return
R
.
ok
(
addDetailsResponseList
);
return
R
.
ok
(
addDetailsResponseList
);
}
}
...
@@ -273,6 +286,19 @@ public class ReviewSceneChangeTaskController extends BaseController {
...
@@ -273,6 +286,19 @@ public class ReviewSceneChangeTaskController extends BaseController {
return
R
.
ok
(
responseList
);
return
R
.
ok
(
responseList
);
}
}
/*
* 删除细则按钮2
* */
@ApiOperation
(
"删除细则按钮"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"删除细则按钮"
,
businessType
=
BusinessType
.
UPDATE
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/deleteKeypointListAllNew"
)
public
R
<
List
<
DeleteDetailsResponse
>>
deleteKeypointListAllNew
(
@RequestBody
DeleteDetailsRequest
deleteDetailsRequest
){
List
<
DeleteDetailsResponse
>
responseList
=
reviewDetailsService
.
selectDetailsList
(
deleteDetailsRequest
);
return
R
.
ok
(
responseList
);
}
/*
/*
* 获取所有场景列表
* 获取所有场景列表
* */
* */
...
@@ -283,7 +309,7 @@ public class ReviewSceneChangeTaskController extends BaseController {
...
@@ -283,7 +309,7 @@ public class ReviewSceneChangeTaskController extends BaseController {
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getSceneListAll"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getSceneListAll"
)
public
R
<
List
<
GetSceneListResponse
>>
getSceneListAll
(
@RequestBody
GetSceneListRequest
getSceneListRequest
){
public
R
<
List
<
GetSceneListResponse
>>
getSceneListAll
(
@RequestBody
GetSceneListRequest
getSceneListRequest
){
Long
id
=
Long
.
parseLong
(
getSceneListRequest
.
getDetailsId
());
Long
id
=
Long
.
parseLong
(
getSceneListRequest
.
getDetailsId
());
List
<
GetSceneListResponse
>
getSceneListResponses
=
reviewSceneService
.
getSceneListById
(
id
);
List
<
GetSceneListResponse
>
getSceneListResponses
=
reviewSceneService
.
getSceneListById
(
id
,
getSceneListRequest
.
getText
()
);
return
R
.
ok
(
getSceneListResponses
);
return
R
.
ok
(
getSceneListResponses
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/request/DeleteDetailsRequest.java
View file @
037b5069
...
@@ -11,4 +11,5 @@ public class DeleteDetailsRequest {
...
@@ -11,4 +11,5 @@ public class DeleteDetailsRequest {
private
String
standardNo
;
private
String
standardNo
;
private
String
type
;
private
String
type
;
private
String
text
;
}
}
quality-review/src/main/java/com/ruoyi/web/request/GetKeypointListRequest.java
View file @
037b5069
...
@@ -11,4 +11,6 @@ public class GetKeypointListRequest {
...
@@ -11,4 +11,6 @@ public class GetKeypointListRequest {
private
String
standardNo
;
private
String
standardNo
;
private
String
type
;
private
String
type
;
private
String
text
;
}
}
quality-review/src/main/java/com/ruoyi/web/request/GetSceneListRequest.java
View file @
037b5069
...
@@ -10,4 +10,6 @@ public class GetSceneListRequest {
...
@@ -10,4 +10,6 @@ public class GetSceneListRequest {
@ApiModelProperty
(
"细则id"
)
@ApiModelProperty
(
"细则id"
)
private
String
detailsId
;
private
String
detailsId
;
private
String
text
;
}
}
quality-review/src/main/resources/mapper/ReviewDetailsMapper.xml
View file @
037b5069
...
@@ -86,4 +86,12 @@
...
@@ -86,4 +86,12 @@
<select
id=
"selectDetailsListByKeypointId"
resultType=
"com.ruoyi.domain.ReviewDetails"
>
<select
id=
"selectDetailsListByKeypointId"
resultType=
"com.ruoyi.domain.ReviewDetails"
>
select * from t_review_details where review_keypoint_id = #{keypointId}
select * from t_review_details where review_keypoint_id = #{keypointId}
</select>
</select>
<select
id=
"selectDetailsList"
resultType=
"com.ruoyi.web.response.DeleteDetails"
>
select *
from t_review_details
where review_keypoint_id = #{keypointId}
<if
test=
"text !=null and text != ''"
>
and t_review_details.text like concat('%',#{text},'%')
</if>
</select>
</mapper>
</mapper>
quality-review/src/main/resources/mapper/ReviewKeyPointMapper.xml
View file @
037b5069
...
@@ -42,5 +42,18 @@
...
@@ -42,5 +42,18 @@
from t_review_keypoint
from t_review_keypoint
where id = #{id}
where id = #{id}
</select>
</select>
<select
id=
"selectKeypointList"
resultType=
"com.ruoyi.web.response.KeypointList"
>
select id,text,review_standard_id
from t_review_keypoint
where review_standard_id = #{id}
<if
test=
"text != null and text != ''"
>
and t_review_keypoint.text like concat('%', #{text}, '%')
</if>
</select>
<select
id=
"selectKeypointListNew"
resultType=
"com.ruoyi.web.response.DeleteDetailsList"
>
select *
from t_review_keypoint
where review_standard_id = #{id}
</select>
</mapper>
</mapper>
quality-review/src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
View file @
037b5069
...
@@ -50,6 +50,12 @@
...
@@ -50,6 +50,12 @@
<result
property=
"inspectStandardNo"
column=
"inspect_standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"inspectStandardNo"
column=
"inspect_standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"innovationBaseResult"
column=
"innovation_base_result"
jdbcType=
"VARCHAR"
/>
<result
property=
"innovationBaseResult"
column=
"innovation_base_result"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<update
id=
"updateByIdNew"
>
update t_review_scene_change_task
set task_status = #{task.taskStatus},
task_result = #{task.taskResult}
where id = #{task.id}
</update>
<select
id=
"findLastChangeByTaskId"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
<select
id=
"findLastChangeByTaskId"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
SELECT * FROM t_review_scene_change_task WHERE id IN
SELECT * FROM t_review_scene_change_task WHERE id IN
...
...
quality-review/src/main/resources/mapper/ReviewSceneMapper.xml
View file @
037b5069
...
@@ -30,6 +30,9 @@
...
@@ -30,6 +30,9 @@
select id,text,review_details_id
select id,text,review_details_id
from t_review_scene
from t_review_scene
where review_details_id = #{id}
where review_details_id = #{id}
<if
test=
"text != null and text != ''"
>
and text like concat('%', #{text}, '%')
</if>
</select>
</select>
<select
id=
"selectSceneListByDetailsId"
resultType=
"com.ruoyi.domain.ReviewScene"
>
<select
id=
"selectSceneListByDetailsId"
resultType=
"com.ruoyi.domain.ReviewScene"
>
select * from t_review_scene where review_details_id = #{detailsId}
select * from t_review_scene where review_details_id = #{detailsId}
...
...
quality-review/src/main/resources/mapper/ReviewStandardMapper.xml
View file @
037b5069
...
@@ -158,13 +158,17 @@
...
@@ -158,13 +158,17 @@
</select>
</select>
<select
id=
"getKeypointListByIdList"
resultType=
"com.ruoyi.web.response.KeypointList"
>
<select
id=
"getKeypointListByIdList"
resultType=
"com.ruoyi.web.response.KeypointList"
>
select
select
id,
text,
review_standard_id
id,
text,
review_standard_id
from t_review_keypoint
from t_review_keypoint
where t_review_keypoint.review_standard_id IN
where t_review_keypoint.review_standard_id IN
<foreach
item=
"id"
collection=
"idList"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"idList"
open=
"("
separator=
","
close=
")"
>
#{id}
#{id}
</foreach>
</foreach>
<if
test=
"text != null and text != ''"
>
and t_review_keypoint.text like concat('%', #{text}, '%')
</if>
</select>
</select>
<select
id=
"getDetailsIdList"
resultType=
"java.lang.Long"
>
<select
id=
"getDetailsIdList"
resultType=
"java.lang.Long"
>
select review_keypoint_id
select review_keypoint_id
from t_review_details
from t_review_details
...
@@ -184,6 +188,10 @@
...
@@ -184,6 +188,10 @@
select id,standard_id,standard_no,text,chapter
select id,standard_id,standard_no,text,chapter
from t_review_standard
from t_review_standard
where id = #{key}
where id = #{key}
order by
CAST(SUBSTRING_INDEX(chapter, '.', 1) AS UNSIGNED) ASC, -- 第一层数字
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 2), '.', -1) AS UNSIGNED) ASC, -- 第二层数字
CAST(SUBSTRING_INDEX(chapter, '.', -1) AS UNSIGNED) ASC -- 第三层数字(如果有)
</select>
</select>
<select
id=
"findTypeByStandardNew"
resultType=
"com.ruoyi.web.response.StandardTypeListResponse"
>
<select
id=
"findTypeByStandardNew"
resultType=
"com.ruoyi.web.response.StandardTypeListResponse"
>
SELECT DISTINCT type
SELECT DISTINCT type
...
@@ -214,6 +222,16 @@
...
@@ -214,6 +222,16 @@
<select
id=
"selectReviewStandardListByCarType"
resultType=
"com.ruoyi.web.response.ReviewStandardResponse"
>
<select
id=
"selectReviewStandardListByCarType"
resultType=
"com.ruoyi.web.response.ReviewStandardResponse"
>
select * from t_review_standard where type = 'car'
select * from t_review_standard where type = 'car'
</select>
</select>
<select
id=
"getKeypointList"
resultType=
"com.ruoyi.web.response.AddDetailsResponse"
>
select id,text,chapter,standard_id,standard_no
from t_review_standard
where standard_id = #{getKeypointListRequest.standardId} and standard_no = #{getKeypointListRequest.standardNo} and type = #{getKeypointListRequest.type}
</select>
<select
id=
"selectStandardList"
resultType=
"com.ruoyi.web.response.DeleteDetailsResponse"
>
select id,text,chapter,standard_id,standard_no
from t_review_standard
where standard_id = #{deleteDetailsRequest.standardId} and standard_no = #{deleteDetailsRequest.standardNo} and type = #{deleteDetailsRequest.type}
</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