Commit 4a76a0c0 authored by Quxl's avatar Quxl

x

parent ae2668b4
...@@ -28,4 +28,6 @@ public interface AdminUserService { ...@@ -28,4 +28,6 @@ public interface AdminUserService {
List<Fc_user_group_fun> queryGroupFunList(Integer group_id); List<Fc_user_group_fun> queryGroupFunList(Integer group_id);
void deleteUserById(Integer uid);
} }
...@@ -83,4 +83,9 @@ public class AdminUserServiceImpl implements AdminUserService { ...@@ -83,4 +83,9 @@ public class AdminUserServiceImpl implements AdminUserService {
return jdbcTemplate.queryForBeans("select * from fc_user_group_fun where group_id = ?", Fc_user_group_fun.class, group_id); return jdbcTemplate.queryForBeans("select * from fc_user_group_fun where group_id = ?", Fc_user_group_fun.class, group_id);
} }
@Override
public void deleteUserById(Integer uid) {
jdbcTemplate.executeUpdate("delete from fc_user where uid = ?", uid);
}
} }
...@@ -154,4 +154,16 @@ public class AdminUserController { ...@@ -154,4 +154,16 @@ public class AdminUserController {
} }
return Rjx.jsonOk().setData(user); return Rjx.jsonOk().setData(user);
} }
@ResponseBody
@Transactional
@PostMapping("user_delete")
@ApiOperation("保存或更新评委")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="uid", value="评委ID"),
})
public Rjx deleteUser(Integer uid) {
service.deleteUserById(uid);
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