|
|
|
@ -105,8 +105,6 @@ public class UserController {
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public ResultEntity reTraining(@RequestParam String userId) {
|
|
|
|
|
Flow flow = flowMapper.selectByPrimaryKey(userId);
|
|
|
|
|
flow.setFlowId(IdUtil.simpleUUID());
|
|
|
|
|
flowMapper.updateByPrimaryKey(flow);
|
|
|
|
|
PerformanceScoreExample example = new PerformanceScoreExample();
|
|
|
|
|
example.createCriteria().andFlowIdEqualTo(flow.getFlowId());
|
|
|
|
|
List<PerformanceScore> performanceScores = performanceScoreMapper.selectByExample(example);
|
|
|
|
@ -114,6 +112,9 @@ public class UserController {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
performanceScoreMapper.deleteByExample(example);
|
|
|
|
|
flow.setFlowId(IdUtil.simpleUUID());
|
|
|
|
|
flowMapper.updateByPrimaryKey(flow);
|
|
|
|
|
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "已重新实训!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|