From fe945aaeffd3f17184801e037797b0492500110f Mon Sep 17 00:00:00 2001 From: Snake Date: Tue, 6 Nov 2018 13:42:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?4.=E6=9F=A5=E8=AF=A2=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/developer/common/header.jsp | 2 +- WebContent/WEB-INF/web.xml | 2 +- .../jxvtc/controller/AppInfoController.class | Bin 0 -> 6474 bytes .../dao/appcategory/AppCategoryMapper.class | Bin 0 -> 468 bytes .../dao/appcategory/AppCategoryMapper.xml | 22 ++ .../net/jxvtc/dao/appinfo/AppInfoMapper.class | Bin 0 -> 1334 bytes .../net/jxvtc/dao/appinfo/AppInfoMapper.xml | 83 +++++++ .../datadictionary/DataDictionaryMapper.class | Bin 0 -> 475 bytes .../datadictionary/DataDictionaryMapper.xml | 17 ++ .../classes/net/jxvtc/pojo/AppCategory.class | Bin 0 -> 2068 bytes build/classes/net/jxvtc/pojo/AppInfo.class | Bin 0 -> 6833 bytes .../net/jxvtc/pojo/DataDictionary.class | Bin 0 -> 2241 bytes .../appcategory/AppCategoryService.class | Bin 0 -> 364 bytes .../appcategory/AppCategoryServiceImpl.class | Bin 0 -> 1023 bytes .../service/appinfo/AppInfoService.class | Bin 0 -> 806 bytes .../service/appinfo/AppInfoServiceImpl.class | Bin 0 -> 1980 bytes .../DataDictionaryService.class | Bin 0 -> 367 bytes .../DataDictionaryServiceImpl.class | Bin 0 -> 1025 bytes .../classes/net/jxvtc/tools/PageSupport.class | Bin 0 -> 1426 bytes .../jxvtc/controller/AppInfoController.java | 174 ++++++++++++++ .../dao/appcategory/AppCategoryMapper.java | 11 + .../dao/appcategory/AppCategoryMapper.xml | 22 ++ src/net/jxvtc/dao/appinfo/AppInfoMapper.java | 37 +++ src/net/jxvtc/dao/appinfo/AppInfoMapper.xml | 83 +++++++ .../datadictionary/DataDictionaryMapper.java | 11 + .../datadictionary/DataDictionaryMapper.xml | 17 ++ src/net/jxvtc/pojo/AppCategory.java | 63 +++++ src/net/jxvtc/pojo/AppInfo.java | 225 ++++++++++++++++++ src/net/jxvtc/pojo/DataDictionary.java | 69 ++++++ .../appcategory/AppCategoryService.java | 10 + .../appcategory/AppCategoryServiceImpl.java | 26 ++ .../jxvtc/service/appinfo/AppInfoService.java | 25 ++ .../service/appinfo/AppInfoServiceImpl.java | 49 ++++ .../datadictionary/DataDictionaryService.java | 12 + .../DataDictionaryServiceImpl.java | 26 ++ src/net/jxvtc/tools/PageSupport.java | 70 ++++++ 36 files changed, 1054 insertions(+), 2 deletions(-) create mode 100644 build/classes/net/jxvtc/controller/AppInfoController.class create mode 100644 build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.class create mode 100644 build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.xml create mode 100644 build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class create mode 100644 build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.xml create mode 100644 build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.class create mode 100644 build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml create mode 100644 build/classes/net/jxvtc/pojo/AppCategory.class create mode 100644 build/classes/net/jxvtc/pojo/AppInfo.class create mode 100644 build/classes/net/jxvtc/pojo/DataDictionary.class create mode 100644 build/classes/net/jxvtc/service/appcategory/AppCategoryService.class create mode 100644 build/classes/net/jxvtc/service/appcategory/AppCategoryServiceImpl.class create mode 100644 build/classes/net/jxvtc/service/appinfo/AppInfoService.class create mode 100644 build/classes/net/jxvtc/service/appinfo/AppInfoServiceImpl.class create mode 100644 build/classes/net/jxvtc/service/datadictionary/DataDictionaryService.class create mode 100644 build/classes/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.class create mode 100644 build/classes/net/jxvtc/tools/PageSupport.class create mode 100644 src/net/jxvtc/controller/AppInfoController.java create mode 100644 src/net/jxvtc/dao/appcategory/AppCategoryMapper.java create mode 100644 src/net/jxvtc/dao/appcategory/AppCategoryMapper.xml create mode 100644 src/net/jxvtc/dao/appinfo/AppInfoMapper.java create mode 100644 src/net/jxvtc/dao/appinfo/AppInfoMapper.xml create mode 100644 src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.java create mode 100644 src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml create mode 100644 src/net/jxvtc/pojo/AppCategory.java create mode 100644 src/net/jxvtc/pojo/AppInfo.java create mode 100644 src/net/jxvtc/pojo/DataDictionary.java create mode 100644 src/net/jxvtc/service/appcategory/AppCategoryService.java create mode 100644 src/net/jxvtc/service/appcategory/AppCategoryServiceImpl.java create mode 100644 src/net/jxvtc/service/appinfo/AppInfoService.java create mode 100644 src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java create mode 100644 src/net/jxvtc/service/datadictionary/DataDictionaryService.java create mode 100644 src/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.java create mode 100644 src/net/jxvtc/tools/PageSupport.java diff --git a/WebContent/WEB-INF/jsp/developer/common/header.jsp b/WebContent/WEB-INF/jsp/developer/common/header.jsp index eef887a..bd04d71 100644 --- a/WebContent/WEB-INF/jsp/developer/common/header.jsp +++ b/WebContent/WEB-INF/jsp/developer/common/header.jsp @@ -81,7 +81,7 @@ class="fa fa-chevron-down"> diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml index 5e7fe4e..c6e8157 100644 --- a/WebContent/WEB-INF/web.xml +++ b/WebContent/WEB-INF/web.xml @@ -2,7 +2,7 @@ springMVC - /WEB-INF/jsp/login.jsp + index.jsp contextConfigLocation diff --git a/build/classes/net/jxvtc/controller/AppInfoController.class b/build/classes/net/jxvtc/controller/AppInfoController.class new file mode 100644 index 0000000000000000000000000000000000000000..a941eb8f4a298bee9018d9cc462bbb8c572ff121 GIT binary patch literal 6474 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 literal 0 HcmV?d00001 diff --git a/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.class b/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.class new file mode 100644 index 0000000000000000000000000000000000000000..e7908ffe414f56ae0ef0c4abdcea1604e9d64982 GIT binary patch literal 468 zcma)3!Ab)$5S`Sv+t#X8K|BkBBAAP}icpI}VMVdveYzdiEZZbxXG{BQ9{d15N}RUh z_UIu@=FOYQyqB-z1`=!S~mPbYyD}v7XmY_%woKYMdcBg_RG?r- m{scgY!3}6i7D-kYyagS()nFI861ywvo}B#x4kYx}wZk8WtccqH literal 0 HcmV?d00001 diff --git a/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.xml b/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.xml new file mode 100644 index 0000000..3cd5a70 --- /dev/null +++ b/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class b/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class new file mode 100644 index 0000000000000000000000000000000000000000..ec2c7ab18bb2f102c721128f10d81ac654216e77 GIT binary patch literal 1334 zcmdT^+fLg+5SmvrRGCD6?F}&U0%j8QmxiIvi8y-`vQ^hRZIaeCrei!N=4h2kQ zD#5NkrVz6{p&u<(B;e#ubgbE-syR0SAFikMk3G3ursi!u6Hw8lK+xXXxe&L}wS|lD zvrb8d`9IeA?P#oP0t8IZj{snTwtEt4bPDKHC4LGTgevd=rs>_U6ZMdunH**r&M|z% zaGv1;!$pRV89rgSL^(W#Ws1o;jAHKwZ1W#tQ + + + + + + + + + + + \ No newline at end of file diff --git a/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.class b/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.class new file mode 100644 index 0000000000000000000000000000000000000000..2ebdf3ba53cb07dc8d3cde78c2dc392dbcb2ae3c GIT binary patch literal 475 zcma)3O-sW-5S^`U)7Gk0@!(Yy^x`6TiwI)tDWX{LK23+XA>9p|NooI@2Y-M+N}RON zP){C~nfK<+=YIcuegVKO90kx&aAS#ex|nmUr|9G{PEE|lS@cUi6gb?#XUuc*0W=j1 zQkm6ePjyZ&o84|JZ5if5?-yTl1-*7Rj8mhTEvuBjf()f3Xbcf zO+-O=Y!ZuHdQvd@N8!7u-Y<8l`?FDaFP+ccO3P+O@1`)5j9$^>jF|j`wT^K$k%EiJ z`9x!m@ds%$5xUS=3-l^WinZpLl`>q1mpMJUskptdD}78)CKGVFeWLYAud7|#3KZ + + + + + + + \ No newline at end of file diff --git a/build/classes/net/jxvtc/pojo/AppCategory.class b/build/classes/net/jxvtc/pojo/AppCategory.class new file mode 100644 index 0000000000000000000000000000000000000000..a41e8d152dbf359852aef6dbebc513f8eb65b7ef GIT binary patch literal 2068 zcmZ{kYflqF6o%g^w^9aMT8dm$ta2$uSP+(~jjE%`dlp&1kz#*Enpqk4)cc zxZd3m`UP@L^VT$4rqeJ!TsEzmFOah90)>;#hhv8vEN@Rh)*{~{w{8jKyF_QcXFH8< z&8c}snsnRrEXO~ln8P*CBLDiEJC4L_+jY)uR^`G-H@@96-jasmq_5n%{ppUynQ+M; z1O}_NWBUgJedVPKfqq8Gpbz5`IgANpPi)6Jy}7!yymRxi6=1qGvvpy5Hor%k{r+eB zTHwJ+a)Ah9pkW2*#qv^Du5m$zK>;KNFi6VlP&rZ72pKd>q2khqBzdgP%7=el#0MTucGO4ySTLirfAg_X+^8O~vZ&Wrb{MGPEwjAe$z2+Jg6 z#UG-?db*j96YKPo{Wm2fMx(TP912ld9X%(-nD3(@VECGT3$PQF~qVO${73nz`ZeoJgGFsoqB)thtVVa)3&fhWfRdLR0 zogd;+=QbCGZkf)f_fs|B` zNjh#S0fZaCAoE&~1r=mQ3sTmDET|xl2xK+^geQPOmb9&@s30XR$TNLwDk{hvfy^g> z@CY)_gTyb4(W_pH>lj%6=2}D$U zqoV7BReYo3n_ZC=WXmnB-P$Ux-P$dyw5-yyO8*nf^S#|YkCW3sWKMVA@45GL&pr3t z?)>+c&%Pj{mGt*EYH_Hu?1kN>8AZ-BRp2J17+DcbP)T4GTeK z46Y`*Nzko-Jk1;rQw%CoS#Q!S^=J=!wTFGt!#1XiuG%NP%7h=3Hw6yOZR)hoq4s>R zt6U1)JX5#lDjtuSUq8iU_L{w->CYMq@_u0oEt%*tdfwb$j~t-aq1mON7;N@)n>oJm zT{ejC5;BCMb+upi!!-__(zSHNp&9)_-pkM_bcvxZTI$fetY7vvRmXOCm96fMlFfr4 z=axp?ijVvF;f!#n&r?~P)w2)TRP@4;dPEj=EuEfE?c~r(Lub(}q)U^&qiebxz;n3U z;o9<{gDVZ4h7RU%2lW<*I#}61ZEfLkjiJTx=wOfO3dPeV06f=bH_+B?C9MF*B>4|XigN-WMYxq z>2Z9dSCW_88VcEhWQckxL+62^xil}DTcdno+;v@zPG|9qdG!bLa19Neiq)DGr34nt zMmnmBQ0z7|zZU7FShi#B?1q8l9zzSzNjrBEJ&m^1P_2+cb-$s731z*7s}A=yRIjp- zK5S?aq;t8$hNh_3Bq5^-JZ7i^V`E+GEqr)zuT9&q4;?>g=xnIxv%0x8sx1RaL527k zL+3z@B2sIJbp1)Oh3?OWmL$4bLzE%*HZH`FzG&!NObi>Vv5ku>^KOjmG?cFzIuD)B zW@Yj`ntybM5)R!PhR#o-T5nP2-vjmAhJK^YpR510i1otbeM1+h9(+7t<+Ak?0`k8Y zx)9ldm1}6KYvc0++K&xg)Tpf;Ee%yZTIAz~E>0pGmw%h7!$Gx@^EUW6QB3@fvI1`* z96LUY_=RQ(wV)jFRSPPMwOlx?<$7Q(Z*yyTgIddb$y(kR)^hq=%QXR)=MqSkW$ zS<5BUT0S_e<>SCwF7DQHskWADu(fxRSN-Ox|klqv!q%=VKRgeJ*vQh=vpo0uZkSiEuRSF396hN+1L9Uk|SE(R3=pffikZTxZ zO$rD$H9&4uL9!BLtqQV92gyp1eg+vx0YMc4$PjJjU%7p^NRTZm$S`eMy%-D*Vk zNRWLh$h~?*_DGN?7-WA62;Tnya-W(bdnL$ID#!zRj_j2n&oIcdDIj?ATR03dQgHKXOI&qAo!dD$jfR(UXdUtRgl;8h`b^} zK4Xx7q=4Xi4j`|q5jiA5K375B)FX08g8Y*~{*?lP4@!W%rAFki1o^iL@{S&n!xH36 z2Kg!l1YfiOc~=E_PlEhM1^GY+c~64;k3s&Q0)kI!fPAPPdPgM4*DA-xD3GzLI{Ez~Ie<}dvZ|c%~B0+vsK~CsP^N9rci9vo& Q0l|MY0P?B*|HH{&0jsXQA^-pY literal 0 HcmV?d00001 diff --git a/build/classes/net/jxvtc/pojo/DataDictionary.class b/build/classes/net/jxvtc/pojo/DataDictionary.class new file mode 100644 index 0000000000000000000000000000000000000000..5c48f540e85efab30c7b9bb4cfee4cf073b0ddfd GIT binary patch literal 2241 zcmaKsTTc@~6vxk$OX)I5rBDS?5CsZFRxS#1DVJ6f62u1x?@Jl$Hf5JAQ)0iBCK?kT z`~ZF^<2kdtw4KcQvS()YTz>OEGxO)~uipT$4o7K7F?i|;Y1hBp$*O(h*L}Oq{HD% z2Ci3&|DQV7_&DF`^2eUa~Pyl zJoakmDu<1vTA?z-jO=y43gCF2Wi5pv* z9KF4nH}B27`TqI*0&tJh6ba$Za1hnH3raNXJFQqq=adXwTE7ub&MkMi*wQH`gtJO^ zQq#%dD#N0>*H;5g!wKeYG-IMHgn literal 0 HcmV?d00001 diff --git a/build/classes/net/jxvtc/service/appcategory/AppCategoryServiceImpl.class b/build/classes/net/jxvtc/service/appcategory/AppCategoryServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..b7ed57ed2d9428e37afc04718440b4fd211f85b5 GIT binary patch literal 1023 zcmb7D+iuf95IyUradV-!&>P_ng|rnc4;3$|ib@1hBm+`|^1g8vvmxrF`h3M3>1 z4}1V0g%~>_F%n4agLh_jXU@!=8UOtC{Re%d2Pm))pOT+NUTi|qs z{$EW~_d3Jg`7pF@sKHE6VjWQ}@OBq%y7t z(q_o^RBWG5B4K1`n_Y(eTH3^v?q*2Sk*0nyy&GE9=Scv;6km*e8KsT8*k!0JhBSX+ zD6~`%3Oh8^P2(cSCz-Y)-P752s3yNEYbl$&)OSbV$;Y(0PR{PLh#aKKzQ+&*}3zoryEBiVZpwS8~86DkK@M zVv7=Nlb$1M2YaMBxR$~_Bh4YZbod3;qi?w3;8Xg%0NqJJx2JA1Pzu0Z+#@&#_f!A< IdCd=i-#OwGjQ{`u literal 0 HcmV?d00001 diff --git a/build/classes/net/jxvtc/service/appinfo/AppInfoService.class b/build/classes/net/jxvtc/service/appinfo/AppInfoService.class new file mode 100644 index 0000000000000000000000000000000000000000..b079dc65ac16450085691c930a7199a12526e807 GIT binary patch literal 806 zcmdUtT}lHn6opU5+OhSgg>IsKF)zN22qFpt13t_OVu&Hbkc3QT=nmYIhzoE5E=Rnz zrO_SKr;zX5hn#%(GKQs9kvHohO5Uk37^%4M-q>fyZ@n++thYGFh+*D{ zLGV^s%^#l{B_qRBtGJtFcw1I!qK?5>UHl@YjY_L<7-+S9SRYNxE7Qe-y4 zcziN4?QkIVNVR1crKyTLN%$~L8TD z0`m-D9rr1v7FcUe&mKj|%kjT-W_5vJe;6Cpmj`N~4tw%p9496+Dv1XID@~i#Nf=F( z;l3OsL*14o2EwI>3+EMQy z(#pPP%Dj217;EcXzW-e_hA(%e$%-lPd)1{nE?~=O6?g0BG>zEEuGFuGYJHs8(5PP6 zR0CtVd~wp2sjIq&YXVEtZkT)#D792Kj?7TAlz;z^32&df>NGi?%tU>sUdCIv;o-W# zm1zmG+pFMhydzLlu{nr(Ll%LJ*RUtvt>7l!6Yxe>|F|QtTy11!b|ZCm|0M|As=z~W z4pnS;SQohY3Ug9H4ZgsoY0KG*W0Kztr9N#X9rG;Gaxdz;CZA@Wb)vxB*pQPoWUnt> z(3+eVXY;5RnT}5SjU&#B)9glU-sDs_u_MCmWeq{WtbhQW0lP?!{01_IolJIB`)y-Wtq}`<09j8o^K(g zpq$AK#f5A%r zC@4`p{SB)RiW@&;t+shP$Op4QA@G7?P?3^ z)~K_|bjI$pWEcpWxa|_GVT){Xw5j0(q8W!iB+5H+t?h)CTHGD)=bm(Iu zJ5anGdYjU;)%u<`*2;g0%yWEN#1H&1uHJGMsKDe(OmCj4Eii~Bus?P%A>dC4_!9#D egn*AT0zS?N_&6ir^Pkxg$f53HZ%;1zGvHrxzyTou literal 0 HcmV?d00001 diff --git a/build/classes/net/jxvtc/service/datadictionary/DataDictionaryService.class b/build/classes/net/jxvtc/service/datadictionary/DataDictionaryService.class new file mode 100644 index 0000000000000000000000000000000000000000..66a412975c378527a8ee863cfa0408fa5b00d1d5 GIT binary patch literal 367 zcma)2yH3ME5S%q3CIKQOL_ityqiP#kXRKOk)=OvDRbGdUnhTwuXm&Kk7!d9X z-D*{8pR3QW!Wt$#cZ3xk z6__M3Ov92P#(f zkfG4nYcUjG=#H$QfaMyhs4*;uDwc1uL0g))f}j~zLmi2JOBm(!$z{>LR}|}DF8hlX znUbk@r9Iz-P^Fe(w~=!g7r$wZio3zy_$sri&z%*ySB^)KOmf;jt}v|4IyQY_C^uC% z7B(})<@g_f=Q$<1r~ep};4mnI;aUwo7OU97O&>QH9$vVOHLRn~uxQT`>AK)5JtHt- zO(dIn>s~6?i=Fe;nj6^%&Xu7NYSZOu;!5_;h=Kg5%?F-ZX{2_6_{1f^Eh15%wLr^r zTu7Gb`;1%D C@fNB8 literal 0 HcmV?d00001 diff --git a/build/classes/net/jxvtc/tools/PageSupport.class b/build/classes/net/jxvtc/tools/PageSupport.class new file mode 100644 index 0000000000000000000000000000000000000000..a17966e1fbe6b433a24f492b987a0b101bcf110f GIT binary patch literal 1426 zcmaKr-%b-j6vn@4x20^irKJ{uQUnz!C9%e6jQxB@AjR}uD##nRim43-EQvLorc)Krs2J594VAH|MSiVyz{{E z*3Q0)e0*2#=)!?f*%0!~j%U~3KC|1wO&O-xjfjw8WZyRVoNE@YBdt*EorJQiet1F1 zG&9JSuUwj5eJkI~9>yr-FXUkzcHC~K?yNUNk(`eAi+Mxph*@I9S$+dC5t*x)NUUcH ztY^y0S%6s(jux$#^i!NCsy~sb8mAbk#!r!#p&(}Qn-0CqaZ-n;c!kMIWspS<1^&ia z!Ev5jej-fJ6I_=t6DmMGu85I!a0V%?u>VpC_9cNH!aiiFQJkC7C5;`RWf` z?bD5t3+xO7bEI3KWQ!5PY)F{Zl?n+nB%B*aSU69(G>~vUB)p(qp-<;)S0mj`(%p)X znIV}eALm)^76y_P&y(F5NLC5SmILjQqFbcNOs(iW*6eatZ$tpxjzBrB+75>C7 zkoH<(d*%5rv_G?Xdq$J_zhJ&+wog#(pBb<8X-fKCQ}}%~&58hzn0=WyKSl*BxQi!b aTBY?g^0t+LOu8$9_*B^-$|8*zs{a5O_Q^m1 literal 0 HcmV?d00001 diff --git a/src/net/jxvtc/controller/AppInfoController.java b/src/net/jxvtc/controller/AppInfoController.java new file mode 100644 index 0000000..b89b796 --- /dev/null +++ b/src/net/jxvtc/controller/AppInfoController.java @@ -0,0 +1,174 @@ +package net.jxvtc.controller; + +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; +import javax.servlet.http.HttpSession; + +import org.apache.log4j.Logger; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + +import net.jxvtc.pojo.AppCategory; +import net.jxvtc.pojo.AppInfo; +import net.jxvtc.pojo.DataDictionary; +import net.jxvtc.pojo.DevUser; +import net.jxvtc.service.appcategory.AppCategoryService; +import net.jxvtc.service.appinfo.AppInfoService; +import net.jxvtc.service.datadictionary.DataDictionaryService; +import net.jxvtc.tools.Constants; +import net.jxvtc.tools.PageSupport; + +@Controller +@RequestMapping(value="/dev/flatform/appinfo") +public class AppInfoController { + private Logger logger = Logger.getLogger(AppInfoController.class); + + + @Resource + private AppInfoService appinfoService; + @Resource + private DataDictionaryService dataDictionaryService; + @Resource + private AppCategoryService appCategoryService; + + + + @RequestMapping(value="/list") + public String getAppInfoList(Model model,HttpSession session, + @RequestParam(value="querySoftwareName",required=false)String querySoftwareName, + @RequestParam(value="queryStatus",required=false)String _queryStatus, + @RequestParam(value="queryFlatformId",required=false) String _queryFlatformId, + @RequestParam(value="queryCategoryLevel1",required=false) String _queryCategoryLevel1, + @RequestParam(value="queryCategoryLevel2",required=false) String _queryCategoryLevel2, + @RequestParam(value="queryCategoryLevel3",required=false) String _queryCategoryLevel3, + @RequestParam(value="pageIndex",required=false) String pageIndex + ) + { + logger.info("getAppInfoList---->querySoftwareName+"+querySoftwareName); + logger.info("getAppInfoList---->queryStatus+"+_queryStatus); + logger.info("getAppInfoList---->queryFlatformId+"+_queryFlatformId); + logger.info("getAppInfoList---->queryCategoryLevel1+"+_queryCategoryLevel1); + logger.info("getAppInfoList---->queryCategoryLevel2+"+_queryCategoryLevel2); + logger.info("getAppInfoList---->queryCategoryLevel3+"+_queryCategoryLevel3); + logger.info("getAppInfoList---->pageIndex+"+pageIndex); + List appInfoList=null; + List statusList=null; + List flatFormList=null; + List categoryLevel1List=null; + List categoryLevel2List=null; + List categoryLevel3List=null; + int currentPageNo = 1; + + int pageSize = Constants.pageSize; + + Integer devId=null; + Integer queryStatus=null; + Integer queryFlatformId=null; + Integer queryCategoryLevel1=null; + Integer queryCategoryLevel2=null; + Integer queryCategoryLevel3=null; + + + + + + + if(_queryStatus!= null && !_queryStatus.equals("")){ + queryStatus = Integer.parseInt(_queryStatus); + } + if(_queryFlatformId!= null && !_queryFlatformId.equals("")){ + queryFlatformId = Integer.parseInt(_queryFlatformId); + } + if(_queryCategoryLevel1!= null && !_queryCategoryLevel1.equals("")){ + queryCategoryLevel1 = Integer.parseInt(_queryCategoryLevel1); + } + if(_queryCategoryLevel2!= null && !_queryCategoryLevel2.equals("")){ + queryCategoryLevel2 = Integer.parseInt(_queryCategoryLevel2); + } + if(_queryCategoryLevel3!= null && !_queryCategoryLevel3.equals("")){ + queryCategoryLevel3 = Integer.parseInt(_queryCategoryLevel3); + } + if(pageIndex != null){ + try{ + currentPageNo = Integer.valueOf(pageIndex); + }catch(NumberFormatException e){ + e.printStackTrace(); + } + } + + //总数量(表) + int totalCount = 0; + try { + + totalCount = appinfoService.getAppInfoCount(querySoftwareName, queryStatus, + queryFlatformId, queryCategoryLevel1, + queryCategoryLevel2, queryCategoryLevel3, devId); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + //总页数 + PageSupport pages=new PageSupport(); + pages.setCurrentPageNo(currentPageNo); + pages.setPageSize(pageSize); + pages.setTotalCount(totalCount); + int totalPageCount = pages.getTotalPageCount(); + //控制首页和尾页 + if(currentPageNo < 1){ + currentPageNo = 1; + }else if(currentPageNo > totalPageCount){ + currentPageNo = totalPageCount; + } + try { + appInfoList=appinfoService.getAppInfo(querySoftwareName, queryStatus, + queryFlatformId, queryCategoryLevel1, + queryCategoryLevel2, queryCategoryLevel3, + devId, currentPageNo, pageSize); + statusList = dataDictionaryService.getDataDictionaryList("APP_STATUS"); + flatFormList = dataDictionaryService.getDataDictionaryList("APP_FLATFORM"); + categoryLevel1List = appCategoryService.getAppCategoryListByparentId(null); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + model.addAttribute("appInfoList",appInfoList); + model.addAttribute("statusList",statusList); + model.addAttribute("flatFormList",flatFormList); + model.addAttribute("categoryLevel1List",categoryLevel1List); + model.addAttribute("categoryLevel2List",categoryLevel2List); + model.addAttribute("categoryLevel3List",categoryLevel3List); + model.addAttribute("totalPageCount", totalPageCount); + model.addAttribute("totalCount", totalCount); + model.addAttribute("pages",pages); + model.addAttribute("currentPageNo", currentPageNo); + model.addAttribute("querySoftwareName",querySoftwareName); + model.addAttribute("queryStatus",queryStatus); + model.addAttribute("queryStatus",queryStatus); + model.addAttribute("queryCategoryLevel1",queryCategoryLevel1); + model.addAttribute("queryCategoryLevel2",queryCategoryLevel2); + model.addAttribute("queryCategoryLevel3",queryCategoryLevel3); + return "developer/appinfolist"; + + + } + @RequestMapping("/categorylevellist") + @ResponseBody + public List getCategoryList(@RequestParam(value="pid",required=false)Integer pid) + { + List list=new ArrayList(); + try { + list= appCategoryService.getAppCategoryListByparentId(pid); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return list; + } + +} + diff --git a/src/net/jxvtc/dao/appcategory/AppCategoryMapper.java b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.java new file mode 100644 index 0000000..28bdb88 --- /dev/null +++ b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.java @@ -0,0 +1,11 @@ +package net.jxvtc.dao.appcategory; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import net.jxvtc.pojo.AppCategory; + +public interface AppCategoryMapper { + public List getAppCategoryByparentId(@Param("parentId")Integer parentId)throws Exception; + } diff --git a/src/net/jxvtc/dao/appcategory/AppCategoryMapper.xml b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.xml new file mode 100644 index 0000000..3cd5a70 --- /dev/null +++ b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/net/jxvtc/dao/appinfo/AppInfoMapper.java b/src/net/jxvtc/dao/appinfo/AppInfoMapper.java new file mode 100644 index 0000000..23c807f --- /dev/null +++ b/src/net/jxvtc/dao/appinfo/AppInfoMapper.java @@ -0,0 +1,37 @@ +package net.jxvtc.dao.appinfo; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import net.jxvtc.pojo.AppInfo; + +public interface AppInfoMapper { + /** + * App列表 + */ + public List getAppInfoList + (@Param(value="softwareName")String querySoftwareName, + @Param(value="status")Integer queryStatus, + @Param(value="flatformId")Integer queryFlatformId, + @Param(value="categoryLevel1")Integer queryCategoryLevel1, + @Param(value="categoryLevel2")Integer queryCategoryLevel2, + @Param(value="categoryLevel3")Integer queryCategoryLevel3, + @Param(value="devId")Integer devId, + @Param("from")Integer currentPageNo, + @Param("pageSize")Integer pageSize)throws Exception; + public int getAppInfoCount + (@Param(value="softwareName")String querySoftwareName, + @Param(value="status")Integer queryStatus, + @Param(value="flatformId")Integer queryFlatformId, + @Param(value="categoryLevel1")Integer queryCategoryLevel1, + @Param(value="categoryLevel2")Integer queryCategoryLevel2, + @Param(value="categoryLevel3")Integer queryCategoryLevel3, + @Param(value="devId")Integer devId)throws Exception; + + public AppInfo getAppInfo(@Param(value="id")Integer id, + @Param(value="APKName")String APKName)throws Exception; + + + +} diff --git a/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml b/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml new file mode 100644 index 0000000..fd53a57 --- /dev/null +++ b/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.java b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.java new file mode 100644 index 0000000..a47fe77 --- /dev/null +++ b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.java @@ -0,0 +1,11 @@ +package net.jxvtc.dao.datadictionary; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import net.jxvtc.pojo.DataDictionary; + +public interface DataDictionaryMapper { + public List getDataDictionaryList(@Param("typeCode")String typeCode)throws Exception; +} diff --git a/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml new file mode 100644 index 0000000..f0e2631 --- /dev/null +++ b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/src/net/jxvtc/pojo/AppCategory.java b/src/net/jxvtc/pojo/AppCategory.java new file mode 100644 index 0000000..824cff4 --- /dev/null +++ b/src/net/jxvtc/pojo/AppCategory.java @@ -0,0 +1,63 @@ +package net.jxvtc.pojo; + +import java.util.Date; + +public class AppCategory { + private Integer id;//id; + private String categoryCode;//分类编码 + private String categoryName;//分类名称 + private Integer parentId;//父级节点id; + private Integer createdBy;//创建者 + private Date creationTime;//创建时间 + private Integer modifyBy;//更新者 + private Date modifyDate;//更新时间 + public Integer getId() { + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getCategoryCode() { + return categoryCode; + } + public void setCategoryCode(String categoryCode) { + this.categoryCode = categoryCode; + } + public String getCategoryName() { + return categoryName; + } + public void setCategoryName(String categoryName) { + this.categoryName = categoryName; + } + public Integer getParentId() { + return parentId; + } + public void setParentId(Integer parentId) { + this.parentId = parentId; + } + public Integer getCreatedBy() { + return createdBy; + } + public void setCreatedBy(Integer createdBy) { + this.createdBy = createdBy; + } + public Date getCreationTime() { + return creationTime; + } + public void setCreationTime(Date creationTime) { + this.creationTime = creationTime; + } + public Integer getModifyBy() { + return modifyBy; + } + public void setModifyBy(Integer modifyBy) { + this.modifyBy = modifyBy; + } + public Date getModifyDate() { + return modifyDate; + } + public void setModifyDate(Date modifyDate) { + this.modifyDate = modifyDate; + } + +} diff --git a/src/net/jxvtc/pojo/AppInfo.java b/src/net/jxvtc/pojo/AppInfo.java new file mode 100644 index 0000000..d5849c9 --- /dev/null +++ b/src/net/jxvtc/pojo/AppInfo.java @@ -0,0 +1,225 @@ +package net.jxvtc.pojo; + +import java.math.BigDecimal; +import java.util.Date; + +public class AppInfo { + private Integer id;//id; + private String softwareName;//软件名 + private String APKName;//APK名 + private String supportROM;//支持的ROM + private String interfaceLanguage;//界面语言 + private BigDecimal softwareSize;//软件大小 + private Date updateDate;//更新日期 + private Integer devId;//开发者Id + private String appInfo;//App简介 + private Integer status;//状态 + private Date onSaleDate;//上架时间 + private Date offSaleDate;//下架时间 + private Integer flatformId;//所属平台 + private String flatformName; + private String statusName; + private String categoryLevel1Name; + private String categoryLevel2Name; + private String categoryLevel3Name; + private String devName; + private String versionNo; + public String getVersionNo() { + return versionNo; + } + public void setVersionNo(String versionNo) { + this.versionNo = versionNo; + } + public String getStatusName() { + return statusName; + } + public void setStatusName(String statusName) { + this.statusName = statusName; + } + public String getCategoryLevel1Name() { + return categoryLevel1Name; + } + public void setCategoryLevel1Name(String categoryLevel1Name) { + this.categoryLevel1Name = categoryLevel1Name; + } + public String getCategoryLevel2Name() { + return categoryLevel2Name; + } + public void setCategoryLevel2Name(String categoryLevel2Name) { + this.categoryLevel2Name = categoryLevel2Name; + } + public String getCategoryLevel3Name() { + return categoryLevel3Name; + } + public void setCategoryLevel3Name(String categoryLevel3Name) { + this.categoryLevel3Name = categoryLevel3Name; + } + public String getDevName() { + return devName; + } + public void setDevName(String devName) { + this.devName = devName; + } + public String getFlatformName() { + return flatformName; + } + public void setFlatformName(String flatformName) { + this.flatformName = flatformName; + } + private Integer categoryLevel3;//所属3级分类 + private Integer downloads;//下载次数 + private Integer createdBy;//创建者 + private Date creationDate;//创建日期 + private Integer modifyBy;//创建者 + private Date modifyDate;//创建日期 + private Integer categoryLevel1;//所属1级分类 + private Integer categoryLevel2;//所属2级分类 + private String logoPicPath;//图片的url地址 + private String logoLocPath;//图片的服务器地址 + private Integer versionId;//版本号id + public Integer getId() { + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getSoftwareName() { + return softwareName; + } + public void setSoftwareName(String softwareName) { + this.softwareName = softwareName; + } + public String getAPKName() { + return APKName; + } + public void setAPKName(String aPKName) { + APKName = aPKName; + } + public String getSupportROM() { + return supportROM; + } + public void setSupportROM(String supportROM) { + this.supportROM = supportROM; + } + public String getInterfaceLanguage() { + return interfaceLanguage; + } + public void setInterfaceLanguage(String interfaceLanguage) { + this.interfaceLanguage = interfaceLanguage; + } + public BigDecimal getSoftwareSize() { + return softwareSize; + } + public void setSoftwareSize(BigDecimal softwareSize) { + this.softwareSize = softwareSize; + } + public Date getUpdateDate() { + return updateDate; + } + public void setUpdateDate(Date updateDate) { + this.updateDate = updateDate; + } + public Integer getDevId() { + return devId; + } + public void setDevId(Integer devId) { + this.devId = devId; + } + public String getAppInfo() { + return appInfo; + } + public void setAppInfo(String appInfo) { + this.appInfo = appInfo; + } + public Integer getStatus() { + return status; + } + public void setStatus(Integer status) { + this.status = status; + } + public Date getOnSaleDate() { + return onSaleDate; + } + public void setOnSaleDate(Date onSaleDate) { + this.onSaleDate = onSaleDate; + } + public Date getOffSaleDate() { + return offSaleDate; + } + public void setOffSaleDate(Date offSaleDate) { + this.offSaleDate = offSaleDate; + } + public Integer getFlatformId() { + return flatformId; + } + public void setFlatformId(Integer flatformId) { + this.flatformId = flatformId; + } + public Integer getCategoryLevel3() { + return categoryLevel3; + } + public void setCategoryLevel3(Integer categoryLevel3) { + this.categoryLevel3 = categoryLevel3; + } + public Integer getDownloads() { + return downloads; + } + public void setDownloads(Integer downloads) { + this.downloads = downloads; + } + public Integer getCreatedBy() { + return createdBy; + } + public void setCreatedBy(Integer createdBy) { + this.createdBy = createdBy; + } + public Date getCreationDate() { + return creationDate; + } + public void setCreationDate(Date creationDate) { + this.creationDate = creationDate; + } + public Integer getModifyBy() { + return modifyBy; + } + public void setModifyBy(Integer modifyBy) { + this.modifyBy = modifyBy; + } + public Date getModifyDate() { + return modifyDate; + } + public void setModifyDate(Date modifyDate) { + this.modifyDate = modifyDate; + } + public Integer getCategoryLevel1() { + return categoryLevel1; + } + public void setCategoryLevel1(Integer categoryLevel1) { + this.categoryLevel1 = categoryLevel1; + } + public Integer getCategoryLevel2() { + return categoryLevel2; + } + public void setCategoryLevel2(Integer categoryLevel2) { + this.categoryLevel2 = categoryLevel2; + } + public String getLogoPicPath() { + return logoPicPath; + } + public void setLogoPicPath(String logoPicPath) { + this.logoPicPath = logoPicPath; + } + public String getLogoLocPath() { + return logoLocPath; + } + public void setLogoLocPath(String logoLocPath) { + this.logoLocPath = logoLocPath; + } + public Integer getVersionId() { + return versionId; + } + public void setVersionId(Integer versionId) { + this.versionId = versionId; + } + +} \ No newline at end of file diff --git a/src/net/jxvtc/pojo/DataDictionary.java b/src/net/jxvtc/pojo/DataDictionary.java new file mode 100644 index 0000000..702c193 --- /dev/null +++ b/src/net/jxvtc/pojo/DataDictionary.java @@ -0,0 +1,69 @@ +package net.jxvtc.pojo; + +import java.util.Date; + +public class DataDictionary { + private Integer id;//id; + private String typeCode;//类型编码 + private String typeName;//类型名称 + private Integer valueId;//类型之id + private String valueName;//类型值名称 + private Integer creatBy;//创建者 + private Date creationDate;//创建时间 + private Integer modifyBy;//更新者 + private Date modifyDate;//更新时间 + public Integer getId() { + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getTypeCode() { + return typeCode; + } + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + public String getTypeName() { + return typeName; + } + public void setTypeName(String typeName) { + this.typeName = typeName; + } + public Integer getValueId() { + return valueId; + } + public void setValueId(Integer valueId) { + this.valueId = valueId; + } + public String getValueName() { + return valueName; + } + public void setValueName(String valueName) { + this.valueName = valueName; + } + public Integer getCreatBy() { + return creatBy; + } + public void setCreatBy(Integer creatBy) { + this.creatBy = creatBy; + } + public Date getCreationDate() { + return creationDate; + } + public void setCreationDate(Date creationDate) { + this.creationDate = creationDate; + } + public Integer getModifyBy() { + return modifyBy; + } + public void setModifyBy(Integer modifyBy) { + this.modifyBy = modifyBy; + } + public Date getModifyDate() { + return modifyDate; + } + public void setModifyDate(Date modifyDate) { + this.modifyDate = modifyDate; + } +} diff --git a/src/net/jxvtc/service/appcategory/AppCategoryService.java b/src/net/jxvtc/service/appcategory/AppCategoryService.java new file mode 100644 index 0000000..0ed1cf8 --- /dev/null +++ b/src/net/jxvtc/service/appcategory/AppCategoryService.java @@ -0,0 +1,10 @@ +package net.jxvtc.service.appcategory; + +import java.util.List; + +import net.jxvtc.pojo.AppCategory; + +public interface AppCategoryService { + public List getAppCategoryListByparentId(Integer parentId)throws Exception; + +} diff --git a/src/net/jxvtc/service/appcategory/AppCategoryServiceImpl.java b/src/net/jxvtc/service/appcategory/AppCategoryServiceImpl.java new file mode 100644 index 0000000..ec6adf3 --- /dev/null +++ b/src/net/jxvtc/service/appcategory/AppCategoryServiceImpl.java @@ -0,0 +1,26 @@ +package net.jxvtc.service.appcategory; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import net.jxvtc.dao.appcategory.AppCategoryMapper; +import net.jxvtc.pojo.AppCategory; + + +@Service +public class AppCategoryServiceImpl implements AppCategoryService{ + + @Resource + private AppCategoryMapper appCategoryMapper; + + + @Override + public List getAppCategoryListByparentId(Integer parentId) throws Exception { + // TODO Auto-generated method stub + return appCategoryMapper.getAppCategoryByparentId(parentId); + } + +} diff --git a/src/net/jxvtc/service/appinfo/AppInfoService.java b/src/net/jxvtc/service/appinfo/AppInfoService.java new file mode 100644 index 0000000..bce5ada --- /dev/null +++ b/src/net/jxvtc/service/appinfo/AppInfoService.java @@ -0,0 +1,25 @@ +package net.jxvtc.service.appinfo; + +import java.util.List; + +import net.jxvtc.pojo.AppInfo; + +public interface AppInfoService { + public ListgetAppInfo(String querySoftwareName, + Integer queryStatus, + Integer queryFlatfromId, + Integer queryCategoyrLevel, + Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, + Integer queryDevId, + Integer currentPageNo, + Integer pageSize)throws Exception; + public int getAppInfoCount(String querySoftwareName, + Integer queryStatus, + Integer queryFlatfromId, + Integer queryCategoyrLevel, + Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, + Integer queryDevId + ) throws Exception; +} diff --git a/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java b/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java new file mode 100644 index 0000000..403c6a4 --- /dev/null +++ b/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java @@ -0,0 +1,49 @@ +package net.jxvtc.service.appinfo; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import net.jxvtc.dao.appinfo.AppInfoMapper; +import net.jxvtc.pojo.AppInfo; + +@Service +public class AppInfoServiceImpl implements AppInfoService { + @Resource + private AppInfoMapper appInfomapper; + + + + + @Override + public List getAppInfo(String querySoftwareName, + Integer queryStatus, Integer queryFlatfromId, + Integer queryCategoyrLevel, Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, Integer queryDevId, + Integer currentPageNo,Integer pageSize) throws Exception + { + // TODO Auto-generated method stub + currentPageNo = (currentPageNo-1)*pageSize; + return appInfomapper.getAppInfoList(querySoftwareName, queryStatus, + queryFlatfromId,queryCategoyrLevel, + queryCategoyrLeve2,queryCategoyrLeve3, + queryDevId, + currentPageNo, pageSize); + } + + @Override + public int getAppInfoCount(String querySoftwareName, Integer queryStatus, + Integer queryFlatfromId,Integer queryCategoyrLevel, + Integer queryCategoyrLeve2, Integer queryCategoyrLeve3, + Integer queryDevId)throws Exception + { + // TODO Auto-generated method stub + return appInfomapper.getAppInfoCount(querySoftwareName, queryStatus, + queryFlatfromId,queryCategoyrLevel, + queryCategoyrLeve2,queryCategoyrLeve3, + queryDevId); + } + +} diff --git a/src/net/jxvtc/service/datadictionary/DataDictionaryService.java b/src/net/jxvtc/service/datadictionary/DataDictionaryService.java new file mode 100644 index 0000000..df4d37d --- /dev/null +++ b/src/net/jxvtc/service/datadictionary/DataDictionaryService.java @@ -0,0 +1,12 @@ +package net.jxvtc.service.datadictionary; + +import java.util.List; + +import net.jxvtc.pojo.DataDictionary; + +public interface DataDictionaryService { + + + public List getDataDictionaryList(String typeCode)throws Exception; + +} diff --git a/src/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.java b/src/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.java new file mode 100644 index 0000000..6f2ef85 --- /dev/null +++ b/src/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.java @@ -0,0 +1,26 @@ +package net.jxvtc.service.datadictionary; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import net.jxvtc.dao.datadictionary.DataDictionaryMapper; +import net.jxvtc.pojo.DataDictionary; + + +@Service +public class DataDictionaryServiceImpl implements DataDictionaryService { + + @Resource + private DataDictionaryMapper dataDictionaryMapper; + + + @Override + public List getDataDictionaryList(String typeCode) throws Exception { + // TODO Auto-generated method stub + return dataDictionaryMapper.getDataDictionaryList(typeCode); + } + +} diff --git a/src/net/jxvtc/tools/PageSupport.java b/src/net/jxvtc/tools/PageSupport.java new file mode 100644 index 0000000..7ba8cdb --- /dev/null +++ b/src/net/jxvtc/tools/PageSupport.java @@ -0,0 +1,70 @@ +package net.jxvtc.tools; + +/** + * 分页工具类 + * @author + * + */ +public class PageSupport { + //当前页码-来自于用户输入 + private int currentPageNo = 1; + + //总数量(表) + private int totalCount = 0; + + //页面容量 + private int pageSize = 0; + + //总页数-totalCount/pageSize(+1) + private int totalPageCount = 1; + + public int getCurrentPageNo() { + return currentPageNo; + } + + public void setCurrentPageNo(int currentPageNo) { + if(currentPageNo > 0){ + this.currentPageNo = currentPageNo; + } + } + + public int getTotalCount() { + return totalCount; + } + + public void setTotalCount(int totalCount) { + if(totalCount > 0){ + this.totalCount = totalCount; + //设置总页数 + this.setTotalPageCountByRs(); + } + } + public int getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + if(pageSize > 0){ + this.pageSize = pageSize; + } + } + + public int getTotalPageCount() { + return totalPageCount; + } + + public void setTotalPageCount(int totalPageCount) { + this.totalPageCount = totalPageCount; + } + + public void setTotalPageCountByRs(){ + if(this.totalCount % this.pageSize == 0){ + this.totalPageCount = this.totalCount / this.pageSize; + }else if(this.totalCount % this.pageSize > 0){ + this.totalPageCount = this.totalCount / this.pageSize + 1; + }else{ + this.totalPageCount = 0; + } + } + +} \ No newline at end of file -- Gitee From 062389f9232d1f411c77a07bc2522ebc2e1cff5f Mon Sep 17 00:00:00 2001 From: Snake Date: Tue, 6 Nov 2018 14:07:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?4.=E7=94=A8=E6=88=B7=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jxvtc/controller/AppInfoController.class | Bin 6474 -> 6474 bytes .../jxvtc/controller/AppInfoController.java | 9 +++--- .../jxvtc/service/appinfo/AppInfoService.java | 30 ++++++++---------- 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/build/classes/net/jxvtc/controller/AppInfoController.class b/build/classes/net/jxvtc/controller/AppInfoController.class index a941eb8f4a298bee9018d9cc462bbb8c572ff121..4b3716c9ad5707bb011ca54a28f89e5b8ab09b1a 100644 GIT binary patch delta 319 zcmYMny(OSPh?k%L;LQ>QHIl}n@YX;LZ8s-#s7w5f%5b>NkkPW92HLAvFOI6#kP z>D2=L+F(E-2DQ(SP8imuAD^xn(G8=zXG~8_=#_xpnbZeU`ilIUY5g!`(ac&rbC$%s zrLtg|ELt{8mdCPrSg~?et)4aW60{-KZITUJWz+W9vO~7*k{!Ec*B;rkH$r59uHur< VE#ZI|4smjXi(}F_4Te+3{{SdrPB;Jn delta 319 zcmYMny(PmAZ2P++Q{|lWv+B8|r9c~^dAxtSxl<`bC zuT=3#HQ&_oOPykZV5?dNoL&y!2}<>KO*) zXHWr#w1roP4C{yyo#E5fB%``!OgD_{o(YAS(hJjiXGR~)>MQzh=Jdn7#j;?D_|3_p zWw2y91T2qbD`dsotXdUo*37zj*f1YKn`P71*|Gz+?Svh>V%Kijvq$#rjRUelp@h^6 UOFANsV;r22#wnSc1taNGfBS7s>Hq)$ diff --git a/src/net/jxvtc/controller/AppInfoController.java b/src/net/jxvtc/controller/AppInfoController.java index b89b796..9fb3ec1 100644 --- a/src/net/jxvtc/controller/AppInfoController.java +++ b/src/net/jxvtc/controller/AppInfoController.java @@ -66,6 +66,7 @@ public class AppInfoController { int pageSize = Constants.pageSize; + Integer devId=null; Integer queryStatus=null; Integer queryFlatformId=null; @@ -105,9 +106,9 @@ public class AppInfoController { int totalCount = 0; try { - totalCount = appinfoService.getAppInfoCount(querySoftwareName, queryStatus, + totalCount = appinfoService.getAppInfoCount(querySoftwareName, queryStatus, devId, queryFlatformId, queryCategoryLevel1, - queryCategoryLevel2, queryCategoryLevel3, devId); + queryCategoryLevel2, queryCategoryLevel3); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); @@ -125,10 +126,10 @@ public class AppInfoController { currentPageNo = totalPageCount; } try { - appInfoList=appinfoService.getAppInfo(querySoftwareName, queryStatus, + appInfoList=appinfoService.getAppInfo(querySoftwareName, queryStatus, devId, queryFlatformId, queryCategoryLevel1, queryCategoryLevel2, queryCategoryLevel3, - devId, currentPageNo, pageSize); + currentPageNo, pageSize); statusList = dataDictionaryService.getDataDictionaryList("APP_STATUS"); flatFormList = dataDictionaryService.getDataDictionaryList("APP_FLATFORM"); categoryLevel1List = appCategoryService.getAppCategoryListByparentId(null); diff --git a/src/net/jxvtc/service/appinfo/AppInfoService.java b/src/net/jxvtc/service/appinfo/AppInfoService.java index bce5ada..02485af 100644 --- a/src/net/jxvtc/service/appinfo/AppInfoService.java +++ b/src/net/jxvtc/service/appinfo/AppInfoService.java @@ -5,21 +5,17 @@ import java.util.List; import net.jxvtc.pojo.AppInfo; public interface AppInfoService { - public ListgetAppInfo(String querySoftwareName, - Integer queryStatus, - Integer queryFlatfromId, - Integer queryCategoyrLevel, - Integer queryCategoyrLeve2, - Integer queryCategoyrLeve3, - Integer queryDevId, - Integer currentPageNo, - Integer pageSize)throws Exception; - public int getAppInfoCount(String querySoftwareName, - Integer queryStatus, - Integer queryFlatfromId, - Integer queryCategoyrLevel, - Integer queryCategoyrLeve2, - Integer queryCategoyrLeve3, - Integer queryDevId - ) throws Exception; + public List getAppInfo(String querySoftwareName, + Integer queryStatus, Integer queryFlatfromId, + Integer queryCategoyrLevel, Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, Integer queryDevId, + Integer currentPageNo, Integer pageSize) throws Exception; + + public int getAppInfoCount(String querySoftwareName, Integer queryStatus, + Integer queryFlatfromId, + Integer queryCategoyrLevel, Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, Integer queryDevId) + throws Exception; + + } -- Gitee