Commit 15f976fc authored by W_Y's avatar W_Y

车型问卷提交

parent 9389bbe8
...@@ -11,5 +11,5 @@ public interface StrategyCarReviewTask { ...@@ -11,5 +11,5 @@ public interface StrategyCarReviewTask {
void doConfirmReview(CarReviewTask carReviewTask); void doConfirmReview(CarReviewTask carReviewTask);
void doSubmitReview(CarReviewTask carReviewTask); void doSubmitReview(CarReviewTask carReviewTask, String imagesUrl);
} }
...@@ -137,7 +137,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C ...@@ -137,7 +137,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
public void submitReviewTask(CarReviewTaskSubmitRequest request) { public void submitReviewTask(CarReviewTaskSubmitRequest request) {
CarReviewTask carReviewTask = carReviewTaskService.getById(request.getTaskId()); CarReviewTask carReviewTask = carReviewTaskService.getById(request.getTaskId());
strategyCarReviewTaskContext.getResource(carReviewTask.getReviewStatus()).doSubmitReview(carReviewTask); strategyCarReviewTaskContext.getResource(carReviewTask.getReviewStatus()).doSubmitReview(carReviewTask,request.getImagesUrl());
} }
@Override @Override
......
...@@ -44,7 +44,7 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi ...@@ -44,7 +44,7 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
} }
@Override @Override
public void doSubmitReview(CarReviewTask carReviewTask) { public void doSubmitReview(CarReviewTask carReviewTask,String imagesUrl) {
throw new ServiceException("不能提交一个结束的任务", HttpStatus.ERROR); throw new ServiceException("不能提交一个结束的任务", HttpStatus.ERROR);
} }
......
...@@ -67,7 +67,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali ...@@ -67,7 +67,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
} }
@Override @Override
public void doSubmitReview(CarReviewTask carReviewTask) { public void doSubmitReview(CarReviewTask carReviewTask,String imagesUrl) {
throw new ServiceException("不能提交一个未开始的任务", HttpStatus.ERROR); throw new ServiceException("不能提交一个未开始的任务", HttpStatus.ERROR);
} }
......
...@@ -39,7 +39,7 @@ public class StrategyCarReviewTaskNone implements StrategyCarReviewTask, Initial ...@@ -39,7 +39,7 @@ public class StrategyCarReviewTaskNone implements StrategyCarReviewTask, Initial
} }
@Override @Override
public void doSubmitReview(CarReviewTask carReviewTask) { public void doSubmitReview(CarReviewTask carReviewTask,String imagesUrl) {
throw new ServiceException("不能提交一个不存在的任务", HttpStatus.ERROR); throw new ServiceException("不能提交一个不存在的任务", HttpStatus.ERROR);
} }
......
...@@ -119,7 +119,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init ...@@ -119,7 +119,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
} }
@Override @Override
public void doSubmitReview(CarReviewTask carReviewTask) { public void doSubmitReview(CarReviewTask carReviewTask,String imagesUrl) {
throw new ServiceException("不能提交一个未确认的任务", HttpStatus.ERROR); throw new ServiceException("不能提交一个未确认的任务", HttpStatus.ERROR);
......
...@@ -60,7 +60,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi ...@@ -60,7 +60,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
} }
@Override @Override
public void doSubmitReview(CarReviewTask carReviewTask) { public void doSubmitReview(CarReviewTask carReviewTask, String imagesUrl) {
// 1. 填充review_submit_time // 1. 填充review_submit_time
carReviewTask.setReviewSubmitTime(new Date()); carReviewTask.setReviewSubmitTime(new Date());
...@@ -74,6 +74,9 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi ...@@ -74,6 +74,9 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
carReviewTask.setReviewSubmitId(loginUser.getUserId()); carReviewTask.setReviewSubmitId(loginUser.getUserId());
carReviewTask.setReviewSubmitName(loginUser.getNickName()); carReviewTask.setReviewSubmitName(loginUser.getNickName());
// 4. 保存签名图片地址
carReviewTask.setReviewImagesUrl(imagesUrl);
carReviewTaskMapper.updateById(carReviewTask); carReviewTaskMapper.updateById(carReviewTask);
} }
......
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