Commit 7dad8312 authored by W_Y's avatar W_Y

查看车辆审查任务

parent 8ba7bb00
......@@ -13,7 +13,7 @@ import lombok.experimental.Accessors;
* @TableName t_review_task_inbox
*/
@ApiModel
@TableName(value ="t_system_review_task_inbox")
@TableName(value ="t_review_task_inbox")
@Accessors(chain = true)
@Data
public class ReviewTaskInbox {
......
......@@ -117,12 +117,12 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
@Override
public CarReviewTaskViewResponse viewReviewTask(Long taskId) {
CarReviewTask carReviewTask = carReviewTaskService.getById(taskId);
return strategyCarReviewTaskContext.getResource(carReviewTask.getTaskStatus() + "SystemReviewTask").doView(carReviewTask);
return strategyCarReviewTaskContext.getResource(carReviewTask.getTaskStatus()).doView(carReviewTask);
}
@Override
public void startReviewTask(CarReviewTaskStartRequest request) {
CarReviewTask carReviewTask = carReviewTaskService.getById(request.getTaskId());
}
@Override
......
package com.ruoyi.service.impl;
import com.ruoyi.service.StrategyCarReviewTask;
import com.ruoyi.service.StrategySystemReviewTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -13,8 +11,7 @@ import java.util.concurrent.ConcurrentHashMap;
@Service
public class StrategyCarReviewTaskContext {
@Autowired
private final Map<String, StrategyCarReviewTask> resourceMap = new ConcurrentHashMap<>();
private Map<String, StrategyCarReviewTask> resourceMap = new ConcurrentHashMap<>();
public void putResource(String key, StrategyCarReviewTask strategyCarReviewTask) {
resourceMap.put(key, strategyCarReviewTask);
......
package com.ruoyi.service.impl;
import com.ruoyi.service.StrategyReviewSceneChange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -12,7 +11,6 @@ import java.util.concurrent.ConcurrentHashMap;
@Service
public class StrategyReviewSceneChangeContext {
@Autowired
private final Map<String, StrategyReviewSceneChange> strategyMap = new ConcurrentHashMap<>();
public void putResource(String key, StrategyReviewSceneChange strategySystemReviewTask) {
......
package com.ruoyi.service.impl;
import com.ruoyi.service.StrategySystemReviewTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -12,7 +11,6 @@ import java.util.concurrent.ConcurrentHashMap;
@Service
public class StrategySystemReviewTaskContext {
@Autowired
private final Map<String, StrategySystemReviewTask> resourceMap = new ConcurrentHashMap<>();
public void putResource(String key, StrategySystemReviewTask strategySystemReviewTask) {
......
......@@ -44,7 +44,7 @@
<select id="findLastChangeByTaskId" resultType="com.ruoyi.domain.ReviewSceneChangeTask">
SELECT * FROM t_review_scene_change_task WHERE id IN
(
SELECT MAX(id) FROM t_review_scene_change_task WHERE task_status = 'FINISH' AND task_result = 'PASS' AND id IN (SELECT review_scene_change_task_id FROM t_system_review_task_inbox WHERE system_review_task_id = #{taskId} AND is_confirm = 0) GROUP BY review_scene_id
SELECT MAX(id) FROM t_review_scene_change_task WHERE task_status = 'FINISH' AND task_result = 'PASS' AND id IN (SELECT review_scene_change_task_id FROM t_review_task_inbox WHERE review_task_id = #{taskId} AND is_confirm = 0) GROUP BY review_scene_id
)
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment