|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.sztzjy.fund_investment.controller;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import com.sztzjy.fund_investment.annotation.AnonymousAccess;
|
|
|
|
|
import com.sztzjy.fund_investment.annotation.OperateLog;
|
|
|
|
|
import com.sztzjy.fund_investment.config.security.JwtUser;
|
|
|
|
@ -91,4 +92,14 @@ public class UserController {
|
|
|
|
|
}
|
|
|
|
|
System.out.println(new BCryptPasswordEncoder().encode(password));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "重新实训",httpMethod = "POST")
|
|
|
|
|
@PostMapping("reTraining")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public ResultEntity reTraining(@RequestParam String userId) {
|
|
|
|
|
Flow flow = flowMapper.selectByPrimaryKey(userId);
|
|
|
|
|
flow.setFlowId(IdUtil.simpleUUID());
|
|
|
|
|
flowMapper.updateByPrimaryKey(flow);
|
|
|
|
|
return new ResultEntity(HttpStatus.OK,"已重新实训!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|