From a998d664f30137277d548f61dd296ee7c2c51f6f Mon Sep 17 00:00:00 2001 From: ChineseTony <13206573871@163.com> Date: Sun, 7 Apr 2019 12:22:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=AF=BE=E8=A1=A8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/jsp/AddCourse.jsp | 69 ++++++++++++- WebContent/jsp/AddTbUser.jsp | 9 +- WebContent/jsp/Header.jsp | 13 +-- WebContent/jsp/QueryCourse.jsp | 2 +- WebContent/jsp/QueryTbUser.jsp | 4 +- WebContent/jsp/UpdateCourse.jsp | 69 ++++++++++++- WebContent/jsp/UpdateTbUser.jsp | 93 ++++++++++++++++++ .../controller/CourseController.class | Bin 4352 -> 6350 bytes .../service/CourseServiceImpl.class | Bin 4082 -> 3975 bytes .../controller/CourseController.java | 47 ++++++++- .../controller/TbUserController.java | 4 +- .../curriculum/service/CourseServiceImpl.java | 3 +- 12 files changed, 277 insertions(+), 36 deletions(-) create mode 100644 WebContent/jsp/UpdateTbUser.jsp diff --git a/WebContent/jsp/AddCourse.jsp b/WebContent/jsp/AddCourse.jsp index 1421183..f5c094c 100644 --- a/WebContent/jsp/AddCourse.jsp +++ b/WebContent/jsp/AddCourse.jsp @@ -1,12 +1,14 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> - 增加客户 + 增加课程 @@ -38,7 +40,7 @@
  • 系统管理
  • -
  • 客户管理
  • +
  • 课程管理
  • @@ -68,24 +70,81 @@
    - +
    - +
    - +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    +
    + +
    + +
    + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    diff --git a/WebContent/jsp/AddTbUser.jsp b/WebContent/jsp/AddTbUser.jsp index ae8834a..222d459 100644 --- a/WebContent/jsp/AddTbUser.jsp +++ b/WebContent/jsp/AddTbUser.jsp @@ -51,7 +51,7 @@
    -
    +
    @@ -65,12 +65,7 @@
    -
    - -
    - -
    -
    +
    diff --git a/WebContent/jsp/Header.jsp b/WebContent/jsp/Header.jsp index 529b8c1..33d0768 100644 --- a/WebContent/jsp/Header.jsp +++ b/WebContent/jsp/Header.jsp @@ -36,7 +36,7 @@ data-toggle="dropdown"> 系统管理 @@ -49,16 +49,7 @@ - - +
    diff --git a/WebContent/jsp/QueryTbUser.jsp b/WebContent/jsp/QueryTbUser.jsp index 3f24455..a761f9b 100644 --- a/WebContent/jsp/QueryTbUser.jsp +++ b/WebContent/jsp/QueryTbUser.jsp @@ -17,11 +17,11 @@ diff --git a/WebContent/jsp/UpdateCourse.jsp b/WebContent/jsp/UpdateCourse.jsp index cea03ca..ecf45e3 100644 --- a/WebContent/jsp/UpdateCourse.jsp +++ b/WebContent/jsp/UpdateCourse.jsp @@ -1,6 +1,7 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> @@ -57,36 +58,94 @@
    -
    +
    - +
    - +
    - +
    - +
    + +
    + +
    + +
    +
    + + +
    + +
    + + +
    +
    + +
    + +
    + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    diff --git a/WebContent/jsp/UpdateTbUser.jsp b/WebContent/jsp/UpdateTbUser.jsp new file mode 100644 index 0000000..9469e17 --- /dev/null +++ b/WebContent/jsp/UpdateTbUser.jsp @@ -0,0 +1,93 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> + + + + + + 修改用户信息 + + + + + + + + + + + + + + + + +
    + + + +
    + + +
    + +
    + + +
    + + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    + +
    +
    + + + +
    +
    + + +
    + +
    +
    + + + + + \ No newline at end of file diff --git a/build/classes/cn/edu/hrbcu/curriculum/controller/CourseController.class b/build/classes/cn/edu/hrbcu/curriculum/controller/CourseController.class index b0eaeb1aec017e98408c0694872a3efbb7d2cc9e..633fad6a2f4a8df279254e47edef86c8a8818bd5 100644 GIT binary patch literal 6350 zcmbVQ>3`JL6+Ie{M}tQ=VE}_^3zTd&7zANUYyz>(61QVxY+_21mdG>0mYI6=fkfi&*{T2P(U(b7zH5!j6w)4Rw>FK?D&%5W|^R9g5 zf6qM+U>p9UBBo$#*4E8jNgs8Gvn4%Sa$PH1%9jdy*0DX;$>&X1?{-RV(d-TfRKyir zJ!YIV^t@q@=m&?#%&eziaaK+oG~JU{)>NQpY8fy3Qv%Duf(`}E10~zD3g(biw1)F$ zr)@i);aQGdRB%(qaYyvxxNF%X$6cdfPB`ufeb_YYqJG@SdX77(8{q=Iv*bAwmTTr{ zw$aEMIkPYsBHKJCvd)SXw6VnBT*1kip_#37n(;#ySyZ;N*{G6h#Ziyl1)Za}W z8zV%JbcszAOC6;F3bdSg+$iO}As?W!Wf2EkHPj=~fDPEFqKy?%6+I1`pwpUVPp>51 zJt=I#RuwlY*tj4)&?r*dsVYS?PkHfKBl$~PdRl$rN}iS1Ggi^-5b$+`^>PK#aBZsnkqGo2SA`}J7=KURa4-`oiQgkHam7p`H@u^mckq> zgQS*A56rRQIZXKlDJ?Zh{bJ2bOY5@fl8N*O1l#2E6;2E(TZoJm$Jq{;T~2P278gg9 zvujep%`NkaTu{)J=$1#bscSL-C)DeNhCB-FBcf6y-0fVDyO1OTPh@4Uq~N-F0p0PsP6aC}x7CviqaL%Q-YY6jD!8VWTt+gk0VS*uKa(0x<6fR% zlo|nLTHjZC_J6H zoDYKsm>xbv$bLk_qj-$PZZXZ=;M`HrGEclcNqm61e%x^<3^&(a)jUVp2$|6K@{IG? zVv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{D-eAwcaWne&}~@E8nvACLJDlHAK+rLkmOoqPcFy zm(0vUd?b^%7Obp}HneloT~iT7rw=iPE^Z!Z>wL%@c5)z{C8IC+0rM5azlXZqv|%M+K4uLrq6g)?Le|m*UBEF5erS^r4Tz z;7u;0RYNbTR6NEIh%e?=;}_Pf?DfHwwQSB3SEqHH!65(3(-9hCP*=?bYa}zjBCgKq zcpM`D^_nX;DCR!+rOG4kqKc1gv=oo~DwiW|AU=MU(rU`gTTUY?=J~%>9h7TB$7htw2;5={-wZ_U3NSG+dLE#$#_7%I z?TKxn@<%ch1nB9N&Je1}7NHb?AZqB%@Bki!3qGh!OLJd)S`}jA(5}10uJWT zfQM#r2;m$K%VK|%+xAk>ld+%B*tv=30y-3o(dkG5-3;T~=$SFL@JPbFjoz6p^d~%Z zp5VYHPSNXZoqH3*Q)E5SRWy>pamV_BvbrSnHqs0bCUA!dQWKg!f-^fvMwzsy@eDb|B&Nu(2wQNYNMe$m<+e0=8K=>8OXMLZxQN_O zCxMqqL}Fr&XPPXAt9X{~MfD);-PO%fb&~>IJJmZ2c#g(m+*`eevYwRHMb84ZqX}Wn zW1&=4@FtkqjYFZ^=aGi(NM|n#ixS7Z@_9kXXQ?co45f8b+WKuQlQvey43f~Qpvx#A zuVB1O0Cof%l#%^VF+ku>(HKul;4#}tQ9@pimvEi1spNT?dJq#=WH&DIzEWatuhw6c zBO9hjF|tZ2=K@}%wu5h!K{zuzN34yMW@d}E*`cknNE^dj_bK$YEHqRsB(*`)c}Kzi zIup=H17c(MYNI?IhFh?Aq_DT4_hp@HG*&U#NUn z4$&S6`T8+UUx*p{3e3{lUD>6RNU7lnY)2?Hw5wu;ge*S3Pw$^dOy?;^VA>)1Qw9C| ln>VTa+^&-QIrdW)j@vDg%FijGf-j0Yq2Nn8mzVOZ{{gMa?pgo< diff --git a/build/classes/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.class b/build/classes/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.class index 5d399c3c808857741212428957be5b01a0e1adfe..337197492a95bcbbc5f2b99d25927208416faa58 100644 GIT binary patch delta 465 zcmZ9HO-oc^6vuyen)J?{M;ZnrvtrDPA*KwXM$kfWk-gwxxdXmip8x;+P0S=>d;hj}fL4B$6EbMl z3ue_u{S7m5+TdJnbinc5&O(ou9(KIKZMV?tX54;1op<%Vxn7o6JZ4<4MC`T+o|f~( zAU5RWon*$z4kmkjFP$A!JY(D-EXAQ=(;qojv}i#qmRQzX)`Re8#TR`(S`}VZ zeEoAZdgX*}P_fF95WnT{5HZPRh%ef8N+pIo#-w}kXy#KPJRryo=f>?St1=%8Dw6g}MGK6iEYlw*H8GPFiSShD+F_(Q^ycZ+QOBytEgT5>4> delta 496 zcmXAjOKVeM5Qd*GDe;`+XHuhxifJODg0>}#svDJxQtAaS7*Pr$9NN>6k~SediH-HH zF1d5Ztu+7Nd8GW-~N970&L~YduPN- zmKAF&rD50i_SE_(-LX=^%X$TG$j?_j#c}gHvdPT1b%!?ZH#63|$QjKfHPdgWw@q<= z8Rr!3qi)sB6x{J#ChM2;<2lU*YKk@~#w;!=aG2tX<|^0BoSjzJ%~yLv?1n;hI@GzP zS&3NhNF&bRb&L>|~d0D<<#-H_9|b#f(Nf`l?H0x&o>JXX6(GF3*zcS)@J~Z!B=L zHJFY!0;U7*1(=i4da{J>X=1>v`L5TQAJIr+K>qAw1qVoTP!t_zfFm5`7^ldZaLi55 X{r~zBTQDM8UJ1SycO>r>);#t academies = academyService.selectAllAcademy(); + List coursemodes = coursemodeService.selectAllCoursemode(); + List coursetypes= coursetypeService.selectAllCoursetype(); + List teachingmethods = teachingmethodService.selectAllTeachingmethod(); + List examinationmethods = examinationmethodService.selectAllExaminationmethod(); + ModelAndView modelAndView = new ModelAndView(); + modelAndView.setViewName("/jsp/AddCourse"); + System.out.println(academies.size()); + modelAndView.addObject("academies", academies); + modelAndView.addObject("coursemodes", coursemodes); + modelAndView.addObject("coursetypes", coursetypes); + modelAndView.addObject("teachingmethods", teachingmethods); + modelAndView.addObject("examinationmethods", examinationmethods); + return modelAndView; + + } + @RequestMapping("/toUpdateCourse.action") public Object toUpdateCourse(Course course){ + List academies = academyService.selectAllAcademy(); + List coursemodes = coursemodeService.selectAllCoursemode(); + List coursetypes= coursetypeService.selectAllCoursetype(); + List teachingmethods = teachingmethodService.selectAllTeachingmethod(); + List examinationmethods = examinationmethodService.selectAllExaminationmethod(); course = courseService.selectCourseById(course); ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("/jsp/UpdateCourse"); + System.out.println(academies.size()); modelAndView.addObject("course", course); - + modelAndView.addObject("academies", academies); + modelAndView.addObject("coursemodes", coursemodes); + modelAndView.addObject("coursetypes", coursetypes); + modelAndView.addObject("teachingmethods", teachingmethods); + modelAndView.addObject("examinationmethods", examinationmethods); return modelAndView; } diff --git a/src/cn/edu/hrbcu/curriculum/controller/TbUserController.java b/src/cn/edu/hrbcu/curriculum/controller/TbUserController.java index cb232cd..4b7dc0d 100644 --- a/src/cn/edu/hrbcu/curriculum/controller/TbUserController.java +++ b/src/cn/edu/hrbcu/curriculum/controller/TbUserController.java @@ -66,8 +66,8 @@ public class TbUserController { tbUser = tbUserService.selectTbUserById(tbUser); ModelAndView modelAndView = new ModelAndView(); - modelAndView.setViewName("UpdateCourse"); - modelAndView.addObject("course", tbUser); + modelAndView.setViewName("/jsp/UpdateTbUser"); + modelAndView.addObject("tbUser", tbUser); return modelAndView; } diff --git a/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java index 83bb257..1e6492e 100644 --- a/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java @@ -60,8 +60,7 @@ public class CourseServiceImpl implements CourseService { @Override public int updateCourse(Course course) { - CourseExample example = new CourseExample(); - return courseMapper.updateByExampleSelective(course, example); + return courseMapper.updateByPrimaryKeySelective(course); } -- Gitee From 48a09b8b4e46cb3b28d238066b37bb876cc5517b Mon Sep 17 00:00:00 2001 From: ChineseTony <13206573871@163.com> Date: Sun, 7 Apr 2019 12:40:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 66f103d..815684b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.class .classpath .project +buil/ # Java class files *.class -- Gitee From 575112a0df0a77f5107c04657f216cb9a7ff7395 Mon Sep 17 00:00:00 2001 From: ChineseTony <13206573871@163.com> Date: Sun, 7 Apr 2019 14:55:52 +0800 Subject: [PATCH 3/3] fix --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 815684b..2f24f9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ *.class .classpath .project -buil/ +build/ # Java class files *.class -- Gitee