mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-30 18:06:19 +08:00
use student id as primary key instead.
This commit is contained in:
@@ -45,7 +45,7 @@ public class GetUser extends HttpServlet {
|
||||
out.println(gson.toJson(new Response(Response.ResponseCode.PARAMETER_REQUIRED)));
|
||||
} else if (id != null) {
|
||||
try {
|
||||
User u = TableUser.getUserById(Integer.parseInt(id));
|
||||
User u = TableUser.getUserById(Long.parseLong(id));
|
||||
if (u == null)
|
||||
out.println(gson.toJson(new Response(Response.ResponseCode.USER_NOT_FOUND)));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user