From dfebbb3182c6be422c5cc2bbbaf3f536d9c431a5 Mon Sep 17 00:00:00 2001 From: jinxuesong Date: Fri, 5 Apr 2019 16:52:47 +0800 Subject: [PATCH 1/2] fixed --- .../controller/CurriculumController.class | Bin 3457 -> 3457 bytes .../controller/CurriculumController.java | 7 ------- 2 files changed, 7 deletions(-) diff --git a/build/classes/cn/edu/hrbcu/curriculum/controller/CurriculumController.class b/build/classes/cn/edu/hrbcu/curriculum/controller/CurriculumController.class index d8cbf6358f2e0970b1af9caf271d1dd0e1465393..5c49412598625585a87fe9910a34629562191003 100644 GIT binary patch delta 116 zcmZpaZj@fY#V9(Nk!zl$Gy?~N41*wp9D@{tJcA;G0)rNiG+|Jlyn|~2t0n_CgVy9& z?owU@Aj^n>pMilvjDcygBd_S>FWj!I77SbrR+H^`Dg+&X@{SC`3{DJ^49-9kTqhsr P$z}Bdiuz2pR diff --git a/src/cn/edu/hrbcu/curriculum/controller/CurriculumController.java b/src/cn/edu/hrbcu/curriculum/controller/CurriculumController.java index 7295c88..789c0b6 100644 --- a/src/cn/edu/hrbcu/curriculum/controller/CurriculumController.java +++ b/src/cn/edu/hrbcu/curriculum/controller/CurriculumController.java @@ -3,16 +3,9 @@ package cn.edu.hrbcu.curriculum.controller; import java.util.ArrayList; import java.util.List; -import javax.servlet.http.HttpServletRequest; - -import org.apache.shiro.SecurityUtils; -import org.apache.shiro.authc.AuthenticationException; -import org.apache.shiro.authc.UsernamePasswordToken; -import org.apache.shiro.subject.Subject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; -- Gitee From 3a9397959435e4bfa606b51cf9369571dc090def Mon Sep 17 00:00:00 2001 From: jinxuesong Date: Fri, 5 Apr 2019 17:26:16 +0800 Subject: [PATCH 2/2] fixed error --- WebContent/jsp/Pager.jsp | 10 +++++----- WebContent/jsp/QueryCourse.jsp | 14 +++++++++++--- .../controller/CourseController.class | Bin 3309 -> 3677 bytes .../service/AcademyServiceImpl.class | Bin 2381 -> 2436 bytes .../service/CourseServiceImpl.class | Bin 3140 -> 3195 bytes .../service/CoursemodeServiceImpl.class | Bin 2450 -> 2505 bytes .../service/CoursetypeServiceImpl.class | Bin 2450 -> 2505 bytes .../service/CurriculumServiceImpl.class | Bin 3279 -> 3334 bytes .../ExaminationmethodServiceImpl.class | Bin 2600 -> 2655 bytes .../service/TbUserServiceImpl.class | Bin 2824 -> 2824 bytes .../service/TeachingmethodServiceImpl.class | Bin 2534 -> 2589 bytes .../controller/CourseController.java | 11 +++++++++-- .../service/AcademyServiceImpl.java | 4 ++-- .../curriculum/service/CourseServiceImpl.java | 4 ++-- .../curriculum/service/CoursemodeService.java | 2 -- .../service/CoursemodeServiceImpl.java | 4 ++-- .../service/CoursetypeServiceImpl.java | 4 ++-- .../service/CurriculumServiceImpl.java | 2 ++ .../service/ExaminationmethodServiceImpl.java | 4 ++-- .../curriculum/service/TbUserServiceImpl.java | 2 -- .../service/TeachingmethodServiceImpl.java | 4 ++-- src/cn/edu/hrbcu/utils/Common.java | 2 +- 22 files changed, 40 insertions(+), 27 deletions(-) diff --git a/WebContent/jsp/Pager.jsp b/WebContent/jsp/Pager.jsp index a5e2fec..41f0ecf 100644 --- a/WebContent/jsp/Pager.jsp +++ b/WebContent/jsp/Pager.jsp @@ -7,9 +7,9 @@ diff --git a/WebContent/jsp/QueryCourse.jsp b/WebContent/jsp/QueryCourse.jsp index af2dc8e..8cfddf9 100644 --- a/WebContent/jsp/QueryCourse.jsp +++ b/WebContent/jsp/QueryCourse.jsp @@ -36,7 +36,7 @@ @@ -60,7 +60,7 @@ 理论学时 实验学时 学分 - 所属学院 + 开课学院 操作 @@ -73,7 +73,15 @@ ${course.theoretical } ${course.experiement } ${course.score } - ${course.academyid } + <%-- ${course.academyid } --%> + + + + ${academy.name } + + <%-- ${user.id} --%> + + 更新 删除 diff --git a/build/classes/cn/edu/hrbcu/curriculum/controller/CourseController.class b/build/classes/cn/edu/hrbcu/curriculum/controller/CourseController.class index 3a84cadef7efb02e5ef3ef15fbadf386b33202be..c85b01125bcf061b8c002431c1f16b6d048292b3 100644 GIT binary patch literal 3677 zcmb7GX;a%)6g|%@Hej3p2`ODtva==1(riFT3E7+&vXDTQwyA7CKtz@tEl|2If2f`5 zBttXPAJE^^&z+tp$wFWp$S_!X+db#rbMMvr=fA)H2JjhvOCu$4u4HMl>}yL-vE*wd z-*JqRZ~7IjWLutNo2GQMDcg5kITcT&(JZicSzpmLQ@0kid&Om0@&r0d!NytXtQaLJ zpcNV!cf&1_<>4^G%N4j(u$@KCtvZIaxZvm&xoSHv zwW8E5S6k3ap6#q@dVD~e^gVmkaAcWgb9zZH%gS2J?DUSzCO4g+jn;9)GQ0_arh&mZ zf#xZ@EZfn9Jy~=hE3l_vSaQa%6s7Y>CwGDFf?d+hIo&bTIGSwsmJB*`z9E5k#GNcU z9{AE(3k4CF8Ypb2kheU!D4nsvZR4~mi<*kMDLrkP)Xhn&JZH#N+T1>{>Oj%3%E_2M zl&^g0deeHfN)dRpWkolAy4s^9c%7mcluY38W;O5YN;OY9n`FJvkZuF?z>EroN>*uk z_w_|G$T;MtkTJC5L38b<}X>Y|s$ah#wv!>XO6 z-1!a+VmOT(zqyauw+-XMZ;V2i&~XoT#{y$^{yhCw-)Sn zT)<_O-lK~1R>p&KX^abuY*&?yvaKCs*ptCkvecH{YBFoo(qtCbFhyxy>8a$LVZI3L zPiFb7r|N%fa4v%z)Jd@psgB`R7PpZXXw%E(T1$Gg&DliFgxlV?WHPv`P=XF&NH>G& zh{+4zF*CR)Fs@C-opg51^<-sQw@9_VmnK6H7fw%tVy&#%a!e))BezuuuBb2w^cUW( zCyORqNz^_wtYPsr=oP)2d)ivH*4Hj>VKv^c!By>LJ8Jx66G8h4sxU5v9Zp6`9UQ&2 zgTp(R3JWr@lneS7Yo^v(_ti=!@r5JV-cYZ2V=USGv@y5J51PDYm)B^qZL(ahfnFZi zRn($l-ps5^iw#AjRM#qHQ3g{ZYY@?iT9ClNE`jnHEV9HGY-d$>%A<8Rfo-$5wG>>8l;|T+UA)Anwy0O zKkla?yK8ItvOr;%;oFt}8LZN!B&`gVR1}g^30~i2@qHkvzsZxPlEvmA*#FvR8OV~n zX{bxc{*d>^wCIO^s9 zf#(n|K0qJmdX>Eox#56|kMQv`e1d~6J`KSB<#a3eJRJHH{ll+ucpU>NOmlQ<9j66m z-r~a3kvF(B+WZz{Pv79mXiHy9_rz;_&d2q>=GVA6&$l}#qnASWO!)RYtu_VBkJDuk zFNc0II?TVL7{)Q2<&|O_CvXD;xQC&@vx$&RZ!U|0Lf3G~WM=`vsok3$Ce%b@RCqu`lrz=adZdoL3Tds>q~* zuoQ+joN5miPgA!u0rB2&b40v@BSlvPgp^$2%oDx|yujC7ua`>?fNye50p|iq)=^Ah zzI#C-hlvm(U!=v$3FKTHvK*FR1USnLa9##DHzJ(C!Qpk7Db&MUWwK5tU^-)%&KRcJ z0OnNy^NNvIym1f1ARUdeseqp?uUYzT`txv>>Q}fPxi@7Lh_*Ok8!V8x!*W z0lz?_ks#4THzvmT4@_K}xN~hhGcB!#uy}9o+&MGnoO|#0nqO7Mmp|`500<$mY5ep$ zx?`)cRIh-op>a~cJ{Vt&8nB_*L?MjVlVVGpaH3YAd^z$Y65L3|R)YPBMC55WmP{G& zqS%S!0$%Hz!|O9}3@7Bplf*ZK^EV{8t8vnaQ`V@xt+XD+I@|{8(PSckW^2pdP#F}^ z*CG$1!>dbidDLd29UayWd$ixF_AVSROc@)SbgvWWsXiZG08PFxje z-Yh+A)e7C3x0Tq!7_ruE_0|jLoIZ>jCT`-E_1oDkCapI88B=#m+{K*rQD5TbzKI1a zTEW7_(2{^Tv9=gVMF-;>iDXpAlt4xB-&9LvAr*_SO6Fw~kNEKC!skL*#Xy6Le}_tXP{P>E08olD?gZQ@XBV7|UEEdh^UOjdQHev$Rm%4c z6W~dr3e__>f|?|bDzf)Xrwa%=y9@91HtI%pacnxU4d3W4>X~Thv{%{Pjc?)S($f4E zty2s_?lYO_C9m3)KCj|G0v$C}tjr?rq&A^+$kJyreT)P~ah>P;OFyQVFY!#i<&w-zI~dn6 z<(`n#nWie{G+GI6|A*R@tB{N0Z!4nd1Bhl6(NLC1StQY{hJ8FNwLu?pfc|rsR%Z8j z<`3Yxr+C&`avSl!tf2@?nH`jofIG@D3Ai6L$=L|xT~?~L_wj*#4(b4#KFFaMQcCJz zll;D%V_(*BIWw~T8r?4)py{E~G)9cnv{&SqhMxWAuM!*Hqm<|zW5-^Ri}=h69;;HW Q5~3lVo2xbM^Ru=77t67wr)FLc!>ff$?3=9k=42kRvOpFXhlM`7bCU-MRZFIWLrm5kRUzDz2Tu_vmm!4LX zn44OjUzDw1T#{OpnqN{`kg6Y?T2z*qoNB#Unq87fm6;(1XcQAeECVNyW@BJvhy&8` QK+FYX8#5>~BrtFS08ZW=Qvd(} delta 64 zcmZn>J}V?}>ff$?3=9k=3<>NEOpFXhlM`7bCU-MRZFIWLw%LPSoJo?2AqJ>`i6NFD S4oGt`Fftf3C^N(}Z~_1runf%r diff --git a/build/classes/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.class b/build/classes/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.class index fa6cbc382e1b6c0b9ddb78b350ed263a4e8f9658..67ac549f7a17ab6d6ac341ef541912a5b9d3f684 100644 GIT binary patch delta 114 zcmX>i@moUR)W2Q(7#J8#7%JEqm>3xhCr{*%*r@TCLsP>izbIY5xS%LAFFma&F*mh5 zzbIS3xFoeGHNT{?AXPs&wWusJIn{bIC#Mp#Dl3xhCr{*%*r@TCW3w5j0<$C&Lora2iJ^p{6i9P1 OFftf3C^M8XZ~_4NObna= diff --git a/build/classes/cn/edu/hrbcu/curriculum/service/CoursemodeServiceImpl.class b/build/classes/cn/edu/hrbcu/curriculum/service/CoursemodeServiceImpl.class index 2100363264b77fd11838b20ef81fe353a694a036..f639ffb6f546b646f7e0637acfc38b7e779123c4 100644 GIT binary patch delta 117 zcmbOvd{S88)W2Q(7#J8#7!uhTm>3yMCng$B-oVJR(N&gRQ^O~}C|$p}peQphJ*_A) zH?=&!C|kd{B(*3tzofDtRX;ejs4O!%)p~ORyCjn;GeZo}BqoMf22LQ&#=yuB2c+YH Pm98GVBiD*CNdoj delta 63 zcmX>pJV{vK)W2Q(7#J8#7!ueSm>3yMCng$B-oVJR(N&gxb1%C%lOz*E3{aklA(kNy RNOLhTG8i)`GsH7+0sspc42J*! diff --git a/build/classes/cn/edu/hrbcu/curriculum/service/CoursetypeServiceImpl.class b/build/classes/cn/edu/hrbcu/curriculum/service/CoursetypeServiceImpl.class index 24487d62231022c5e622a585db420f0fff3dae1f..5a15150af761fdb3ba65e4e435aea3c3a2ed12e5 100644 GIT binary patch delta 117 zcmbOvd{S88)W2Q(7#J8#7!uhTm>3yMCng$B-oVJR(N&gRQ^O~}C|$p}peQphJ*_A) zH?=&!C|kd{B(*3tzofDtRX;ejs4O!%)p~ORyCjn;GeZo}BqoMf22LQ&#=yuB2c+YH Pm98GVBiD*CNdoj delta 63 zcmX>pJV{vK)W2Q(7#J8#7!ueSm>3yMCng$B-oVJR(N&gxb1%C%lOz*E3{aklA(kNy RNOLhTG8i)`GsH7+0sspc42J*! diff --git a/build/classes/cn/edu/hrbcu/curriculum/service/CurriculumServiceImpl.class b/build/classes/cn/edu/hrbcu/curriculum/service/CurriculumServiceImpl.class index 07f6f5ebb99ed2ab870cba55f5164601679d5888..b4caaa9cb029929b48f5c5aabacf9419a12ccaaf 100644 GIT binary patch delta 202 zcmX>v*(N1$>ff$?3=9k=3>EAQOpFYs6B7+5Z(wBE=o-kWso|4fl&)V~P?VXMo>r8Y zn_8Y-97&sVY8F(4w z7$g|vCvWG9VpU<_V^Etc#_i9jH93ttlvN+7!eH_N?siF21{MZ027U%h25|-}1{nrx w22}}?ff$?3=9k=4CU+$OpFYs6B7+5Z(wBE=o-j5`56SaYeBzG4L^{Om^h w<_zKt7C;@A45|!P42BHWle>AsB$*hBftE5clrWS6X)Xpv24ea$iK?)W2Q(7#J8#7!uhTm>3ysCL6LyOl(lt=&^yFQDd?oqo{CkNorAQeo19P zs(x^4QCVhks`ch??2=5X%nUI=olFd|44gokje(IN4oJrXF&B_+%%IGWz`zLrlAIQ1 delta 63 zcmcaFvO+}Q)W2Q(7#J8#7!ueSm>3ysCL6LyOl(lt=&^x)voeP`lOz*E3{aklA(kNy RNOLhTG8i)`GsH7+0ss#J437W+ diff --git a/build/classes/cn/edu/hrbcu/curriculum/service/TbUserServiceImpl.class b/build/classes/cn/edu/hrbcu/curriculum/service/TbUserServiceImpl.class index 12ec4f6ee0d3c79cfaac7973a2e4ed0cec4a0c09..46fedea406b9b2eabb40138b3e9d51993da4744f 100644 GIT binary patch delta 85 zcmeAW>k!+pf`d_T@=6XTM#;%>Cns<=@M-`>G=U;o3=#}F nlizZ-OByn;Fc>lLGng`nGng^RFqku_GFUJeGFVRT<*Eh%-*^u) delta 85 zcmeAW>k!+pf`d_b@=6XTM(N3KIMR6)88{e}7BCns<=@M-}?w1FZz3=#}_ nlizZ-OByq3AUK0 list = new ArrayList();//courseService.selectCourses(currentPage); + List list = courseService.selectCourses(currentPage); + List academies = academyService.selectAllAcademy(); + PageInfo page = new PageInfo(list); ModelAndView modelAndView = new ModelAndView(); - modelAndView.setViewName("QueryCourse"); + modelAndView.setViewName("/jsp/QueryCourse"); modelAndView.addObject("pageInfo", page); + modelAndView.addObject("academies", academies); modelAndView.addObject("page_url", "/CurriculumSystemManager/CourseController/QueryCourse.action"); return modelAndView; diff --git a/src/cn/edu/hrbcu/curriculum/service/AcademyServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/AcademyServiceImpl.java index c116f46..b85e5ed 100644 --- a/src/cn/edu/hrbcu/curriculum/service/AcademyServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/AcademyServiceImpl.java @@ -3,16 +3,16 @@ package cn.edu.hrbcu.curriculum.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; import cn.edu.hrbcu.curriculum.dao.AcademyMapper; import cn.edu.hrbcu.curriculum.pojo.Academy; import cn.edu.hrbcu.curriculum.pojo.AcademyExample; -import cn.edu.hrbcu.curriculum.pojo.Course; -import cn.edu.hrbcu.curriculum.pojo.CourseExample; import cn.edu.hrbcu.utils.Common; +@Service public class AcademyServiceImpl implements AcademyService{ diff --git a/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java index b3b0e78..451e9dd 100644 --- a/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/CourseServiceImpl.java @@ -1,6 +1,7 @@ package cn.edu.hrbcu.curriculum.service; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; @@ -8,10 +9,9 @@ import java.util.List; import cn.edu.hrbcu.curriculum.dao.CourseMapper; import cn.edu.hrbcu.curriculum.pojo.Course; import cn.edu.hrbcu.curriculum.pojo.CourseExample; -import cn.edu.hrbcu.curriculum.pojo.Curriculum; -import cn.edu.hrbcu.curriculum.pojo.CurriculumExample; import cn.edu.hrbcu.utils.Common; +@Service public class CourseServiceImpl implements CourseService { diff --git a/src/cn/edu/hrbcu/curriculum/service/CoursemodeService.java b/src/cn/edu/hrbcu/curriculum/service/CoursemodeService.java index 01fff2b..b5d0b8c 100644 --- a/src/cn/edu/hrbcu/curriculum/service/CoursemodeService.java +++ b/src/cn/edu/hrbcu/curriculum/service/CoursemodeService.java @@ -1,8 +1,6 @@ package cn.edu.hrbcu.curriculum.service; -import cn.edu.hrbcu.curriculum.pojo.Academy; import cn.edu.hrbcu.curriculum.pojo.Coursemode; -import cn.edu.hrbcu.curriculum.pojo.Coursetype; import java.util.List; public interface CoursemodeService { diff --git a/src/cn/edu/hrbcu/curriculum/service/CoursemodeServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/CoursemodeServiceImpl.java index 10b2d85..c541df8 100644 --- a/src/cn/edu/hrbcu/curriculum/service/CoursemodeServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/CoursemodeServiceImpl.java @@ -3,16 +3,16 @@ package cn.edu.hrbcu.curriculum.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; import cn.edu.hrbcu.curriculum.dao.CoursemodeMapper; -import cn.edu.hrbcu.curriculum.pojo.Academy; -import cn.edu.hrbcu.curriculum.pojo.AcademyExample; import cn.edu.hrbcu.curriculum.pojo.Coursemode; import cn.edu.hrbcu.curriculum.pojo.CoursemodeExample; import cn.edu.hrbcu.utils.Common; +@Service public class CoursemodeServiceImpl implements CoursemodeService{ diff --git a/src/cn/edu/hrbcu/curriculum/service/CoursetypeServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/CoursetypeServiceImpl.java index 40b1a2c..c82473f 100644 --- a/src/cn/edu/hrbcu/curriculum/service/CoursetypeServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/CoursetypeServiceImpl.java @@ -2,16 +2,16 @@ package cn.edu.hrbcu.curriculum.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; import cn.edu.hrbcu.curriculum.dao.CoursetypeMapper; -import cn.edu.hrbcu.curriculum.pojo.Coursemode; -import cn.edu.hrbcu.curriculum.pojo.CoursemodeExample; import cn.edu.hrbcu.curriculum.pojo.Coursetype; import cn.edu.hrbcu.curriculum.pojo.CoursetypeExample; import cn.edu.hrbcu.utils.Common; +@Service public class CoursetypeServiceImpl implements CoursetypeService{ @Autowired diff --git a/src/cn/edu/hrbcu/curriculum/service/CurriculumServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/CurriculumServiceImpl.java index a1d4858..127cc30 100644 --- a/src/cn/edu/hrbcu/curriculum/service/CurriculumServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/CurriculumServiceImpl.java @@ -2,6 +2,7 @@ package cn.edu.hrbcu.curriculum.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; @@ -10,6 +11,7 @@ import cn.edu.hrbcu.curriculum.pojo.Curriculum; import cn.edu.hrbcu.curriculum.pojo.CurriculumExample; import cn.edu.hrbcu.utils.Common; +@Service public class CurriculumServiceImpl implements CurriculumService{ diff --git a/src/cn/edu/hrbcu/curriculum/service/ExaminationmethodServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/ExaminationmethodServiceImpl.java index 19f2153..c848d28 100644 --- a/src/cn/edu/hrbcu/curriculum/service/ExaminationmethodServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/ExaminationmethodServiceImpl.java @@ -3,16 +3,16 @@ package cn.edu.hrbcu.curriculum.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; import cn.edu.hrbcu.curriculum.dao.ExaminationmethodMapper; import cn.edu.hrbcu.curriculum.pojo.Examinationmethod; import cn.edu.hrbcu.curriculum.pojo.ExaminationmethodExample; -import cn.edu.hrbcu.curriculum.pojo.Teachingmethod; -import cn.edu.hrbcu.curriculum.pojo.TeachingmethodExample; import cn.edu.hrbcu.utils.Common; +@Service public class ExaminationmethodServiceImpl implements ExaminationmethodService{ diff --git a/src/cn/edu/hrbcu/curriculum/service/TbUserServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/TbUserServiceImpl.java index 975aa1e..64d7383 100644 --- a/src/cn/edu/hrbcu/curriculum/service/TbUserServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/TbUserServiceImpl.java @@ -8,8 +8,6 @@ import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; import cn.edu.hrbcu.curriculum.dao.TbUserMapper; -import cn.edu.hrbcu.curriculum.pojo.Academy; -import cn.edu.hrbcu.curriculum.pojo.AcademyExample; import cn.edu.hrbcu.curriculum.pojo.TbUser; import cn.edu.hrbcu.curriculum.pojo.TbUserExample; import cn.edu.hrbcu.utils.Common; diff --git a/src/cn/edu/hrbcu/curriculum/service/TeachingmethodServiceImpl.java b/src/cn/edu/hrbcu/curriculum/service/TeachingmethodServiceImpl.java index 6e10852..8a49690 100644 --- a/src/cn/edu/hrbcu/curriculum/service/TeachingmethodServiceImpl.java +++ b/src/cn/edu/hrbcu/curriculum/service/TeachingmethodServiceImpl.java @@ -2,16 +2,16 @@ package cn.edu.hrbcu.curriculum.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import com.github.pagehelper.PageHelper; import cn.edu.hrbcu.curriculum.dao.TeachingmethodMapper; -import cn.edu.hrbcu.curriculum.pojo.Academy; -import cn.edu.hrbcu.curriculum.pojo.AcademyExample; import cn.edu.hrbcu.curriculum.pojo.Teachingmethod; import cn.edu.hrbcu.curriculum.pojo.TeachingmethodExample; import cn.edu.hrbcu.utils.Common; +@Service public class TeachingmethodServiceImpl implements TeachingmethodService{ @Autowired private TeachingmethodMapper teachingmethodMapper; diff --git a/src/cn/edu/hrbcu/utils/Common.java b/src/cn/edu/hrbcu/utils/Common.java index 7a7fe00..3fd1434 100644 --- a/src/cn/edu/hrbcu/utils/Common.java +++ b/src/cn/edu/hrbcu/utils/Common.java @@ -1,5 +1,5 @@ package cn.edu.hrbcu.utils; public class Common { - public static final Integer PAGE_SIZE = 3; + public static final Integer PAGE_SIZE = 10; } -- Gitee