Commit 6e69308f authored by Quxl's avatar Quxl

提交申报

parent b2c7b5ea
...@@ -70,7 +70,10 @@ public class MemberApplyController { ...@@ -70,7 +70,10 @@ public class MemberApplyController {
@PostMapping("doApply") @PostMapping("doApply")
@ApiOperation("提交申报") @ApiOperation("提交申报")
@ApiImplicitParams({@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "id")}) @ApiImplicitParams({@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "id")})
public Object doApply(String id) { public Object doApply(Long id) {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
memberService.doApply(member_id, id);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
......
...@@ -38,4 +38,6 @@ public interface MemberService { ...@@ -38,4 +38,6 @@ public interface MemberService {
List<Fc_member_film_show> queryMemberFilmShowList(Long member_film_id); List<Fc_member_film_show> queryMemberFilmShowList(Long member_film_id);
void doApply(Integer member_id, Long member_film_id);
} }
...@@ -92,4 +92,9 @@ public class MemberServiceImpl implements MemberService { ...@@ -92,4 +92,9 @@ public class MemberServiceImpl implements MemberService {
return jdbcTemplate.queryForBeans("select * from fc_member_film_show where film_id = ?", Fc_member_film_show.class, member_film_id); return jdbcTemplate.queryForBeans("select * from fc_member_film_show where film_id = ?", Fc_member_film_show.class, member_film_id);
} }
@Override
public void doApply(Integer member_id, Long member_film_id) {
jdbcTemplate.executeUpdate("update fc_member_film set state = ?, apply_state = ? where id = ? and member_id = ?", 2, 2, member_film_id, member_id);
}
} }
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