Commit 36e16163 authored by Quxl's avatar Quxl

x

parent 4bd10bfd
......@@ -96,4 +96,28 @@ public class UserReviewController {
List<Map<String, Object>> list = service.queryDoubtfulListByFilmId(film_id, user_id);
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@PostMapping("doubtful_save")
@ApiOperation("保存疑点记录")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "review_id", value="审片ID"),
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "enroll_type_id", value="申报奖项ID"),
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "doubtful_type_id", value="疑点类型ID"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "doubtful_text", value="疑点描述"),
@ApiImplicitParam(paramType = "query", dataType = "date", required = false, name = "play_time", value="播放时间{yyyy-MM-dd HH:mm:ss}"),
})
public Object saveReviewRecord(Integer review_id, Integer doubtful_type_id, String doubtful_text, @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")Date play_time) {
LoginToken token = tokenService.getToken();
Integer user_id = (Integer)token.getId();
Fc_review_doubtful doubtful = new Fc_review_doubtful();
doubtful.setCreate_time(new Date());
doubtful.setDoubtful_text(doubtful_text);
doubtful.setDoubtful_type_id(doubtful_type_id);
doubtful.setPlay_time(play_time);
doubtful.setReview_id(review_id);
doubtful.setUser_id(user_id);
service.saveDoubtful(doubtful);
return Rjx.jsonOk().setData(doubtful);
}
}
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