Commit 41c23a7c authored by W_Y's avatar W_Y

体系审查问卷提交保存图片地址

parent 15f976fc
......@@ -9,7 +9,7 @@ public interface StrategySystemReviewTask {
void doConfirm(SystemReviewTask systemReviewTask);
void doSubmit(SystemReviewTask systemReviewTask);
void doSubmit(SystemReviewTask systemReviewTask, String imagesUrl);
void doClose(SystemReviewTask systemReviewTask);
......
......@@ -26,7 +26,7 @@ public class StrategySystemReviewTaskClose implements StrategySystemReviewTask,
}
@Override
public void doSubmit(SystemReviewTask systemReviewTask) {
public void doSubmit(SystemReviewTask systemReviewTask, String imagesUrl) {
throw new ServiceException("不能提交一个已关闭的任务", HttpStatus.ERROR);
}
......
......@@ -26,7 +26,7 @@ public class StrategySystemReviewTaskFinish implements StrategySystemReviewTask,
}
@Override
public void doSubmit(SystemReviewTask systemReviewTask) {
public void doSubmit(SystemReviewTask systemReviewTask, String imagesUrl) {
throw new ServiceException("不能提交一个已完成的任务", HttpStatus.ERROR);
}
......
......@@ -40,7 +40,7 @@ public class StrategySystemReviewTaskNew implements StrategySystemReviewTask, In
}
@Override
public void doSubmit(SystemReviewTask systemReviewTask) {
public void doSubmit(SystemReviewTask systemReviewTask, String imagesUrl) {
throw new ServiceException("不能提交一个尚未开始的任务", HttpStatus.ERROR);
}
......
......@@ -55,7 +55,7 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
}
@Override
public void doSubmit(SystemReviewTask systemReviewTask) {
public void doSubmit(SystemReviewTask systemReviewTask, String imagesUrl) {
throw new ServiceException("不能提交一个未确认的任务", HttpStatus.ERROR);
}
......
......@@ -50,7 +50,7 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
}
@Override
public void doSubmit(SystemReviewTask systemReviewTask) {
public void doSubmit(SystemReviewTask systemReviewTask, String imagesUrl) {
// 1. 填充task_end_time
systemReviewTask.setTaskEndTime(new Date());
......@@ -64,6 +64,9 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
systemReviewTask.setSubmitById(loginUser.getUserId());
systemReviewTask.setSubmitByName(loginUser.getNickName());
// 4.保存签名图片地址
systemReviewTask.setImagesUrl(imagesUrl);
systemReviewTaskMapper.updateById(systemReviewTask);
}
......
......@@ -125,7 +125,7 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
@Override
public void submit(SystemReviewTaskSubmitRequest request) {
SystemReviewTask systemReviewTask = systemReviewTaskService.getById(request.getTaskId());
strategySystemReviewTaskContext.getResource(systemReviewTask.getTaskStatus()).doSubmit(systemReviewTask);
strategySystemReviewTaskContext.getResource(systemReviewTask.getTaskStatus()).doSubmit(systemReviewTask,request.getImagesUrl());
}
}
......
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