Commit 1326be35 authored by Quxl's avatar Quxl

x

parent a85cb364
......@@ -30,4 +30,6 @@ public interface AdminUserService {
void deleteUserById(Integer uid);
void deleteGroupById(Integer group_id);
}
......@@ -88,4 +88,9 @@ public class AdminUserServiceImpl implements AdminUserService {
jdbcTemplate.executeUpdate("delete from fc_user where uid = ?", uid);
}
@Override
public void deleteGroupById(Integer group_id) {
jdbcTemplate.executeUpdate("delete from fc_user_group where group_id = ?", group_id);
}
}
......@@ -160,10 +160,22 @@ public class AdminUserController {
@PostMapping("user_delete")
@ApiOperation("删除评委")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="uid", value="评委ID"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="uid", value="评委ID"),
})
public Rjx deleteUser(Integer uid) {
service.deleteUserById(uid);
return Rjx.jsonOk();
}
@ResponseBody
@Transactional
@PostMapping("group_delete")
@ApiOperation("删除评委组")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="group_id", value="评委组ID"),
})
public Rjx deleteGroup(Integer group_id) {
service.deleteGroupById(group_id);
return Rjx.jsonOk();
}
}
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