|
@@ -115,6 +115,22 @@ public class ReplacementInstrumentActivityController extends BaseController {
|
|
|
return succeed(replacementInstrumentActivityService.getInfo(id));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取置换的详情")
|
|
|
+ @GetMapping("/getInfoByCooperationOrganId")
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "cooperationOrganId", value = "合作单位id", required = true, dataType = "int")})
|
|
|
+ public HttpResponseResult<ReplacementInstrumentActivityStatDto> getInfoByCooperationOrganId(Integer cooperationOrganId) {
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null) {
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请重新登陆");
|
|
|
+ }
|
|
|
+ ReplacementInstrumentActivity replacementInstrumentActivity = replacementInstrumentActivityService.findByUserId(cooperationOrganId, sysUser.getId());
|
|
|
+ if(replacementInstrumentActivity == null){
|
|
|
+ return failed("未查询到您参与调查的记录");
|
|
|
+ }
|
|
|
+ Integer activityId = replacementInstrumentActivity.getId();
|
|
|
+ return succeed(replacementInstrumentActivityService.getInfo(activityId));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "置换支付")
|
|
|
@PostMapping("/pay")
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "replacementPayDto", value = "支付参数", required = true, dataType = "ReplacementPayDto")})
|