Commit f0d2c6a6 authored by Quxl's avatar Quxl

评委组权限

parent a43b69a9
...@@ -7,6 +7,7 @@ import java.util.Map; ...@@ -7,6 +7,7 @@ import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ResourceUtils; import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
...@@ -58,6 +59,7 @@ public class AdminAuthController { ...@@ -58,6 +59,7 @@ public class AdminAuthController {
} }
@ResponseBody @ResponseBody
@Transactional
@RequestMapping("adminSave") @RequestMapping("adminSave")
@ApiOperation("添加管理员") @ApiOperation("添加管理员")
@ApiImplicitParams({ @ApiImplicitParams({
......
package com.egolm.film.api.admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.egolm.common.bean.Rjx;
import com.egolm.film.api.admin.service.AdminTokenService;
import io.swagger.annotations.Api;
@Api
@Controller
@RequestMapping("admin/user")
public class AdminUserController {
@Autowired
AdminTokenService tokenService;
public Rjx queryGroupList(String keyword, Long index, Long limit) {
return Rjx.jsonOk();
}
}
package com.egolm.film.api.admin.service;
public interface AdminUserService {
}
...@@ -55,6 +55,7 @@ public class AdminAuthServiceImpl implements AdminAuthService { ...@@ -55,6 +55,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
@Override @Override
public void saveAdmin(Fc_admin admin) { public void saveAdmin(Fc_admin admin) {
jdbcTemplate.save(admin); jdbcTemplate.save(admin);
jdbcTemplate.executeUpdate("update fc_admin_group set user_num = user_num + 1 where group_id = ?", admin.getGroup_id());
} }
@Override @Override
......
package com.egolm.film.api.admin.service.impl;
import org.springframework.stereotype.Service;
import com.egolm.film.api.admin.service.AdminUserService;
@Service
public class AdminUserServiceImpl implements AdminUserService {
}
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