From d5f9f09a1092786b2920099ae21473fc945167dc Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Wed, 14 Jun 2023 20:01:41 +0800 Subject: [PATCH] front page(usermanage) Signed-off-by: Chenx221 --- .../inspectionProfiles/Project_Default.xml | 15 ++ .../classes/cyou/chenx221/pojo/User.class | Bin 2097 -> 2380 bytes .../WEB-INF/classes/mapper/UserMapper.xml | 1 - .../WEB-INF/views/usermanage.jsp | 143 +++--------------- .../main/java/cyou/chenx221/pojo/User.java | 12 +- .../src/main/resources/mapper/UserMapper.xml | 1 - project2/web/WEB-INF/views/usermanage.jsp | 143 +++--------------- 7 files changed, 61 insertions(+), 254 deletions(-) create mode 100644 project2/.idea/inspectionProfiles/Project_Default.xml 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 01c74f133f15532d024283d0a1123634feece3cb..69cf79cad6973f699f6c905a95087d5b366a1e8c 100644 GIT binary patch literal 2380 zcma)8U31e$6g_Lpb{v!#e}%*@fwTo|kzfd=&;$Z)I&D2ofgzB#dFd#&CMY#_##Z|A z*1y3o;Dv`WgQqin=nv?RDxABLZP}4$`l8jY?!D*iId^yT?|*;)1K=LE(}*FSf?*rR z(Ch!K=wfL>)j}zx1ub}=;rbJiRH0C*o-Rkj7#&0uBNzzNF=hj;PuDuVBFR@Gibh8! z$hA&qi(^Cwc7~{E_7l-VGZudwG@Nh9Xg0gsIq5c>uUu(}wB%fq z&czCQ&g3CWab)B1EhbH_N4BsY*|mCPuj-M9Nsl~>9CJ|k5FhdRF=sW7ietih3-wxu zUE(vT7w2%9@1`GsE2wa$P=&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_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}
- - - + + + + + + + + +