diff --git a/project2/.idea/inspectionProfiles/Project_Default.xml b/project2/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..74d8cf0 --- /dev/null +++ b/project2/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,15 @@ + + + + \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/User.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/User.class index 01c74f1..69cf79c 100644 Binary files a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/User.class and b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/User.class differ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml index 2b029e0..62bdfb6 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml @@ -15,6 +15,5 @@ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/usermanage.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/usermanage.jsp index f4fc163..7116772 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/usermanage.jsp +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/usermanage.jsp @@ -136,7 +136,7 @@
- +
@@ -144,7 +144,7 @@ - + @@ -154,12 +154,23 @@ - - + @@ -175,24 +186,11 @@ 成绩查询 - - -
- <%-- 查询--%>
@@ -285,111 +283,6 @@
- <%-- 修改--%> -
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
- -
-
- -
-
- -
-
- <%-- 删除--%> -
-
-
-
-
-
- - -
-
-
-
-
- -
-
- -
-
- -
- -
- <%-- 添加--%> -
- -
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
- -
-
- -
-
- -
- -
diff --git a/project2/src/main/java/cyou/chenx221/pojo/User.java b/project2/src/main/java/cyou/chenx221/pojo/User.java index 7472eaf..10b79fd 100644 --- a/project2/src/main/java/cyou/chenx221/pojo/User.java +++ b/project2/src/main/java/cyou/chenx221/pojo/User.java @@ -1,7 +1,5 @@ package cyou.chenx221.pojo; -import java.util.List; - public class User { private Integer id; private String username; @@ -9,6 +7,15 @@ public class User { private String roles; private int detail;//对应身份的id private int disabled;//是否被禁用 + private boolean disabled_str; + + public boolean getDisabled_str() { + return disabled_str; + } + + public void setDisabled_str(boolean disabled_str) { + this.disabled_str = disabled_str; + } public int getDisabled() { return disabled; @@ -16,6 +23,7 @@ public class User { public void setDisabled(int disabled) { this.disabled = disabled; + this.disabled_str = (disabled != 0); } public User(String username, String password, String roles, int detail) { diff --git a/project2/src/main/resources/mapper/UserMapper.xml b/project2/src/main/resources/mapper/UserMapper.xml index 2b029e0..62bdfb6 100644 --- a/project2/src/main/resources/mapper/UserMapper.xml +++ b/project2/src/main/resources/mapper/UserMapper.xml @@ -15,6 +15,5 @@ diff --git a/project2/web/WEB-INF/views/usermanage.jsp b/project2/web/WEB-INF/views/usermanage.jsp index f4fc163..7116772 100644 --- a/project2/web/WEB-INF/views/usermanage.jsp +++ b/project2/web/WEB-INF/views/usermanage.jsp @@ -136,7 +136,7 @@
-
用户ID身份 身份ID 禁用状态操作操作
${user.username} ${user.roles} ${user.detail}${user.disabled} + ${user.disabled_str}
- - - + + + + + + + + +
+
@@ -144,7 +144,7 @@ - + @@ -154,12 +154,23 @@ - - + @@ -175,24 +186,11 @@ 成绩查询 - - -
- <%-- 查询--%>
@@ -285,111 +283,6 @@
- <%-- 修改--%> -
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
- -
-
- -
-
- -
-
- <%-- 删除--%> -
-
-
-
-
-
- - -
-
-
-
-
- -
-
- -
-
- -
- -
- <%-- 添加--%> -
- -
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
- -
-
- -
-
- -
- -
用户ID身份 身份ID 禁用状态操作操作
${user.username} ${user.roles} ${user.detail}${user.disabled} + ${user.disabled_str}
- - - + + + + + + + + +