From ec49018b9bebc2e6e61f51b9ace9b69334b3986c Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Sat, 17 Jun 2023 11:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E4=BF=A1=E6=81=AF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Chenx221 --- .../controller/TeacherController.class | Bin 7132 -> 7917 bytes .../cyou/chenx221/mapper/TeacherDao.class | Bin 577 -> 598 bytes .../chenx221/mapper/impl/TeacherDaoImpl.class | Bin 1661 -> 1775 bytes .../chenx221/service/TeacherService.class | Bin 1284 -> 1384 bytes .../WEB-INF/classes/mapper/TeacherMapper.xml | 5 +++ .../WEB-INF/views/dashboard.jsp | 1 - .../WEB-INF/views/teachermanage.jsp | 17 +++++++- .../controller/TeacherController.java | 40 +++++++++++++++--- .../java/cyou/chenx221/mapper/TeacherDao.java | 2 + .../chenx221/mapper/impl/TeacherDaoImpl.java | 5 +++ .../cyou/chenx221/service/TeacherService.java | 4 ++ .../main/resources/mapper/TeacherMapper.xml | 5 +++ project2/web/WEB-INF/views/dashboard.jsp | 1 - project2/web/WEB-INF/views/teachermanage.jsp | 17 +++++++- 14 files changed, 86 insertions(+), 11 deletions(-) diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/TeacherController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/TeacherController.class index e0722e857453e6053198edb7cd47f1c4a2bf512c..ddf86c294f0fa87a246f4c363b99b6c2783b4469 100644 GIT binary patch literal 7917 zcmc&(33yc175;BB$(u|j2?PTSAc!I)kYNNxaRMrY#UPsmW5ER{GcU>DWM-IoLx|P1 zE+|^}y0N3xqO~G!2@qOaTcM@UDHsFf{qRqY~jjPq5CQvvd91Uyd3FKE+ zH59>#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O{GUH2fUDKoKU1 zDflH@#oWsU+~==Q!X1r)Mo#rhaLTg0LW|_oYbZK_^T?@_n1T`ocENV?EBP=aVVbF+ znqR>1*$NiqI~-2u@uJFV2uelW)L;t=Z4FlOa zMv*b4p&LDhL>xCH;<*C8v?StnsSY2Ql8`jMVM>M}9!cYy*^D1%GyXQ4@hxfWJ<;3Q zdcKopBn0p~;xtbRlsHOEIJnJsU7xSaC+&;(<7U?#2e2UrdlRZLE}Xg(o*F@@>rvndIlBFaii$2`>9e8ky>En^i2`N*_IjBu}N!@TO zhEmw56rFg?o!5yim3BiT>>b!TwV<@Xa`=?#(DjA=*d-5|T;rfwOyYsmwvpO)UVjb1 z4aDb-xQsNf#!aOE&CL3(ysNv7J#Od!J8>U2U?c9vX551(@gQmP5EK0{6@C*5_ozYW zCNqQy%9219W!bVQ%hn$_mXu{n(o>$!??RF?kL|bdN4E00ipTL0$)@mWgh4htXB&t= zaYTVZEjN@C7(j?uoWN*uW|+hIvEN@ z78bAZo2T3BDHLY~>_=%hN}@O`4AT)OsEGgMCW$v*x|wy0rx(^_5{Go)nHfW^41U?l z;GT>O4mL`Ft#r1HGD$2_h=<~7jKj{f>c*4IgvZLnAe0(0%rRo9AgAPn{5z5vr+=L$ uPXEq`6aTK37N=bN$B6NNjj=B7>I9!ZmSHqx;S-$XvxCof;THZ;qu_s9?CRwJ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/TeacherDao.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/TeacherDao.class index c3e6b2bcbbf8362f1733909b546e3124c1350e6f..a9dfd1cb734bea42208916f52a77816e78db4a4a 100644 GIT binary patch delta 71 zcmX@ea*c)S)W2Q(7#J9A8ALa7)iZJ>rlf?VCMIX37ENwrEMa7w{F~80j)jpyfPojN ViitrGObRgw18Ft}Mg|cE1_0Qf4o(07 delta 52 zcmcb{a*&1V)W2Q(7#J9A8ALX6)iX|>##qS6GMR(PK#YNjK>#Sh#30BZ1fvoXq?w3Es2SnncsVFzTdo=Z|BRk-+x};fG+(d$J+D4>x!w eS6HsU5M+3WMoR613A?`|7#v6S?n$!4Q}_j!CMg;K delta 421 zcmaKpIZgvX5Jg|NJ+>G;Xt0D442wZRG9H83_f>+ND-dx7G7jOCBak2n3;_oq;wEqb z5WmLO*a0G``rTdsRdx4g^j!(xe_r2!W6mDKDPJnH?3nL-_=%@$f9oe3I6R|NR1-)C zG__7UU&Z9IrM)oX$SQ4RQ|5Q9Ntcw@m7Sa$8R;sRZ5zo>%xeUz zw%8+VN_)1nS7ST#+y`@a15Yy4HOjk2?650O&%Gy=u&`QhLCYSY0M!z_{(-?csP)a0WH@NSyuk1f{028iPAtwL; diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml index 65581cb..a4d98c4 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml @@ -83,4 +83,9 @@ WHERE id = #{id}; + + INSERT INTO teacher (name, sex, birthday, course_id, classes) + VALUES (#{name}, #{sex}, #{birthday}, #{course.CourseID}, #{classes}) + + \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp index ccacae7..b116c29 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp @@ -58,7 +58,6 @@