├── .classpath ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container └── org.eclipse.wst.jsdt.ui.superType.name ├── WebContent ├── META-INF │ └── MANIFEST.MF ├── WEB-INF │ ├── lib │ │ ├── FYOpenApi.jar │ │ ├── aopalliance-1.0.jar │ │ ├── aspectjweaver-1.7.1.jar │ │ ├── commons-beanutils-1.9.2.jar │ │ ├── commons-collections-3.2.1.jar │ │ ├── commons-fileupload-1.2.2.jar │ │ ├── commons-io-2.4.jar │ │ ├── commons-lang-2.6.jar │ │ ├── commons-logging-1.1.1.jar │ │ ├── commons-logging-api-1.1.jar │ │ ├── dom4j-1.6.1.jar │ │ ├── druid-0.2.9.jar │ │ ├── ezmorph-1.0.6.jar │ │ ├── jackson-core-asl-1.6.4.jar │ │ ├── jackson-mapper-asl-1.6.4.jar │ │ ├── jaxen-1.1-beta-6.jar │ │ ├── jdom.jar │ │ ├── json-lib-2.4-jdk15.jar │ │ ├── jstl-1.2.jar │ │ ├── junit-4.11.jar │ │ ├── log4j-1.2.17.jar │ │ ├── mybatis-3.1.1.jar │ │ ├── mybatis-generator-core-1.3.2-javadoc.jar │ │ ├── mybatis-generator-core-1.3.2-sources.jar │ │ ├── mybatis-generator-core-1.3.2.jar │ │ ├── mybatis-spring-1.1.1.jar │ │ ├── mysql-connector-java-3.1.8-bin.jar │ │ ├── mysql-connector-java-5.1.13-bin.jar │ │ ├── ojdbc6.jar │ │ ├── org.springframework.aop-3.1.1.RELEASE.jar │ │ ├── org.springframework.asm-3.1.1.RELEASE.jar │ │ ├── org.springframework.aspects-3.1.1.RELEASE.jar │ │ ├── org.springframework.beans-3.1.1.RELEASE.jar │ │ ├── org.springframework.context-3.1.1.RELEASE.jar │ │ ├── org.springframework.context.support-3.1.1.RELEASE.jar │ │ ├── org.springframework.core-3.1.1.RELEASE.jar │ │ ├── org.springframework.expression-3.1.1.RELEASE.jar │ │ ├── org.springframework.instrument-3.1.1.RELEASE.jar │ │ ├── org.springframework.instrument.tomcat-3.1.1.RELEASE.jar │ │ ├── org.springframework.jdbc-3.1.1.RELEASE.jar │ │ ├── org.springframework.jms-3.1.1.RELEASE.jar │ │ ├── org.springframework.orm-3.1.1.RELEASE.jar │ │ ├── org.springframework.oxm-3.1.1.RELEASE.jar │ │ ├── org.springframework.test-3.1.1.RELEASE.jar │ │ ├── org.springframework.transaction-3.1.1.RELEASE.jar │ │ ├── org.springframework.web-3.1.1.RELEASE.jar │ │ ├── org.springframework.web.portlet-3.1.1.RELEASE.jar │ │ ├── org.springframework.web.servlet-3.1.1.RELEASE.jar │ │ ├── org.springframework.web.struts-3.1.1.RELEASE.jar │ │ └── servlet-api-3.0-alpha-1.jar │ └── web.xml └── test.jsp ├── build └── classes │ ├── MyBatis-Configuration.xml │ ├── com │ └── pure │ │ ├── Generator │ │ ├── Generator.class │ │ └── Generator.xml │ │ ├── common │ │ ├── Dialect$Type.class │ │ ├── Dialect.class │ │ ├── EmptyStringIfNull.class │ │ ├── JsonUtil.class │ │ ├── MapJsonUtil.class │ │ ├── MysqlDialect.class │ │ ├── OracleDialect.class │ │ ├── PageInfo.class │ │ ├── PaginationInterceptor.class │ │ ├── ReturnData.class │ │ ├── SQLServerDialect.class │ │ ├── Sampler.class │ │ ├── SysCodeMsg.class │ │ └── Util.class │ │ ├── controller │ │ ├── AuditoriumController.class │ │ ├── BaseController.class │ │ ├── FilmController.class │ │ ├── FilmCriticController.class │ │ ├── OrderController.class │ │ ├── TicketController.class │ │ └── UserController.class │ │ ├── dao │ │ ├── TAuditoriumMapper.class │ │ ├── TFilmCriticMapper.class │ │ ├── TFilmMapper.class │ │ ├── TFllowMapper.class │ │ ├── TOrderMapper.class │ │ ├── TOrderRestInfoMapper.class │ │ ├── TReplyMapper.class │ │ ├── TScreeningsMapper.class │ │ ├── TStarMapper.class │ │ ├── TUserMapper.class │ │ └── TUserThumbsMapper.class │ │ ├── db │ │ ├── KeyValue.class │ │ ├── TAuditorium.class │ │ ├── TAuditoriumExample$Criteria.class │ │ ├── TAuditoriumExample$Criterion.class │ │ ├── TAuditoriumExample$GeneratedCriteria.class │ │ ├── TAuditoriumExample.class │ │ ├── TFilm.class │ │ ├── TFilmCritic.class │ │ ├── TFilmCriticExample$Criteria.class │ │ ├── TFilmCriticExample$Criterion.class │ │ ├── TFilmCriticExample$GeneratedCriteria.class │ │ ├── TFilmCriticExample.class │ │ ├── TFilmExample$Criteria.class │ │ ├── TFilmExample$Criterion.class │ │ ├── TFilmExample$GeneratedCriteria.class │ │ ├── TFilmExample.class │ │ ├── TFllow.class │ │ ├── TFllowExample$Criteria.class │ │ ├── TFllowExample$Criterion.class │ │ ├── TFllowExample$GeneratedCriteria.class │ │ ├── TFllowExample.class │ │ ├── TOrder.class │ │ ├── TOrderExample$Criteria.class │ │ ├── TOrderExample$Criterion.class │ │ ├── TOrderExample$GeneratedCriteria.class │ │ ├── TOrderExample.class │ │ ├── TOrderRestInfo.class │ │ ├── TOrderRestInfoExample$Criteria.class │ │ ├── TOrderRestInfoExample$Criterion.class │ │ ├── TOrderRestInfoExample$GeneratedCriteria.class │ │ ├── TOrderRestInfoExample.class │ │ ├── TReply.class │ │ ├── TReplyExample$Criteria.class │ │ ├── TReplyExample$Criterion.class │ │ ├── TReplyExample$GeneratedCriteria.class │ │ ├── TReplyExample.class │ │ ├── TScreenings.class │ │ ├── TScreeningsExample$Criteria.class │ │ ├── TScreeningsExample$Criterion.class │ │ ├── TScreeningsExample$GeneratedCriteria.class │ │ ├── TScreeningsExample.class │ │ ├── TStar.class │ │ ├── TStarExample$Criteria.class │ │ ├── TStarExample$Criterion.class │ │ ├── TStarExample$GeneratedCriteria.class │ │ ├── TStarExample.class │ │ ├── TUser.class │ │ ├── TUserExample$Criteria.class │ │ ├── TUserExample$Criterion.class │ │ ├── TUserExample$GeneratedCriteria.class │ │ ├── TUserExample.class │ │ ├── TUserThumbs.class │ │ ├── TUserThumbsExample$Criteria.class │ │ ├── TUserThumbsExample$Criterion.class │ │ ├── TUserThumbsExample$GeneratedCriteria.class │ │ └── TUserThumbsExample.class │ │ ├── mapping │ │ ├── TAuditoriumMapper.xml │ │ ├── TFilmCriticMapper.xml │ │ ├── TFilmMapper.xml │ │ ├── TFllowMapper.xml │ │ ├── TOrderMapper.xml │ │ ├── TOrderRestInfoMapper.xml │ │ ├── TReplyMapper.xml │ │ ├── TScreeningsMapper.xml │ │ ├── TStarMapper.xml │ │ ├── TUserMapper.xml │ │ └── TUserThumbsMapper.xml │ │ ├── security │ │ └── SecurityFilter.class │ │ ├── service │ │ ├── AuditoriumService.class │ │ ├── CommonService.class │ │ ├── FilmCriticService.class │ │ ├── FilmService.class │ │ ├── OrderService.class │ │ ├── TicketService.class │ │ ├── UserService.class │ │ ├── impl │ │ │ ├── AuditoriumServiceImpl.class │ │ │ ├── CommonServiceImpl.class │ │ │ ├── FilmCriticServiceImpl.class │ │ │ ├── FilmServiceImpl.class │ │ │ ├── OrderServiceImpl.class │ │ │ ├── TicketServiceImpl.class │ │ │ └── UserServiceImpl.class │ │ └── model │ │ │ ├── BaseModel.class │ │ │ └── SpatialInfo.class │ │ └── servicecfg │ │ ├── ConditionCfg.class │ │ └── conditionCfg.xml │ ├── config.properties │ ├── log4j.properties │ ├── proxy.config │ ├── spring-mvc.xml │ ├── spring-mybatis.xml │ └── spring.xml └── src ├── MyBatis-Configuration.xml ├── com └── pure │ ├── Generator │ ├── Generator.java │ └── Generator.xml │ ├── common │ ├── Dialect.java │ ├── EmptyStringIfNull.java │ ├── JsonUtil.java │ ├── MapJsonUtil.java │ ├── MysqlDialect.java │ ├── OracleDialect.java │ ├── PageInfo.java │ ├── PaginationInterceptor.java │ ├── ReturnData.java │ ├── SQLServerDialect.java │ ├── Sampler.java │ ├── SysCodeMsg.java │ └── Util.java │ ├── controller │ ├── AuditoriumController.java │ ├── BaseController.java │ ├── FilmController.java │ ├── FilmCriticController.java │ ├── OrderController.java │ ├── TicketController.java │ └── UserController.java │ ├── dao │ ├── TAuditoriumMapper.java │ ├── TFilmCriticMapper.java │ ├── TFilmMapper.java │ ├── TFllowMapper.java │ ├── TOrderMapper.java │ ├── TOrderRestInfoMapper.java │ ├── TReplyMapper.java │ ├── TScreeningsMapper.java │ ├── TStarMapper.java │ ├── TUserMapper.java │ └── TUserThumbsMapper.java │ ├── db │ ├── KeyValue.java │ ├── TAuditorium.java │ ├── TAuditoriumExample.java │ ├── TFilm.java │ ├── TFilmCritic.java │ ├── TFilmCriticExample.java │ ├── TFilmExample.java │ ├── TFllow.java │ ├── TFllowExample.java │ ├── TOrder.java │ ├── TOrderExample.java │ ├── TOrderRestInfo.java │ ├── TOrderRestInfoExample.java │ ├── TReply.java │ ├── TReplyExample.java │ ├── TScreenings.java │ ├── TScreeningsExample.java │ ├── TStar.java │ ├── TStarExample.java │ ├── TUser.java │ ├── TUserExample.java │ ├── TUserThumbs.java │ └── TUserThumbsExample.java │ ├── mapping │ ├── TAuditoriumMapper.xml │ ├── TFilmCriticMapper.xml │ ├── TFilmMapper.xml │ ├── TFllowMapper.xml │ ├── TOrderMapper.xml │ ├── TOrderRestInfoMapper.xml │ ├── TReplyMapper.xml │ ├── TScreeningsMapper.xml │ ├── TStarMapper.xml │ ├── TUserMapper.xml │ └── TUserThumbsMapper.xml │ ├── security │ └── SecurityFilter.java │ ├── service │ ├── AuditoriumService.java │ ├── CommonService.java │ ├── FilmCriticService.java │ ├── FilmService.java │ ├── OrderService.java │ ├── TicketService.java │ ├── UserService.java │ ├── impl │ │ ├── AuditoriumServiceImpl.java │ │ ├── CommonServiceImpl.java │ │ ├── FilmCriticServiceImpl.java │ │ ├── FilmServiceImpl.java │ │ ├── OrderServiceImpl.java │ │ ├── TicketServiceImpl.java │ │ └── UserServiceImpl.java │ └── model │ │ ├── BaseModel.java │ │ └── SpatialInfo.java │ └── servicecfg │ ├── ConditionCfg.java │ └── conditionCfg.xml ├── config.properties ├── log4j.properties ├── proxy.config ├── spring-mvc.xml ├── spring-mybatis.xml └── spring.xml /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | fooSystem 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.wst.common.project.facet.core.nature 33 | org.eclipse.jdt.core.javanature 34 | org.eclipse.wst.jsdt.core.jsNature 35 | 36 | 37 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/FYOpenApi.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/FYOpenApi.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aopalliance-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/aopalliance-1.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aspectjweaver-1.7.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/aspectjweaver-1.7.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-beanutils-1.9.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/commons-beanutils-1.9.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-collections-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/commons-collections-3.2.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-io-2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/commons-io-2.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-lang-2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/commons-lang-2.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-logging-api-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/commons-logging-api-1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/dom4j-1.6.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/dom4j-1.6.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/druid-0.2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/druid-0.2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/ezmorph-1.0.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/ezmorph-1.0.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-core-asl-1.6.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/jackson-core-asl-1.6.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-mapper-asl-1.6.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/jackson-mapper-asl-1.6.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jaxen-1.1-beta-6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/jaxen-1.1-beta-6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jdom.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/jdom.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/json-lib-2.4-jdk15.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/json-lib-2.4-jdk15.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/jstl-1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/junit-4.11.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/junit-4.11.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/log4j-1.2.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/log4j-1.2.17.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mybatis-3.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/mybatis-3.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mybatis-generator-core-1.3.2-javadoc.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/mybatis-generator-core-1.3.2-javadoc.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mybatis-generator-core-1.3.2-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/mybatis-generator-core-1.3.2-sources.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mybatis-generator-core-1.3.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/mybatis-generator-core-1.3.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mybatis-spring-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/mybatis-spring-1.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mysql-connector-java-3.1.8-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/mysql-connector-java-3.1.8-bin.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mysql-connector-java-5.1.13-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/mysql-connector-java-5.1.13-bin.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/ojdbc6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/ojdbc6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.aop-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.aop-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.asm-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.asm-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.aspects-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.aspects-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.beans-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.beans-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.context-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.context-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.context.support-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.context.support-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.core-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.core-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.expression-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.expression-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.instrument-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.instrument-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.instrument.tomcat-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.instrument.tomcat-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.jdbc-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.jdbc-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.jms-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.jms-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.orm-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.orm-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.oxm-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.oxm-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.test-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.test-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.transaction-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.transaction-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.web-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.web-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.web.portlet-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.web.portlet-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.web.servlet-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.springframework.web.struts-3.1.1.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/org.springframework.web.struts-3.1.1.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/servlet-api-3.0-alpha-1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/WebContent/WEB-INF/lib/servlet-api-3.0-alpha-1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | CQRiskPlatform 4 | 5 | contextConfigLocation 6 | classpath:spring.xml;classpath:spring-mybatis.xml 7 | 8 | 9 | 字符集过滤器 10 | encodingFilter 11 | org.springframework.web.filter.CharacterEncodingFilter 12 | 13 | 字符集编码 14 | encoding 15 | UTF-8 16 | 17 | 18 | 19 | encodingFilter 20 | /* 21 | 22 | 23 | spring监听器 24 | org.springframework.web.context.ContextLoaderListener 25 | 26 | 27 | org.springframework.web.util.IntrospectorCleanupListener 28 | 29 | 30 | spring mvc servlet 31 | springMvc 32 | org.springframework.web.servlet.DispatcherServlet 33 | 34 | spring mvc 配置文件 35 | contextConfigLocation 36 | classpath:spring-mvc.xml 37 | 38 | 1 39 | 40 | 41 | springMvc 42 | *.do 43 | 44 | 45 | DruidStatView 46 | com.alibaba.druid.support.http.StatViewServlet 47 | 48 | 49 | DruidStatView 50 | /druid/* 51 | 52 | 53 | 60 54 | 55 | 56 | index.html 57 | index.htm 58 | index.jsp 59 | default.html 60 | default.htm 61 | default.jsp 62 | 63 | -------------------------------------------------------------------------------- /WebContent/test.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /build/classes/MyBatis-Configuration.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /build/classes/com/pure/Generator/Generator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/Generator/Generator.class -------------------------------------------------------------------------------- /build/classes/com/pure/Generator/Generator.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 35 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /build/classes/com/pure/common/Dialect$Type.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/Dialect$Type.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/Dialect.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/Dialect.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/EmptyStringIfNull.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/EmptyStringIfNull.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/JsonUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/JsonUtil.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/MapJsonUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/MapJsonUtil.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/MysqlDialect.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/MysqlDialect.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/OracleDialect.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/OracleDialect.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/PageInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/PageInfo.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/PaginationInterceptor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/PaginationInterceptor.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/ReturnData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/ReturnData.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/SQLServerDialect.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/SQLServerDialect.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/Sampler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/Sampler.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/SysCodeMsg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/SysCodeMsg.class -------------------------------------------------------------------------------- /build/classes/com/pure/common/Util.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/common/Util.class -------------------------------------------------------------------------------- /build/classes/com/pure/controller/AuditoriumController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/controller/AuditoriumController.class -------------------------------------------------------------------------------- /build/classes/com/pure/controller/BaseController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/controller/BaseController.class -------------------------------------------------------------------------------- /build/classes/com/pure/controller/FilmController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/controller/FilmController.class -------------------------------------------------------------------------------- /build/classes/com/pure/controller/FilmCriticController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/controller/FilmCriticController.class -------------------------------------------------------------------------------- /build/classes/com/pure/controller/OrderController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/controller/OrderController.class -------------------------------------------------------------------------------- /build/classes/com/pure/controller/TicketController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/controller/TicketController.class -------------------------------------------------------------------------------- /build/classes/com/pure/controller/UserController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/controller/UserController.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TAuditoriumMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TAuditoriumMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TFilmCriticMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TFilmCriticMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TFilmMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TFilmMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TFllowMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TFllowMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TOrderMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TOrderMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TOrderRestInfoMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TOrderRestInfoMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TReplyMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TReplyMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TScreeningsMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TScreeningsMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TStarMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TStarMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TUserMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TUserMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/dao/TUserThumbsMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/dao/TUserThumbsMapper.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/KeyValue.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/KeyValue.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TAuditorium.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TAuditorium.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TAuditoriumExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TAuditoriumExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TAuditoriumExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TAuditoriumExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TAuditoriumExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TAuditoriumExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TAuditoriumExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TAuditoriumExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilm.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilm.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmCritic.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmCritic.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmCriticExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmCriticExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmCriticExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmCriticExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmCriticExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmCriticExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmCriticExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmCriticExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFilmExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFilmExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFllow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFllow.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFllowExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFllowExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFllowExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFllowExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFllowExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFllowExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TFllowExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TFllowExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrder.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderRestInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderRestInfo.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderRestInfoExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderRestInfoExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderRestInfoExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderRestInfoExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderRestInfoExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderRestInfoExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TOrderRestInfoExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TOrderRestInfoExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TReply.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TReply.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TReplyExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TReplyExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TReplyExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TReplyExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TReplyExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TReplyExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TReplyExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TReplyExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TScreenings.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TScreenings.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TScreeningsExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TScreeningsExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TScreeningsExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TScreeningsExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TScreeningsExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TScreeningsExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TScreeningsExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TScreeningsExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TStar.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TStar.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TStarExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TStarExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TStarExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TStarExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TStarExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TStarExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TStarExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TStarExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUser.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserThumbs.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserThumbs.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserThumbsExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserThumbsExample$Criteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserThumbsExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserThumbsExample$Criterion.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserThumbsExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserThumbsExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /build/classes/com/pure/db/TUserThumbsExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/db/TUserThumbsExample.class -------------------------------------------------------------------------------- /build/classes/com/pure/mapping/TFllowMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | and ${criterion.condition} 18 | 19 | 20 | and ${criterion.condition} #{criterion.value} 21 | 22 | 23 | and ${criterion.condition} #{criterion.value} 24 | and 25 | #{criterion.secondValue} 26 | 27 | 28 | and ${criterion.condition} 29 | 31 | #{listItem} 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 45 | 46 | 47 | 48 | 49 | 50 | and ${criterion.condition} 51 | 52 | 53 | and ${criterion.condition} #{criterion.value} 54 | 55 | 56 | and ${criterion.condition} #{criterion.value} 57 | and 58 | #{criterion.secondValue} 59 | 60 | 61 | and ${criterion.condition} 62 | 64 | #{listItem} 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | id, userid, filmid 76 | 77 | 92 | 99 | 100 | delete from 101 | t_follow 102 | where id = #{id,jdbcType=INTEGER} 103 | 104 | 105 | delete from t_follow 106 | 107 | 108 | 109 | 110 | 111 | insert into t_follow (id, 112 | userid, filmid 113 | ) 114 | values (#{id,jdbcType=INTEGER}, 115 | #{userid,jdbcType=INTEGER}, 116 | #{filmid,jdbcType=INTEGER} 117 | ) 118 | 119 | 120 | insert into t_follow 121 | 122 | 123 | id, 124 | 125 | 126 | userid, 127 | 128 | 129 | filmid, 130 | 131 | 132 | 133 | 134 | #{id,jdbcType=INTEGER}, 135 | 136 | 137 | #{userid,jdbcType=INTEGER}, 138 | 139 | 140 | #{filmid,jdbcType=INTEGER}, 141 | 142 | 143 | 144 | 151 | 152 | update t_follow 153 | 154 | 155 | id = #{record.id,jdbcType=INTEGER}, 156 | 157 | 158 | userid = #{record.userid,jdbcType=INTEGER}, 159 | 160 | 161 | filmid = #{record.filmid,jdbcType=INTEGER}, 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | update t_follow 170 | set id = #{record.id,jdbcType=INTEGER}, 171 | userid = 172 | #{record.userid,jdbcType=INTEGER}, 173 | filmid = 174 | #{record.filmid,jdbcType=INTEGER} 175 | 176 | 177 | 178 | 179 | 180 | update t_follow 181 | 182 | 183 | userid = #{userid,jdbcType=INTEGER}, 184 | 185 | 186 | filmid = #{filmid,jdbcType=INTEGER}, 187 | 188 | 189 | where id = #{id,jdbcType=INTEGER} 190 | 191 | 192 | update t_follow 193 | set userid = #{userid,jdbcType=INTEGER}, 194 | filmid = 195 | #{filmid,jdbcType=INTEGER} 196 | where id = #{id,jdbcType=INTEGER} 197 | 198 | 199 | 204 | -------------------------------------------------------------------------------- /build/classes/com/pure/mapping/TUserThumbsMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | and ${criterion.condition} 17 | 18 | 19 | and ${criterion.condition} #{criterion.value} 20 | 21 | 22 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 23 | 24 | 25 | and ${criterion.condition} 26 | 27 | #{listItem} 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | and ${criterion.condition} 46 | 47 | 48 | and ${criterion.condition} #{criterion.value} 49 | 50 | 51 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 52 | 53 | 54 | and ${criterion.condition} 55 | 56 | #{listItem} 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | userid, criticid 68 | 69 | 83 | 89 | 90 | delete from t_user_thumbs 91 | where userid = #{userid,jdbcType=INTEGER} 92 | 93 | 94 | delete from t_user_thumbs 95 | 96 | 97 | 98 | 99 | 100 | insert into t_user_thumbs (userid, criticid) 101 | values (#{userid,jdbcType=INTEGER}, #{criticid,jdbcType=INTEGER}) 102 | 103 | 104 | insert into t_user_thumbs 105 | 106 | 107 | userid, 108 | 109 | 110 | criticid, 111 | 112 | 113 | 114 | 115 | #{userid,jdbcType=INTEGER}, 116 | 117 | 118 | #{criticid,jdbcType=INTEGER}, 119 | 120 | 121 | 122 | 128 | 129 | update t_user_thumbs 130 | 131 | 132 | userid = #{record.userid,jdbcType=INTEGER}, 133 | 134 | 135 | criticid = #{record.criticid,jdbcType=INTEGER}, 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | update t_user_thumbs 144 | set userid = #{record.userid,jdbcType=INTEGER}, 145 | criticid = #{record.criticid,jdbcType=INTEGER} 146 | 147 | 148 | 149 | 150 | 151 | update t_user_thumbs 152 | 153 | 154 | criticid = #{criticid,jdbcType=INTEGER}, 155 | 156 | 157 | where userid = #{userid,jdbcType=INTEGER} 158 | 159 | 160 | update t_user_thumbs 161 | set criticid = #{criticid,jdbcType=INTEGER} 162 | where userid = #{userid,jdbcType=INTEGER} 163 | 164 | -------------------------------------------------------------------------------- /build/classes/com/pure/security/SecurityFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/security/SecurityFilter.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/AuditoriumService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/AuditoriumService.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/CommonService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/CommonService.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/FilmCriticService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/FilmCriticService.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/FilmService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/FilmService.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/OrderService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/OrderService.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/TicketService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/TicketService.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/UserService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/UserService.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/impl/AuditoriumServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/impl/AuditoriumServiceImpl.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/impl/CommonServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/impl/CommonServiceImpl.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/impl/FilmCriticServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/impl/FilmCriticServiceImpl.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/impl/FilmServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/impl/FilmServiceImpl.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/impl/OrderServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/impl/OrderServiceImpl.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/impl/TicketServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/impl/TicketServiceImpl.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/impl/UserServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/impl/UserServiceImpl.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/model/BaseModel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/model/BaseModel.class -------------------------------------------------------------------------------- /build/classes/com/pure/service/model/SpatialInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/service/model/SpatialInfo.class -------------------------------------------------------------------------------- /build/classes/com/pure/servicecfg/ConditionCfg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alexlin96/fooSystem/31373711acd006a43210b567094365f21dd14011/build/classes/com/pure/servicecfg/ConditionCfg.class -------------------------------------------------------------------------------- /build/classes/com/pure/servicecfg/conditionCfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /build/classes/config.properties: -------------------------------------------------------------------------------- 1 | #hibernate.dialect=com.bky.util.Oracle10gDialect 2 | #driverClassName=oracle.jdbc.driver.OracleDriver 3 | #validationQuery=SELECT 1 FROM DUAL 4 | #jdbc_url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Baikeyang)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl))) 5 | #jdbc_username=sshe 6 | #jdbc_password=1234 7 | 8 | #hibernate.dialect=org.hibernate.dialect.Oracle9Dialect 9 | #driverClassName=oracle.jdbc.driver.OracleDriver 10 | validationQuery=select 1 11 | jdbc_url=jdbc:mysql://localhost:3306/foosdb?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull 12 | jdbc_username=root 13 | jdbc_password=114422 14 | 15 | #hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect 16 | #driverClassName=com.mysql.jdbc.Driver 17 | #validationQuery=SELECT 1 18 | #jdbc_url=jdbc:mysql://localhost:3306/bkytest?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull 19 | #jdbc_username=root 20 | #jdbc_password=123456 21 | 22 | #hibernate.dialect=org.hibernate.dialect.SQLServer2008Dialect 23 | #driverClassName=net.sourceforge.jtds.jdbc.Driver 24 | #validationQuery=SELECT 1 25 | #jdbc_url=jdbc:jtds:sqlserver://127.0.0.1:1433/dbName 26 | #jdbc_username=sa 27 | #jdbc_password=123456 28 | 29 | #jndiName=java:comp/env/BenDiShuJuYuan 30 | 31 | #hibernate.hbm2ddl.auto=update 32 | #hibernate.show_sql=true 33 | #hibernate.format_sql=true 34 | #hibernate.use_sql_comments=true 35 | 36 | #sessionInfoName=sessionInfo 37 | 38 | #uploadPath=/ssheUploadFile -------------------------------------------------------------------------------- /build/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=INFO, Console 2 | log4j.rootCategory=INFO,stdout,R 3 | #Console 4 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 5 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n 7 | 8 | log4j.logger.java.sql.ResultSet=INFO 9 | log4j.logger.org.apache=INFO 10 | log4j.logger.java.sql.Connection=DEBUG 11 | log4j.logger.java.sql.Statement=DEBUG 12 | log4j.logger.java.sql.PreparedStatement=DEBUG -------------------------------------------------------------------------------- /build/classes/proxy.config: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 14 | 16 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /build/classes/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /build/classes/spring-mybatis.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | com.pure.service.* 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /build/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/MyBatis-Configuration.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/com/pure/Generator/Generator.java: -------------------------------------------------------------------------------- 1 | package com.pure.Generator; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | import org.mybatis.generator.api.MyBatisGenerator; 9 | import org.mybatis.generator.config.Configuration; 10 | import org.mybatis.generator.config.xml.ConfigurationParser; 11 | import org.mybatis.generator.internal.DefaultShellCallback; 12 | 13 | public class Generator { 14 | 15 | /** 16 | * @param args 17 | * @throws Exception 18 | * @throws IOException 19 | */ 20 | public static void main(String[] args) throws IOException, Exception { 21 | // TODO Auto-generated method stub 22 | List warnings = new ArrayList(); 23 | boolean overwrite = true; 24 | String url = Generator.class.getResource("/").getPath().toString(); 25 | //String path = url + "com/ljxy/Gnerator/Generator.xml"; 26 | String path = "F:\\WorkSpace\\fooSystem\\src\\com\\pure\\Generator\\Generator.xml"; 27 | //System.out.println(url); 28 | File configFile = new File(path); 29 | ConfigurationParser cp = new ConfigurationParser(warnings); 30 | Configuration config = cp.parseConfiguration(configFile); 31 | DefaultShellCallback callback = new DefaultShellCallback(overwrite); 32 | MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, 33 | callback, warnings); 34 | myBatisGenerator.generate(null); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/com/pure/Generator/Generator.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 35 | 37 | 38 | 39 |
40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/com/pure/common/Dialect.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | public abstract class Dialect { 4 | public static enum Type { 5 | MYSQL, ORACLE,SQLSERVER 6 | } 7 | 8 | public abstract String getLimitString(String sql, int offset, int limit); 9 | } 10 | -------------------------------------------------------------------------------- /src/com/pure/common/EmptyStringIfNull.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | import java.sql.CallableStatement; 4 | import java.sql.PreparedStatement; 5 | import java.sql.ResultSet; 6 | import java.sql.SQLException; 7 | 8 | import org.apache.ibatis.type.JdbcType; 9 | import org.apache.ibatis.type.TypeHandler; 10 | 11 | public class EmptyStringIfNull implements TypeHandler { 12 | 13 | @Override 14 | public String getResult(ResultSet rs, String columnName) 15 | throws SQLException { 16 | return (rs.getString(columnName) == null) ? "" : rs 17 | .getString(columnName); 18 | } 19 | 20 | @Override 21 | public String getResult(ResultSet rs, int columnIndex) throws SQLException { 22 | return (rs.getString(columnIndex) == null) ? "" : rs 23 | .getString(columnIndex); 24 | } 25 | 26 | @Override 27 | public String getResult(CallableStatement cs, int columnIndex) 28 | throws SQLException { 29 | return (cs.getString(columnIndex) == null) ? "" : cs 30 | .getString(columnIndex); 31 | } 32 | 33 | @Override 34 | public void setParameter(PreparedStatement ps, int arg1, String str, 35 | JdbcType jdbcType) throws SQLException { 36 | } 37 | } -------------------------------------------------------------------------------- /src/com/pure/common/MysqlDialect.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | public class MysqlDialect extends Dialect { 4 | 5 | @Override 6 | public String getLimitString(String sql, int offset, int limit) { 7 | // TODO Auto-generated method stub 8 | return null; 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/com/pure/common/OracleDialect.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | public class OracleDialect extends Dialect { 4 | 5 | @Override 6 | public String getLimitString(String sql, int offset, int limit) { 7 | // TODO Auto-generated method stub 8 | sql = sql.trim(); 9 | StringBuffer pagingSelect = new StringBuffer(sql.length() + 100); 10 | 11 | pagingSelect 12 | .append("select * from ( select row_.*, rownum rownum_ from ( "); 13 | 14 | pagingSelect.append(sql); 15 | 16 | pagingSelect.append(" ) row_ ) where rownum_ > ").append(offset) 17 | .append(" and rownum_ <= ").append(offset + limit); 18 | 19 | return pagingSelect.toString(); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/com/pure/common/PageInfo.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | /** 6 | * 通用分页模型 7 | * @author 8 | * 9 | */ 10 | public class PageInfo { 11 | /** 12 | * 总条数 13 | */ 14 | private int total; 15 | /** 16 | * 总页数 17 | */ 18 | private int pageTotal; 19 | /** 20 | * 当前页 21 | */ 22 | private int currPageNo; 23 | /** 24 | * 每页条数 25 | */ 26 | private int pageSize; 27 | /** 28 | * 当前页详细数据 29 | */ 30 | private List rows = new ArrayList(); 31 | 32 | public int getTotal() { 33 | return total; 34 | } 35 | 36 | public void setTotal(int total) { 37 | this.total = total; 38 | } 39 | 40 | public int getPageTotal() { 41 | return pageTotal; 42 | } 43 | 44 | public void setPageTotal(int pageTotal) { 45 | this.pageTotal = pageTotal; 46 | } 47 | 48 | public int getCurrPageNo() { 49 | return currPageNo; 50 | } 51 | 52 | public void setCurrPageNo(int currPageNo) { 53 | this.currPageNo = currPageNo; 54 | } 55 | 56 | public int getPageSize() { 57 | return pageSize; 58 | } 59 | 60 | public void setPageSize(int pageSize) { 61 | this.pageSize = pageSize; 62 | } 63 | 64 | public List getRows() { 65 | return rows; 66 | } 67 | 68 | public void setRows(List rows) { 69 | this.rows = rows; 70 | } 71 | 72 | @Override 73 | public String toString() { 74 | return "PageInfo [total=" + total + ", pageTotal=" + pageTotal 75 | + ", currPageNo=" + currPageNo + ", pageSize=" + pageSize 76 | + ", rows=" + rows + "]"; 77 | } 78 | 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/com/pure/common/PaginationInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | import java.sql.Connection; 4 | import java.util.Properties; 5 | 6 | import org.apache.commons.logging.Log; 7 | import org.apache.commons.logging.LogFactory; 8 | import org.apache.ibatis.executor.statement.StatementHandler; 9 | import org.apache.ibatis.mapping.BoundSql; 10 | import org.apache.ibatis.plugin.Interceptor; 11 | import org.apache.ibatis.plugin.Intercepts; 12 | import org.apache.ibatis.plugin.Invocation; 13 | import org.apache.ibatis.plugin.Plugin; 14 | import org.apache.ibatis.plugin.Signature; 15 | import org.apache.ibatis.reflection.MetaObject; 16 | import org.apache.ibatis.reflection.factory.DefaultObjectFactory; 17 | import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory; 18 | import org.apache.ibatis.session.Configuration; 19 | import org.apache.ibatis.session.RowBounds; 20 | 21 | @Intercepts( { @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class }) }) 22 | public class PaginationInterceptor implements Interceptor { 23 | 24 | private final static Log log = LogFactory 25 | .getLog(PaginationInterceptor.class); 26 | 27 | public Object intercept(Invocation invocation) throws Throwable { 28 | 29 | StatementHandler statementHandler = (StatementHandler) invocation 30 | .getTarget(); 31 | 32 | BoundSql boundSql = statementHandler.getBoundSql(); 33 | 34 | MetaObject metaStatementHandler = MetaObject.forObject( 35 | statementHandler, new DefaultObjectFactory(), 36 | new DefaultObjectWrapperFactory()); 37 | 38 | RowBounds rowBounds = (RowBounds) metaStatementHandler 39 | .getValue("delegate.rowBounds"); 40 | 41 | if (rowBounds == null || rowBounds == RowBounds.DEFAULT) { 42 | 43 | return invocation.proceed(); 44 | 45 | } 46 | 47 | Configuration configuration = (Configuration) metaStatementHandler 48 | .getValue("delegate.configuration"); 49 | 50 | Dialect.Type databaseType = null; 51 | 52 | try { 53 | 54 | databaseType = Dialect.Type.valueOf(configuration.getVariables() 55 | .getProperty("dialect").toUpperCase()); 56 | 57 | } catch (Exception e) { 58 | 59 | // ignore 60 | 61 | } 62 | 63 | if (databaseType == null) { 64 | 65 | throw new RuntimeException( 66 | "the value of the dialect property in configuration.xml is not defined : " 67 | + configuration.getVariables().getProperty( 68 | "dialect")); 69 | 70 | } 71 | 72 | Dialect dialect = null; 73 | 74 | switch (databaseType) { 75 | 76 | case MYSQL: 77 | 78 | dialect = new MysqlDialect(); 79 | break; 80 | case ORACLE: 81 | 82 | dialect = new OracleDialect(); 83 | break; 84 | case SQLSERVER: 85 | 86 | dialect = new SQLServerDialect(); 87 | break; 88 | 89 | } 90 | 91 | String originalSql = (String) metaStatementHandler 92 | .getValue("delegate.boundSql.sql"); 93 | 94 | metaStatementHandler.setValue("delegate.boundSql.sql", dialect 95 | .getLimitString(originalSql, rowBounds.getOffset(), rowBounds 96 | .getLimit())); 97 | 98 | metaStatementHandler.setValue("delegate.rowBounds.offset", 99 | RowBounds.NO_ROW_OFFSET); 100 | 101 | metaStatementHandler.setValue("delegate.rowBounds.limit", 102 | RowBounds.NO_ROW_LIMIT); 103 | 104 | if (log.isDebugEnabled()) { 105 | 106 | log.debug("生成分页SQL : " + boundSql.getSql()); 107 | 108 | } 109 | 110 | return invocation.proceed(); 111 | 112 | } 113 | 114 | public Object plugin(Object target) { 115 | 116 | return Plugin.wrap(target, this); 117 | 118 | } 119 | 120 | public void setProperties(Properties properties) { 121 | } 122 | 123 | } 124 | -------------------------------------------------------------------------------- /src/com/pure/common/ReturnData.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | /** 4 | * 客户端访问返回的基础类 5 | * 6 | * @author alex 7 | * 8 | */ 9 | public class ReturnData { 10 | 11 | /** 12 | * 返回代码 13 | */ 14 | private String code = null; 15 | /** 16 | * 返回消息 17 | */ 18 | private String message = null; 19 | /** 20 | * 返回的数据 21 | */ 22 | private Object data = null; 23 | 24 | public ReturnData() { 25 | this.code = SysCodeMsg.CODE_20000; 26 | this.message = SysCodeMsg.MSG_20000; 27 | this.data = null; 28 | } 29 | 30 | public ReturnData(String code, String message, Object data) { 31 | this.code = code; 32 | this.message = message; 33 | this.data = data; 34 | } 35 | 36 | public String getCode() { 37 | return code; 38 | } 39 | 40 | public void setCode(String code) { 41 | this.code = code; 42 | } 43 | 44 | public String getMessage() { 45 | return message; 46 | } 47 | 48 | public void setMessage(String message) { 49 | this.message = message; 50 | } 51 | 52 | public Object getData() { 53 | return data; 54 | } 55 | 56 | public void setData(Object data) { 57 | this.data = data; 58 | } 59 | 60 | /** 61 | * 讲返回数据设置为系统错误状态 62 | */ 63 | public void change2SysError() { 64 | this.code = SysCodeMsg.CODE_10000; 65 | this.message = SysCodeMsg.MSG_10000; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/com/pure/common/SQLServerDialect.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | public class SQLServerDialect extends Dialect { 4 | 5 | @Override 6 | public String getLimitString(String sql, int offset, int limit) { 7 | // TODO Auto-generated method stub 8 | return null; 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/com/pure/common/Sampler.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | 3 | import java.util.List; 4 | 5 | import com.shcm.bean.BalanceResultBean; 6 | import com.shcm.bean.SendResultBean; 7 | import com.shcm.send.DataApi; 8 | import com.shcm.send.OpenApi; 9 | 10 | /** 11 | * @author 12 | * 13 | */ 14 | public class Sampler 15 | { 16 | private static String sOpenUrl = "http://smsapi.c123.cn/OpenPlatform/OpenApi"; 17 | private static String sDataUrl = "http://smsapi.c123.cn/DataPlatform/DataApi"; 18 | 19 | // 接口帐号 20 | private static final String account = "1001@501329190001"; 21 | 22 | // 接口密钥 23 | private static final String authkey = "3AC7B2C2311865FF6214D394A23CF515"; 24 | 25 | // 通道组编号 26 | private static final int cgid = 52; 27 | 28 | // 默认使用的签名编号(未指定签名编号时传此值到服务器) 29 | private static final int csid = 540; 30 | 31 | public static List sendOnce(String mobile, String content) throws Exception 32 | { 33 | // 发送参数 34 | OpenApi.initialzeAccount(sOpenUrl, account, authkey, cgid, csid); 35 | 36 | // 状态及回复参数 37 | DataApi.initialzeAccount(sDataUrl, account, authkey); 38 | // 发送短信 39 | return OpenApi.sendOnce(mobile, content, 0, 0, null); 40 | 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/com/pure/common/SysCodeMsg.java: -------------------------------------------------------------------------------- 1 | package com.pure.common; 2 | /* 3 | * 返回状态码 4 | * */ 5 | public class SysCodeMsg { 6 | public final static String CODE_10000 = "10000"; 7 | public final static String CODE_10001 = "10001"; 8 | public final static String CODE_10002 = "10002"; 9 | public final static String CODE_10003 = "10003"; 10 | public final static String CODE_10004 = "10004"; 11 | public final static String CODE_10005 = "10005"; 12 | public final static String CODE_10006 = "10006"; 13 | public final static String CODE_10007 = "10007"; 14 | public final static String CODE_10008 = "10008"; 15 | public final static String CODE_10009 = "10009"; 16 | public final static String CODE_10101 = "10101"; 17 | public final static String CODE_10102 = "10102"; 18 | 19 | public final static String CODE_20000 = "20000"; 20 | public final static String CODE_20001 = "20001"; 21 | 22 | /*public final static String MSG_10000 = "System error"; 23 | public final static String MSG_10001 = "Permission denied"; 24 | public final static String MSG_10002 = "Not login or login timeout"; 25 | public final static String MSG_10003 = "Login name or password is empty"; 26 | public final static String MSG_10004 = "Login password or account is not correct"; 27 | public final static String MSG_10005 = "No required parameters"; 28 | public final static String MSG_10006 = "Parameter value is illega"; 29 | public final static String MSG_10007 = "%1$s parameter value cannot be empty"; 30 | public final static String MSG_10008 = "The user ID does not exist"; 31 | public final static String MSG_10009 = "%1$s not exist"; 32 | public final static String MSG_10101 = "Department name already exists"; 33 | public final static String MSG_10102 = "User name already exists"; 34 | public final static String MSG_10403 = "Role name already exists"; 35 | public final static String MSG_10404 = "Resource name already exists"; 36 | 37 | public final static String MSG_20000 = "Success"; 38 | public final static String MSG_20001 = "Failed";*/ 39 | public final static String MSG_10000 = "系统错误"; 40 | public final static String MSG_10001 = "无操作权限"; 41 | public final static String MSG_10002 = "未登录或登录超时"; 42 | public final static String MSG_10003 = "用户名或密码为空"; 43 | public final static String MSG_10004 = "用户名或密码错误"; 44 | public final static String MSG_10005 = "必填参数未填"; 45 | public final static String MSG_10006 = "参数不符合规定"; 46 | public final static String MSG_10007 = "%1$s 参数不能为空"; 47 | public final static String MSG_10008 = "用户ID不存在"; 48 | public final static String MSG_10009 = "%1$s 不存在"; 49 | public final static String MSG_10101 = "部门名称已存在"; 50 | public final static String MSG_10102 = "用户名已存在"; 51 | 52 | public final static String MSG_20000 = "成功"; 53 | public final static String MSG_20001 = "失败"; 54 | 55 | public final static ReturnData SYSTEM_ERROR = new ReturnData( 56 | SysCodeMsg.CODE_10000, SysCodeMsg.MSG_10000, null); 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/com/pure/controller/AuditoriumController.java: -------------------------------------------------------------------------------- 1 | package com.pure.controller; 2 | 3 | import java.util.Map; 4 | 5 | import javax.annotation.Resource; 6 | import javax.servlet.http.HttpServletRequest; 7 | 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.ResponseBody; 11 | 12 | import com.pure.common.PageInfo; 13 | import com.pure.common.ReturnData; 14 | import com.pure.common.SysCodeMsg; 15 | import com.pure.db.TAuditorium; 16 | import com.pure.service.AuditoriumService; 17 | 18 | @Controller 19 | public class AuditoriumController { 20 | 21 | @Resource 22 | private AuditoriumService auditoriumService; 23 | 24 | 25 | @RequestMapping(value = "getAuditoriumPageInfo", produces = { "application/json;charset=UTF-8" }) 26 | @ResponseBody 27 | public ReturnData getAuditoriumPageInfo(HttpServletRequest request,Integer pageCurrent, Integer pageSize,TAuditorium tAuditorium) { 28 | ReturnData returnData = new ReturnData(); 29 | try { 30 | PageInfo res=auditoriumService.getAuditoriumPageInfo(pageCurrent,pageSize,tAuditorium); 31 | returnData.setData(res); 32 | } catch (Exception e) { 33 | // TODO: handle exception 34 | e.printStackTrace(); 35 | returnData.setCode(SysCodeMsg.CODE_10000); 36 | returnData.setMessage(SysCodeMsg.MSG_10000); 37 | } 38 | return returnData; 39 | } 40 | 41 | @RequestMapping(value = "getAuditoriumById", produces = { "application/json;charset=UTF-8" }) 42 | @ResponseBody 43 | public ReturnData getAuditoriumById(Integer id) { 44 | ReturnData returnData = new ReturnData(); 45 | try { 46 | Map res=auditoriumService.getAuditoriumById(id); 47 | returnData.setData(res); 48 | } catch (Exception e) { 49 | // TODO: handle exception 50 | e.printStackTrace(); 51 | returnData.setCode(SysCodeMsg.CODE_10000); 52 | returnData.setMessage(SysCodeMsg.MSG_10000); 53 | } 54 | return returnData; 55 | } 56 | 57 | @RequestMapping(value = "deleteAuditoriumById", produces = { "application/json;charset=UTF-8" }) 58 | @ResponseBody 59 | public ReturnData deleteAuditoriumById(Integer id) { 60 | ReturnData returnData = new ReturnData(); 61 | try { 62 | auditoriumService.deleteAuditoriumById(id); 63 | } catch (Exception e) { 64 | // TODO: handle exception 65 | e.printStackTrace(); 66 | returnData.setCode(SysCodeMsg.CODE_10000); 67 | returnData.setMessage(SysCodeMsg.MSG_10000); 68 | } 69 | return returnData; 70 | } 71 | 72 | @RequestMapping(value = "saveAuditorium", produces = { "application/json;charset=UTF-8" }) 73 | @ResponseBody 74 | public ReturnData saveAuditorium(TAuditorium tAuditorium) { 75 | ReturnData returnData = new ReturnData(); 76 | try { 77 | auditoriumService.saveAuditorium(tAuditorium); 78 | } catch (Exception e) { 79 | // TODO: handle exception 80 | e.printStackTrace(); 81 | returnData.setCode(SysCodeMsg.CODE_10000); 82 | returnData.setMessage(SysCodeMsg.MSG_10000); 83 | } 84 | return returnData; 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /src/com/pure/controller/BaseController.java: -------------------------------------------------------------------------------- 1 | package com.pure.controller; 2 | 3 | import org.springframework.web.bind.MissingServletRequestParameterException; 4 | import org.springframework.web.bind.annotation.ExceptionHandler; 5 | import org.springframework.web.bind.annotation.ResponseBody; 6 | 7 | import com.pure.common.ReturnData; 8 | import com.pure.common.SysCodeMsg; 9 | 10 | /** 11 | * 基本Controller类,主要负责处理请求参数缺少的情况,并返回对应的状态码以及简要说明
12 | * 获取新的ReturnData对象
13 | * 获取登录用户 14 | 15 | */ 16 | 17 | public class BaseController { 18 | 19 | @ExceptionHandler(MissingServletRequestParameterException.class) 20 | public @ResponseBody ReturnData handleMyException( 21 | MissingServletRequestParameterException exception) { 22 | 23 | ReturnData returnData = new ReturnData(SysCodeMsg.CODE_10005, 24 | SysCodeMsg.MSG_10005, null); 25 | 26 | return returnData; 27 | } 28 | 29 | /** 30 | * 获取登录用户对象 31 | * 32 | * @param request 33 | * @return 34 | */ 35 | /* protected SysUsers getUser(HttpServletRequest request) { 36 | Object obj = request.getSession().getAttribute("user"); 37 | if (obj == null) { 38 | return null; 39 | } 40 | return (SysUsers) obj; 41 | }*/ 42 | 43 | /** 44 | * 返回一个新的ReturnData对象 45 | * 46 | * @return 47 | */ 48 | protected ReturnData getNewReturnData() { 49 | return new ReturnData(); 50 | } 51 | 52 | /** 53 | * 获取合法的fetchNum值,默认值为1 54 | * 55 | * @param fetchNum 56 | * @return 57 | */ 58 | protected Integer getLegalFetchNum(Integer fetchNum) { 59 | return fetchNum == null || fetchNum == 0 ? 1 : fetchNum; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/com/pure/controller/FilmController.java: -------------------------------------------------------------------------------- 1 | package com.pure.controller; 2 | 3 | import java.io.File; 4 | import java.util.Map; 5 | 6 | import javax.annotation.Resource; 7 | import javax.servlet.http.HttpServletRequest; 8 | 9 | import org.apache.commons.io.FileUtils; 10 | import org.springframework.stereotype.Controller; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | import org.springframework.web.bind.annotation.RequestMethod; 13 | import org.springframework.web.bind.annotation.RequestParam; 14 | import org.springframework.web.bind.annotation.ResponseBody; 15 | import org.springframework.web.multipart.MultipartFile; 16 | 17 | import com.pure.common.PageInfo; 18 | import com.pure.common.ReturnData; 19 | import com.pure.common.SysCodeMsg; 20 | import com.pure.common.Util; 21 | import com.pure.db.TFilm; 22 | import com.pure.db.TFllow; 23 | import com.pure.db.TUser; 24 | import com.pure.service.FilmService; 25 | import com.pure.service.UserService; 26 | 27 | @Controller 28 | public class FilmController extends BaseController { 29 | 30 | 31 | @Resource 32 | private FilmService filmService; 33 | 34 | @Resource 35 | private UserService userService; 36 | 37 | /* 38 | *获取电影分类数据 39 | **/ 40 | @RequestMapping(value = "getFilmPageInfo", produces = { "application/json;charset=UTF-8" }) 41 | @ResponseBody 42 | public ReturnData getFilmPageInfo(HttpServletRequest request,Integer pageCurrent, Integer pageSize,TFilm tFilm) { 43 | ReturnData returnData = new ReturnData(); 44 | try { 45 | PageInfo res=filmService.getFilmPageInfo(pageCurrent,pageSize,tFilm); 46 | returnData.setData(res); 47 | } catch (Exception e) { 48 | // TODO: handle exception 49 | e.printStackTrace(); 50 | returnData.setCode(SysCodeMsg.CODE_10000); 51 | returnData.setMessage(SysCodeMsg.MSG_10000); 52 | } 53 | return returnData; 54 | } 55 | 56 | @RequestMapping(value = "getFilmById", produces = { "application/json;charset=UTF-8" }) 57 | @ResponseBody 58 | public ReturnData getFilmById(HttpServletRequest request,Integer id) { 59 | ReturnData returnData = new ReturnData(); 60 | try { 61 | TUser user=(TUser) request.getSession().getAttribute("user"); 62 | Map res=filmService.getFilmById(id); 63 | if (user != null) { 64 | int temp=userService.getUserFollowByFilmId(id); 65 | if (temp>0) { 66 | res.put("status", "已收藏"); 67 | } 68 | }else { 69 | res.put("status", "未收藏"); 70 | } 71 | returnData.setData(res); 72 | } catch (Exception e) { 73 | // TODO: handle exception 74 | e.printStackTrace(); 75 | returnData.setCode(SysCodeMsg.CODE_10000); 76 | returnData.setMessage(SysCodeMsg.MSG_10000); 77 | } 78 | return returnData; 79 | } 80 | 81 | @RequestMapping(value = "deleteFilmById", produces = {"application/json;charset=UTF-8"}) 82 | @ResponseBody 83 | public ReturnData deleteFilmById(Integer id) { 84 | ReturnData returnData = new ReturnData(); 85 | try { 86 | filmService.deleteFilmById(id); 87 | } catch (Exception e) { 88 | // TODO: handle exception 89 | e.printStackTrace(); 90 | returnData.setCode(SysCodeMsg.CODE_10000); 91 | returnData.setMessage(SysCodeMsg.MSG_10000); 92 | } 93 | return returnData; 94 | } 95 | 96 | 97 | @RequestMapping(value = "saveFilm", produces = { "application/json;charset=UTF-8" }) 98 | @ResponseBody 99 | public ReturnData saveFilm(TFilm tFilm,String releasedate1) { 100 | ReturnData returnData = new ReturnData(); 101 | try { 102 | if (!Util.isNullString(releasedate1)) { 103 | tFilm.setReleasedate(Util.StrToDate(releasedate1, "yyyy-MM-dd")); 104 | } 105 | filmService.saveFilm(tFilm); 106 | } catch (Exception e) { 107 | // TODO: handle exception 108 | e.printStackTrace(); 109 | returnData.setCode(SysCodeMsg.CODE_10000); 110 | returnData.setMessage(SysCodeMsg.MSG_10000); 111 | } 112 | return returnData; 113 | } 114 | 115 | @RequestMapping(value = "upload", method = RequestMethod.POST) 116 | @ResponseBody 117 | public ReturnData upload(@RequestParam("file") MultipartFile file[], String spId, HttpServletRequest request) { 118 | ReturnData returnData = new ReturnData(); 119 | String savepathUrl = ""; 120 | try { 121 | for (MultipartFile uploadFile : file) { 122 | if (file == null || file.length == 0) { 123 | returnData.setData("文件为空!"); 124 | } else { 125 | String fileType = uploadFile.getOriginalFilename().substring( 126 | uploadFile.getOriginalFilename().indexOf("."), uploadFile.getOriginalFilename().length()); 127 | String savePath = Util.getUuid("1") + fileType; 128 | 129 | //String path = request.getSession().getServletContext().getRealPath("//attachments//"); 130 | /* 上传图片地址 */ 131 | String rela = "E:/java/FilmRecommend/FilmRecommend/static/img/"; 132 | File folder = new File(rela); 133 | folder.mkdir(); 134 | FileUtils.copyInputStreamToFile(uploadFile.getInputStream(), new File(rela, savePath)); 135 | if (file.length == 1) { 136 | savepathUrl = savePath; 137 | } else { 138 | savepathUrl += savePath + ","; 139 | } 140 | } 141 | } 142 | returnData.setData(savepathUrl); 143 | } catch (Exception e) { 144 | e.printStackTrace(); 145 | returnData.setData(SysCodeMsg.CODE_20001); 146 | returnData.setMessage(SysCodeMsg.MSG_20001); 147 | } 148 | return returnData; 149 | } 150 | 151 | 152 | } 153 | -------------------------------------------------------------------------------- /src/com/pure/controller/FilmCriticController.java: -------------------------------------------------------------------------------- 1 | package com.pure.controller; 2 | 3 | import java.util.Map; 4 | 5 | import javax.annotation.Resource; 6 | import javax.servlet.http.HttpServletRequest; 7 | 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.ResponseBody; 11 | 12 | import com.pure.common.PageInfo; 13 | import com.pure.common.ReturnData; 14 | import com.pure.common.SysCodeMsg; 15 | import com.pure.db.TFilmCritic; 16 | import com.pure.db.TReply; 17 | import com.pure.db.TUser; 18 | import com.pure.service.FilmCriticService; 19 | 20 | @Controller 21 | public class FilmCriticController { 22 | 23 | @Resource 24 | private FilmCriticService filmCriticService; 25 | 26 | /* 27 | * 影评 28 | * */ 29 | @RequestMapping(value = "getTFilmCriticPageInfo", produces = { "application/json;charset=UTF-8" }) 30 | @ResponseBody 31 | public ReturnData getTFilmCriticPageInfo(HttpServletRequest request, 32 | Integer pageCurrent, Integer pageSize, String name, String filmid) { 33 | ReturnData returnData = new ReturnData(); 34 | try { 35 | TUser user = (TUser) request.getSession().getAttribute("user"); 36 | PageInfo res = filmCriticService.getTFilmCriticPageInfo( 37 | pageCurrent, pageSize, name, filmid, user); 38 | returnData.setData(res); 39 | } catch (Exception e) { 40 | // TODO: handle exception 41 | e.printStackTrace(); 42 | returnData.setCode(SysCodeMsg.CODE_10000); 43 | returnData.setMessage(SysCodeMsg.MSG_10000); 44 | } 45 | return returnData; 46 | } 47 | 48 | @RequestMapping(value = "getTFilmCriticById", produces = { "application/json;charset=UTF-8" }) 49 | @ResponseBody 50 | public ReturnData getTFilmCriticById(Integer id) { 51 | ReturnData returnData = new ReturnData(); 52 | try { 53 | Map res = filmCriticService.getTFilmCriticById(id); 54 | returnData.setData(res); 55 | } catch (Exception e) { 56 | // TODO: handle exception 57 | e.printStackTrace(); 58 | returnData.setCode(SysCodeMsg.CODE_10000); 59 | returnData.setMessage(SysCodeMsg.MSG_10000); 60 | } 61 | return returnData; 62 | } 63 | 64 | @RequestMapping(value = "deleteTFilmCriticById", produces = { "application/json;charset=UTF-8" }) 65 | @ResponseBody 66 | public ReturnData deleteTFilmCriticById(Integer id) { 67 | ReturnData returnData = new ReturnData(); 68 | try { 69 | filmCriticService.deleteTFilmCriticById(id); 70 | } catch (Exception e) { 71 | // TODO: handle exception 72 | e.printStackTrace(); 73 | returnData.setCode(SysCodeMsg.CODE_10000); 74 | returnData.setMessage(SysCodeMsg.MSG_10000); 75 | } 76 | return returnData; 77 | } 78 | 79 | /* 80 | * 提交评论 81 | * */ 82 | @RequestMapping(value = "saveTFilmCritic", produces = { "application/json;charset=UTF-8" }) 83 | @ResponseBody 84 | public ReturnData saveTFilmCritic(TFilmCritic tTFilmCritic) { 85 | ReturnData returnData = new ReturnData(); 86 | try { 87 | filmCriticService.saveTFilmCritic(tTFilmCritic); 88 | } catch (Exception e) { 89 | // TODO: handle exception 90 | e.printStackTrace(); 91 | returnData.setCode(SysCodeMsg.CODE_10000); 92 | returnData.setMessage(SysCodeMsg.MSG_10000); 93 | } 94 | return returnData; 95 | } 96 | 97 | /* 98 | * 回复评论 99 | * */ 100 | @RequestMapping(value = "saveTReply", produces = { "application/json;charset=UTF-8" }) 101 | @ResponseBody 102 | public ReturnData saveTReply(TReply tReply,HttpServletRequest request) { 103 | ReturnData returnData = new ReturnData(); 104 | TUser user=(TUser) request.getSession().getAttribute("user"); 105 | try { 106 | tReply.setUserid(user.getId()); 107 | filmCriticService.saveTReply(tReply); 108 | } catch (Exception e) { 109 | // TODO: handle exception 110 | e.printStackTrace(); 111 | returnData.setCode(SysCodeMsg.CODE_10000); 112 | returnData.setMessage(SysCodeMsg.MSG_10000); 113 | } 114 | return returnData; 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /src/com/pure/controller/OrderController.java: -------------------------------------------------------------------------------- 1 | package com.pure.controller; 2 | 3 | import java.util.List; 4 | 5 | import javax.annotation.Resource; 6 | import javax.servlet.http.HttpServletRequest; 7 | 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.ResponseBody; 11 | 12 | import com.pure.common.PageInfo; 13 | import com.pure.common.ReturnData; 14 | import com.pure.common.SysCodeMsg; 15 | import com.pure.db.TFilm; 16 | import com.pure.db.TUser; 17 | import com.pure.service.OrderService; 18 | 19 | @Controller 20 | public class OrderController { 21 | 22 | @Resource 23 | private OrderService orderService; 24 | 25 | @RequestMapping(value = "getOrderPageInfo", produces = { "application/json;charset=UTF-8" }) 26 | @ResponseBody 27 | public ReturnData getOrderPageInfo(HttpServletRequest request,Integer pageCurrent, Integer pageSize) { 28 | ReturnData returnData = new ReturnData(); 29 | TUser user=(TUser) request.getSession().getAttribute("user"); 30 | try { 31 | PageInfo res=orderService.getOrderPageInfo(pageCurrent,pageSize,user.getId()); 32 | returnData.setData(res); 33 | } catch (Exception e) { 34 | // TODO: handle exception 35 | e.printStackTrace(); 36 | returnData.setCode(SysCodeMsg.CODE_10000); 37 | returnData.setMessage(SysCodeMsg.MSG_10000); 38 | } 39 | return returnData; 40 | } 41 | 42 | 43 | @RequestMapping(value = "orderTicket", produces = { "application/json;charset=UTF-8" }) 44 | @ResponseBody 45 | public ReturnData orderTicket(HttpServletRequest request,Integer screeningsid,String position) { 46 | ReturnData returnData = new ReturnData(); 47 | try { 48 | TUser user=(TUser) request.getSession().getAttribute("user"); 49 | if (user!=null) { 50 | orderService.orderTicket(user.getId(),screeningsid,position); 51 | }else { 52 | returnData.setCode(SysCodeMsg.CODE_10002); 53 | returnData.setMessage(SysCodeMsg.MSG_10002); 54 | } 55 | } catch (Exception e) { 56 | // TODO: handle exception 57 | e.printStackTrace(); 58 | returnData.setCode(SysCodeMsg.CODE_10000); 59 | returnData.setMessage(SysCodeMsg.MSG_10000); 60 | } 61 | return returnData; 62 | } 63 | 64 | /* 65 | * 座位 66 | * */ 67 | @RequestMapping(value = "getRestInfo", produces = { "application/json;charset=UTF-8" }) 68 | @ResponseBody 69 | public ReturnData getRestInfo(HttpServletRequest request,Integer screeningsid) { 70 | ReturnData returnData = new ReturnData(); 71 | try { 72 | List res= orderService.getRestInfo(screeningsid); 73 | returnData.setData(res); 74 | } catch (Exception e) { 75 | // TODO: handle exception 76 | e.printStackTrace(); 77 | returnData.setCode(SysCodeMsg.CODE_10000); 78 | returnData.setMessage(SysCodeMsg.MSG_10000); 79 | } 80 | return returnData; 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/com/pure/controller/TicketController.java: -------------------------------------------------------------------------------- 1 | package com.pure.controller; 2 | 3 | import java.util.Map; 4 | 5 | import javax.annotation.Resource; 6 | import javax.servlet.http.HttpServletRequest; 7 | 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.ResponseBody; 11 | 12 | import com.pure.common.PageInfo; 13 | import com.pure.common.ReturnData; 14 | import com.pure.common.SysCodeMsg; 15 | import com.pure.common.Util; 16 | import com.pure.db.TScreenings; 17 | import com.pure.service.TicketService; 18 | 19 | @Controller 20 | public class TicketController extends BaseController{ 21 | 22 | @Resource 23 | private TicketService ticketService; 24 | 25 | /* 26 | * 影厅 27 | * */ 28 | @RequestMapping(value = "getTicketPageInfo", produces = { "application/json;charset=UTF-8" }) 29 | @ResponseBody 30 | public ReturnData getTicketPageInfo(HttpServletRequest request,Integer pageCurrent, Integer pageSize,TScreenings tScreenings) { 31 | ReturnData returnData = new ReturnData(); 32 | try { 33 | PageInfo res=ticketService.getTicketPageInfo(pageCurrent,pageSize,tScreenings); 34 | returnData.setData(res); 35 | } catch (Exception e) { 36 | // TODO: handle exception 37 | e.printStackTrace(); 38 | returnData.setCode(SysCodeMsg.CODE_10000); 39 | returnData.setMessage(SysCodeMsg.MSG_10000); 40 | } 41 | return returnData; 42 | } 43 | 44 | 45 | @RequestMapping(value = "getTicketById", produces = { "application/json;charset=UTF-8" }) 46 | @ResponseBody 47 | public ReturnData getTicketById(Integer id) { 48 | ReturnData returnData = new ReturnData(); 49 | try { 50 | Map res=ticketService.getTicketById(id); 51 | returnData.setData(res); 52 | } catch (Exception e) { 53 | // TODO: handle exception 54 | e.printStackTrace(); 55 | returnData.setCode(SysCodeMsg.CODE_10000); 56 | returnData.setMessage(SysCodeMsg.MSG_10000); 57 | } 58 | return returnData; 59 | } 60 | 61 | @RequestMapping(value = "deleteTicletById", produces = { "application/json;charset=UTF-8" }) 62 | @ResponseBody 63 | public ReturnData deleteTicletById(Integer id) { 64 | ReturnData returnData = new ReturnData(); 65 | try { 66 | ticketService.deleteTicletById(id); 67 | } catch (Exception e) { 68 | // TODO: handle exception 69 | e.printStackTrace(); 70 | returnData.setCode(SysCodeMsg.CODE_10000); 71 | returnData.setMessage(SysCodeMsg.MSG_10000); 72 | } 73 | return returnData; 74 | } 75 | 76 | /* 77 | * 新增场次 78 | * */ 79 | @RequestMapping(value = "saveTiclet", produces = { "application/json;charset=UTF-8" }) 80 | @ResponseBody 81 | public ReturnData saveTiclet(TScreenings tScreenings,String playTime1) { 82 | ReturnData returnData = new ReturnData(); 83 | try { 84 | if (!Util.isNullString(playTime1)) { 85 | tScreenings.setPlayTime(Util.StrToDate(playTime1, "yyyy-MM-dd HH:mm:ss")); 86 | } 87 | ticketService.saveTiclet(tScreenings); 88 | } catch (Exception e) { 89 | // TODO: handle exception 90 | e.printStackTrace(); 91 | returnData.setCode(SysCodeMsg.CODE_10000); 92 | returnData.setMessage(SysCodeMsg.MSG_10000); 93 | } 94 | return returnData; 95 | } 96 | 97 | 98 | 99 | @RequestMapping(value = "cancleTiclet", produces = { "application/json;charset=UTF-8" }) 100 | @ResponseBody 101 | public ReturnData cancleTiclet(Integer id) { 102 | ReturnData returnData = new ReturnData(); 103 | try { 104 | ticketService.cancleTiclet(id); 105 | } catch (Exception e) { 106 | // TODO: handle exception 107 | e.printStackTrace(); 108 | returnData.setCode(SysCodeMsg.CODE_10000); 109 | returnData.setMessage(SysCodeMsg.MSG_10000); 110 | } 111 | return returnData; 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /src/com/pure/dao/TAuditoriumMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TAuditorium; 4 | import com.pure.db.TAuditoriumExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TAuditoriumMapper { 12 | int countByExample(TAuditoriumExample example); 13 | 14 | int deleteByExample(TAuditoriumExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TAuditorium record); 19 | 20 | int insertSelective(TAuditorium record); 21 | 22 | List selectByExample(TAuditoriumExample example); 23 | 24 | TAuditorium selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TAuditorium record, @Param("example") TAuditoriumExample example); 27 | 28 | int updateByExample(@Param("record") TAuditorium record, @Param("example") TAuditoriumExample example); 29 | 30 | int updateByPrimaryKeySelective(TAuditorium record); 31 | 32 | int updateByPrimaryKey(TAuditorium record); 33 | 34 | int countByParam(Map param); 35 | 36 | List> getAuditoriumPageInfo(Map param); 37 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TFilmCriticMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TFilmCritic; 4 | import com.pure.db.TFilmCriticExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TFilmCriticMapper { 12 | int countByExample(TFilmCriticExample example); 13 | 14 | int deleteByExample(TFilmCriticExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TFilmCritic record); 19 | 20 | int insertSelective(TFilmCritic record); 21 | 22 | List selectByExample(TFilmCriticExample example); 23 | 24 | TFilmCritic selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TFilmCritic record, @Param("example") TFilmCriticExample example); 27 | 28 | int updateByExample(@Param("record") TFilmCritic record, @Param("example") TFilmCriticExample example); 29 | 30 | int updateByPrimaryKeySelective(TFilmCritic record); 31 | 32 | int updateByPrimaryKey(TFilmCritic record); 33 | 34 | int countByParam(Map param); 35 | 36 | List> getTFilmCriticPageInfo(Map param); 37 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TFilmMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TFilm; 4 | import com.pure.db.TFilmExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TFilmMapper { 12 | int countByExample(TFilmExample example); 13 | 14 | int deleteByExample(TFilmExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TFilm record); 19 | 20 | int insertSelective(TFilm record); 21 | 22 | List selectByExample(TFilmExample example); 23 | 24 | TFilm selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TFilm record, @Param("example") TFilmExample example); 27 | 28 | int updateByExample(@Param("record") TFilm record, @Param("example") TFilmExample example); 29 | 30 | int updateByPrimaryKeySelective(TFilm record); 31 | 32 | int updateByPrimaryKey(TFilm record); 33 | 34 | List> getFilmPageInfo(Map param); 35 | 36 | int countByParam(Map param); 37 | 38 | List> getHotFilm(); 39 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TFllowMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TFllow; 4 | import com.pure.db.TFllowExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TFllowMapper { 12 | int countByExample(TFllowExample example); 13 | 14 | int deleteByExample(TFllowExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TFllow record); 19 | 20 | int insertSelective(TFllow record); 21 | 22 | List selectByExample(TFllowExample example); 23 | 24 | TFllow selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TFllow record, @Param("example") TFllowExample example); 27 | 28 | int updateByExample(@Param("record") TFllow record, @Param("example") TFllowExample example); 29 | 30 | int updateByPrimaryKeySelective(TFllow record); 31 | 32 | int updateByPrimaryKey(TFllow record); 33 | 34 | List> getUserFollow(Integer id); 35 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TOrderMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TOrder; 4 | import com.pure.db.TOrderExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TOrderMapper { 12 | int countByExample(TOrderExample example); 13 | 14 | int deleteByExample(TOrderExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TOrder record); 19 | 20 | int insertSelective(TOrder record); 21 | 22 | List selectByExample(TOrderExample example); 23 | 24 | TOrder selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TOrder record, @Param("example") TOrderExample example); 27 | 28 | int updateByExample(@Param("record") TOrder record, @Param("example") TOrderExample example); 29 | 30 | int updateByPrimaryKeySelective(TOrder record); 31 | 32 | int updateByPrimaryKey(TOrder record); 33 | 34 | int countByParam(Map param); 35 | 36 | List> getOrderPageInfo(Map param); 37 | 38 | void cancleTiclet(Integer id); 39 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TOrderRestInfoMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TOrderRestInfo; 4 | import com.pure.db.TOrderRestInfoExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TOrderRestInfoMapper { 12 | int countByExample(TOrderRestInfoExample example); 13 | 14 | int deleteByExample(TOrderRestInfoExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TOrderRestInfo record); 19 | 20 | int insertSelective(TOrderRestInfo record); 21 | 22 | List selectByExample(TOrderRestInfoExample example); 23 | 24 | TOrderRestInfo selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TOrderRestInfo record, @Param("example") TOrderRestInfoExample example); 27 | 28 | int updateByExample(@Param("record") TOrderRestInfo record, @Param("example") TOrderRestInfoExample example); 29 | 30 | int updateByPrimaryKeySelective(TOrderRestInfo record); 31 | 32 | int updateByPrimaryKey(TOrderRestInfo record); 33 | 34 | void updateRestInfo(Map param); 35 | 36 | String getRestInfo(Integer screeningsid); 37 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TReplyMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TReply; 4 | import com.pure.db.TReplyExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TReplyMapper { 12 | int countByExample(TReplyExample example); 13 | 14 | int deleteByExample(TReplyExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TReply record); 19 | 20 | int insertSelective(TReply record); 21 | 22 | List selectByExample(TReplyExample example); 23 | 24 | TReply selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TReply record, @Param("example") TReplyExample example); 27 | 28 | int updateByExample(@Param("record") TReply record, @Param("example") TReplyExample example); 29 | 30 | int updateByPrimaryKeySelective(TReply record); 31 | 32 | int updateByPrimaryKey(TReply record); 33 | 34 | List> selectReplyByCriticid(String id); 35 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TScreeningsMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TScreenings; 4 | import com.pure.db.TScreeningsExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TScreeningsMapper { 12 | int countByExample(TScreeningsExample example); 13 | 14 | int deleteByExample(TScreeningsExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TScreenings record); 19 | 20 | int insertSelective(TScreenings record); 21 | 22 | List selectByExample(TScreeningsExample example); 23 | 24 | TScreenings selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TScreenings record, @Param("example") TScreeningsExample example); 27 | 28 | int updateByExample(@Param("record") TScreenings record, @Param("example") TScreeningsExample example); 29 | 30 | int updateByPrimaryKeySelective(TScreenings record); 31 | 32 | int updateByPrimaryKey(TScreenings record); 33 | 34 | int countByParam(Map param); 35 | 36 | List> getTicketPageInfo(Map param); 37 | 38 | Integer selectMaxId(); 39 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TStarMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TStar; 4 | import com.pure.db.TStarExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TStarMapper { 9 | int countByExample(TStarExample example); 10 | 11 | int deleteByExample(TStarExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(TStar record); 16 | 17 | int insertSelective(TStar record); 18 | 19 | List selectByExample(TStarExample example); 20 | 21 | TStar selectByPrimaryKey(Integer id); 22 | 23 | int updateByExampleSelective(@Param("record") TStar record, @Param("example") TStarExample example); 24 | 25 | int updateByExample(@Param("record") TStar record, @Param("example") TStarExample example); 26 | 27 | int updateByPrimaryKeySelective(TStar record); 28 | 29 | int updateByPrimaryKey(TStar record); 30 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TUserMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TUser; 4 | import com.pure.db.TUserExample; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface TUserMapper { 12 | int countByExample(TUserExample example); 13 | 14 | int deleteByExample(TUserExample example); 15 | 16 | int deleteByPrimaryKey(Integer id); 17 | 18 | int insert(TUser record); 19 | 20 | int insertSelective(TUser record); 21 | 22 | List selectByExample(TUserExample example); 23 | 24 | TUser selectByPrimaryKey(Integer id); 25 | 26 | int updateByExampleSelective(@Param("record") TUser record, @Param("example") TUserExample example); 27 | 28 | int updateByExample(@Param("record") TUser record, @Param("example") TUserExample example); 29 | 30 | int updateByPrimaryKeySelective(TUser record); 31 | 32 | int updateByPrimaryKey(TUser record); 33 | 34 | TUser getUserByName(String username); 35 | 36 | List> getUserPageInfo(Map param); 37 | 38 | int countByParam(Map param); 39 | 40 | List> getUserRecommend(Integer id); 41 | } -------------------------------------------------------------------------------- /src/com/pure/dao/TUserThumbsMapper.java: -------------------------------------------------------------------------------- 1 | package com.pure.dao; 2 | 3 | import com.pure.db.TUserThumbs; 4 | import com.pure.db.TUserThumbsExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TUserThumbsMapper { 9 | int countByExample(TUserThumbsExample example); 10 | 11 | int deleteByExample(TUserThumbsExample example); 12 | 13 | int deleteByPrimaryKey(Integer userid); 14 | 15 | int insert(TUserThumbs record); 16 | 17 | int insertSelective(TUserThumbs record); 18 | 19 | List selectByExample(TUserThumbsExample example); 20 | 21 | TUserThumbs selectByPrimaryKey(Integer userid); 22 | 23 | int updateByExampleSelective(@Param("record") TUserThumbs record, @Param("example") TUserThumbsExample example); 24 | 25 | int updateByExample(@Param("record") TUserThumbs record, @Param("example") TUserThumbsExample example); 26 | 27 | int updateByPrimaryKeySelective(TUserThumbs record); 28 | 29 | int updateByPrimaryKey(TUserThumbs record); 30 | } -------------------------------------------------------------------------------- /src/com/pure/db/KeyValue.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | public class KeyValue { 4 | 5 | private String key; 6 | 7 | private String value; 8 | 9 | 10 | public String getkey() { 11 | return key; 12 | } 13 | 14 | 15 | public void setkey(String key) { 16 | this.key = key == null ? null : key.trim(); 17 | } 18 | 19 | 20 | public String getvalue() { 21 | return value; 22 | } 23 | 24 | 25 | public void setvalue(String value) { 26 | this.value = value == null ? value : value.trim(); 27 | } 28 | } -------------------------------------------------------------------------------- /src/com/pure/db/TAuditorium.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | public class TAuditorium { 4 | private Integer id; 5 | 6 | private String name; 7 | 8 | private Integer max; 9 | 10 | private String number; 11 | 12 | private String remark; 13 | 14 | public Integer getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Integer id) { 19 | this.id = id; 20 | } 21 | 22 | public String getName() { 23 | return name; 24 | } 25 | 26 | public void setName(String name) { 27 | this.name = name == null ? null : name.trim(); 28 | } 29 | 30 | public Integer getMax() { 31 | return max; 32 | } 33 | 34 | public void setMax(Integer max) { 35 | this.max = max; 36 | } 37 | 38 | public String getNumber() { 39 | return number; 40 | } 41 | 42 | public void setNumber(String number) { 43 | this.number = number == null ? null : number.trim(); 44 | } 45 | 46 | public String getRemark() { 47 | return remark; 48 | } 49 | 50 | public void setRemark(String remark) { 51 | this.remark = remark == null ? null : remark.trim(); 52 | } 53 | } -------------------------------------------------------------------------------- /src/com/pure/db/TFilm.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | import java.util.Date; 4 | 5 | public class TFilm { 6 | private Integer id; 7 | 8 | private String filmname; 9 | 10 | private String type; 11 | 12 | private String introduction; 13 | 14 | private String screenings; 15 | 16 | private String studio; 17 | 18 | private String remark; 19 | 20 | private String picSrc; 21 | 22 | private String area; 23 | 24 | private String year; 25 | 26 | private String score; 27 | 28 | private String language; 29 | 30 | private String duration; 31 | 32 | private Date releasedate; 33 | 34 | private String bigtype; 35 | 36 | public Integer getId() { 37 | return id; 38 | } 39 | 40 | public void setId(Integer id) { 41 | this.id = id; 42 | } 43 | 44 | public String getFilmname() { 45 | return filmname; 46 | } 47 | 48 | public void setFilmname(String filmname) { 49 | this.filmname = filmname == null ? null : filmname.trim(); 50 | } 51 | 52 | public String getType() { 53 | return type; 54 | } 55 | 56 | public void setType(String type) { 57 | this.type = type == null ? null : type.trim(); 58 | } 59 | 60 | public String getIntroduction() { 61 | return introduction; 62 | } 63 | 64 | public void setIntroduction(String introduction) { 65 | this.introduction = introduction == null ? null : introduction.trim(); 66 | } 67 | 68 | public String getScreenings() { 69 | return screenings; 70 | } 71 | 72 | public void setScreenings(String screenings) { 73 | this.screenings = screenings == null ? null : screenings.trim(); 74 | } 75 | 76 | public String getStudio() { 77 | return studio; 78 | } 79 | 80 | public void setStudio(String studio) { 81 | this.studio = studio == null ? null : studio.trim(); 82 | } 83 | 84 | public String getRemark() { 85 | return remark; 86 | } 87 | 88 | public void setRemark(String remark) { 89 | this.remark = remark == null ? null : remark.trim(); 90 | } 91 | 92 | public String getPicSrc() { 93 | return picSrc; 94 | } 95 | 96 | public void setPicSrc(String picSrc) { 97 | this.picSrc = picSrc == null ? null : picSrc.trim(); 98 | } 99 | 100 | public String getArea() { 101 | return area; 102 | } 103 | 104 | public void setArea(String area) { 105 | this.area = area == null ? null : area.trim(); 106 | } 107 | 108 | public String getYear() { 109 | return year; 110 | } 111 | 112 | public void setYear(String year) { 113 | this.year = year == null ? null : year.trim(); 114 | } 115 | 116 | public String getScore() { 117 | return score; 118 | } 119 | 120 | public void setScore(String score) { 121 | this.score = score == null ? null : score.trim(); 122 | } 123 | 124 | public String getLanguage() { 125 | return language; 126 | } 127 | 128 | public void setLanguage(String language) { 129 | this.language = language == null ? null : language.trim(); 130 | } 131 | 132 | public String getDuration() { 133 | return duration; 134 | } 135 | 136 | public void setDuration(String duration) { 137 | this.duration = duration == null ? null : duration.trim(); 138 | } 139 | 140 | public Date getReleasedate() { 141 | return releasedate; 142 | } 143 | 144 | public void setReleasedate(Date releasedate) { 145 | this.releasedate = releasedate; 146 | } 147 | 148 | public String getBigtype() { 149 | return bigtype; 150 | } 151 | 152 | public void setBigtype(String bigtype) { 153 | this.bigtype = bigtype == null ? null : bigtype.trim(); 154 | } 155 | } -------------------------------------------------------------------------------- /src/com/pure/db/TFilmCritic.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | import java.util.Date; 4 | 5 | public class TFilmCritic { 6 | private Integer id; 7 | 8 | private Integer filmid; 9 | 10 | private String content; 11 | 12 | private Date creatTime; 13 | 14 | private Integer userId; 15 | 16 | private String star; 17 | 18 | private Integer thumbs; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public Integer getFilmid() { 29 | return filmid; 30 | } 31 | 32 | public void setFilmid(Integer filmid) { 33 | this.filmid = filmid; 34 | } 35 | 36 | public String getContent() { 37 | return content; 38 | } 39 | 40 | public void setContent(String content) { 41 | this.content = content == null ? null : content.trim(); 42 | } 43 | 44 | public Date getCreatTime() { 45 | return creatTime; 46 | } 47 | 48 | public void setCreatTime(Date creatTime) { 49 | this.creatTime = creatTime; 50 | } 51 | 52 | public Integer getUserId() { 53 | return userId; 54 | } 55 | 56 | public void setUserId(Integer userId) { 57 | this.userId = userId; 58 | } 59 | 60 | public String getStar() { 61 | return star; 62 | } 63 | 64 | public void setStar(String star) { 65 | this.star = star == null ? null : star.trim(); 66 | } 67 | 68 | public Integer getThumbs() { 69 | return thumbs; 70 | } 71 | 72 | public void setThumbs(Integer thumbs) { 73 | this.thumbs = thumbs; 74 | } 75 | } -------------------------------------------------------------------------------- /src/com/pure/db/TFllow.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | public class TFllow { 4 | private Integer id; 5 | 6 | private Integer userid; 7 | 8 | private Integer filmid; 9 | 10 | public Integer getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Integer id) { 15 | this.id = id; 16 | } 17 | 18 | public Integer getUserid() { 19 | return userid; 20 | } 21 | 22 | public void setUserid(Integer userid) { 23 | this.userid = userid; 24 | } 25 | 26 | public Integer getFilmid() { 27 | return filmid; 28 | } 29 | 30 | public void setFilmid(Integer filmid) { 31 | this.filmid = filmid; 32 | } 33 | } -------------------------------------------------------------------------------- /src/com/pure/db/TOrder.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | import java.util.Date; 4 | 5 | public class TOrder { 6 | private Integer id; 7 | 8 | private Integer userid; 9 | 10 | private Integer screeningsid; 11 | 12 | private Date buytime; 13 | 14 | private String position; 15 | 16 | private String status; 17 | 18 | public Integer getId() { 19 | return id; 20 | } 21 | 22 | public void setId(Integer id) { 23 | this.id = id; 24 | } 25 | 26 | public Integer getUserid() { 27 | return userid; 28 | } 29 | 30 | public void setUserid(Integer userid) { 31 | this.userid = userid; 32 | } 33 | 34 | public Integer getScreeningsid() { 35 | return screeningsid; 36 | } 37 | 38 | public void setScreeningsid(Integer screeningsid) { 39 | this.screeningsid = screeningsid; 40 | } 41 | 42 | public Date getBuytime() { 43 | return buytime; 44 | } 45 | 46 | public void setBuytime(Date buytime) { 47 | this.buytime = buytime; 48 | } 49 | 50 | public String getPosition() { 51 | return position; 52 | } 53 | 54 | public void setPosition(String position) { 55 | this.position = position == null ? null : position.trim(); 56 | } 57 | 58 | public String getStatus() { 59 | return status; 60 | } 61 | 62 | public void setStatus(String status) { 63 | this.status = status == null ? null : status.trim(); 64 | } 65 | } -------------------------------------------------------------------------------- /src/com/pure/db/TOrderRestInfo.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | public class TOrderRestInfo { 4 | private Integer id; 5 | 6 | private String ordernum; 7 | 8 | private Integer hallid; 9 | 10 | public Integer getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Integer id) { 15 | this.id = id; 16 | } 17 | 18 | public String getOrdernum() { 19 | return ordernum; 20 | } 21 | 22 | public void setOrdernum(String ordernum) { 23 | this.ordernum = ordernum == null ? null : ordernum.trim(); 24 | } 25 | 26 | public Integer getHallid() { 27 | return hallid; 28 | } 29 | 30 | public void setHallid(Integer hallid) { 31 | this.hallid = hallid; 32 | } 33 | } -------------------------------------------------------------------------------- /src/com/pure/db/TReply.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | import java.util.Date; 4 | 5 | public class TReply { 6 | private Integer id; 7 | 8 | private Integer criticid; 9 | 10 | private String content; 11 | 12 | private Date createdate; 13 | 14 | private Integer userid; 15 | 16 | public Integer getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Integer id) { 21 | this.id = id; 22 | } 23 | 24 | public Integer getCriticid() { 25 | return criticid; 26 | } 27 | 28 | public void setCriticid(Integer criticid) { 29 | this.criticid = criticid; 30 | } 31 | 32 | public String getContent() { 33 | return content; 34 | } 35 | 36 | public void setContent(String content) { 37 | this.content = content == null ? null : content.trim(); 38 | } 39 | 40 | public Date getCreatedate() { 41 | return createdate; 42 | } 43 | 44 | public void setCreatedate(Date createdate) { 45 | this.createdate = createdate; 46 | } 47 | 48 | public Integer getUserid() { 49 | return userid; 50 | } 51 | 52 | public void setUserid(Integer userid) { 53 | this.userid = userid; 54 | } 55 | } -------------------------------------------------------------------------------- /src/com/pure/db/TScreenings.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | import java.util.Date; 4 | 5 | public class TScreenings { 6 | private Integer id; 7 | 8 | private Integer filmid; 9 | 10 | private String type; 11 | 12 | private String price; 13 | 14 | private String remark; 15 | 16 | private Date playTime; 17 | 18 | private Integer auditiorid; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public Integer getFilmid() { 29 | return filmid; 30 | } 31 | 32 | public void setFilmid(Integer filmid) { 33 | this.filmid = filmid; 34 | } 35 | 36 | public String getType() { 37 | return type; 38 | } 39 | 40 | public void setType(String type) { 41 | this.type = type == null ? null : type.trim(); 42 | } 43 | 44 | public String getPrice() { 45 | return price; 46 | } 47 | 48 | public void setPrice(String price) { 49 | this.price = price == null ? null : price.trim(); 50 | } 51 | 52 | public String getRemark() { 53 | return remark; 54 | } 55 | 56 | public void setRemark(String remark) { 57 | this.remark = remark == null ? null : remark.trim(); 58 | } 59 | 60 | public Date getPlayTime() { 61 | return playTime; 62 | } 63 | 64 | public void setPlayTime(Date playTime) { 65 | this.playTime = playTime; 66 | } 67 | 68 | public Integer getAuditiorid() { 69 | return auditiorid; 70 | } 71 | 72 | public void setAuditiorid(Integer auditiorid) { 73 | this.auditiorid = auditiorid; 74 | } 75 | } -------------------------------------------------------------------------------- /src/com/pure/db/TStar.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | public class TStar { 4 | private Integer id; 5 | 6 | private Integer userid; 7 | 8 | private Integer filmid; 9 | 10 | private String star; 11 | 12 | public Integer getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Integer id) { 17 | this.id = id; 18 | } 19 | 20 | public Integer getUserid() { 21 | return userid; 22 | } 23 | 24 | public void setUserid(Integer userid) { 25 | this.userid = userid; 26 | } 27 | 28 | public Integer getFilmid() { 29 | return filmid; 30 | } 31 | 32 | public void setFilmid(Integer filmid) { 33 | this.filmid = filmid; 34 | } 35 | 36 | public String getStar() { 37 | return star; 38 | } 39 | 40 | public void setStar(String star) { 41 | this.star = star == null ? null : star.trim(); 42 | } 43 | } -------------------------------------------------------------------------------- /src/com/pure/db/TUser.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | public class TUser { 4 | private Integer id; 5 | 6 | private String username; 7 | 8 | private String password; 9 | 10 | private String realname; 11 | 12 | private String genger; 13 | 14 | public Integer getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Integer id) { 19 | this.id = id; 20 | } 21 | 22 | public String getUsername() { 23 | return username; 24 | } 25 | 26 | public void setUsername(String username) { 27 | this.username = username == null ? null : username.trim(); 28 | } 29 | 30 | public String getPassword() { 31 | return password; 32 | } 33 | 34 | public void setPassword(String password) { 35 | this.password = password == null ? null : password.trim(); 36 | } 37 | 38 | public String getRealname() { 39 | return realname; 40 | } 41 | 42 | public void setRealname(String realname) { 43 | this.realname = realname == null ? null : realname.trim(); 44 | } 45 | 46 | public String getGenger() { 47 | return genger; 48 | } 49 | 50 | public void setGenger(String genger) { 51 | this.genger = genger == null ? null : genger.trim(); 52 | } 53 | } -------------------------------------------------------------------------------- /src/com/pure/db/TUserThumbs.java: -------------------------------------------------------------------------------- 1 | package com.pure.db; 2 | 3 | public class TUserThumbs { 4 | private Integer userid; 5 | 6 | private Integer criticid; 7 | 8 | public Integer getUserid() { 9 | return userid; 10 | } 11 | 12 | public void setUserid(Integer userid) { 13 | this.userid = userid; 14 | } 15 | 16 | public Integer getCriticid() { 17 | return criticid; 18 | } 19 | 20 | public void setCriticid(Integer criticid) { 21 | this.criticid = criticid; 22 | } 23 | } -------------------------------------------------------------------------------- /src/com/pure/mapping/TFllowMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | and ${criterion.condition} 18 | 19 | 20 | and ${criterion.condition} #{criterion.value} 21 | 22 | 23 | and ${criterion.condition} #{criterion.value} 24 | and 25 | #{criterion.secondValue} 26 | 27 | 28 | and ${criterion.condition} 29 | 31 | #{listItem} 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 45 | 46 | 47 | 48 | 49 | 50 | and ${criterion.condition} 51 | 52 | 53 | and ${criterion.condition} #{criterion.value} 54 | 55 | 56 | and ${criterion.condition} #{criterion.value} 57 | and 58 | #{criterion.secondValue} 59 | 60 | 61 | and ${criterion.condition} 62 | 64 | #{listItem} 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | id, userid, filmid 76 | 77 | 92 | 99 | 100 | delete from 101 | t_follow 102 | where id = #{id,jdbcType=INTEGER} 103 | 104 | 105 | delete from t_follow 106 | 107 | 108 | 109 | 110 | 111 | insert into t_follow (id, 112 | userid, filmid 113 | ) 114 | values (#{id,jdbcType=INTEGER}, 115 | #{userid,jdbcType=INTEGER}, 116 | #{filmid,jdbcType=INTEGER} 117 | ) 118 | 119 | 120 | insert into t_follow 121 | 122 | 123 | id, 124 | 125 | 126 | userid, 127 | 128 | 129 | filmid, 130 | 131 | 132 | 133 | 134 | #{id,jdbcType=INTEGER}, 135 | 136 | 137 | #{userid,jdbcType=INTEGER}, 138 | 139 | 140 | #{filmid,jdbcType=INTEGER}, 141 | 142 | 143 | 144 | 151 | 152 | update t_follow 153 | 154 | 155 | id = #{record.id,jdbcType=INTEGER}, 156 | 157 | 158 | userid = #{record.userid,jdbcType=INTEGER}, 159 | 160 | 161 | filmid = #{record.filmid,jdbcType=INTEGER}, 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | update t_follow 170 | set id = #{record.id,jdbcType=INTEGER}, 171 | userid = 172 | #{record.userid,jdbcType=INTEGER}, 173 | filmid = 174 | #{record.filmid,jdbcType=INTEGER} 175 | 176 | 177 | 178 | 179 | 180 | update t_follow 181 | 182 | 183 | userid = #{userid,jdbcType=INTEGER}, 184 | 185 | 186 | filmid = #{filmid,jdbcType=INTEGER}, 187 | 188 | 189 | where id = #{id,jdbcType=INTEGER} 190 | 191 | 192 | update t_follow 193 | set userid = #{userid,jdbcType=INTEGER}, 194 | filmid = 195 | #{filmid,jdbcType=INTEGER} 196 | where id = #{id,jdbcType=INTEGER} 197 | 198 | 199 | 204 | -------------------------------------------------------------------------------- /src/com/pure/mapping/TUserThumbsMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | and ${criterion.condition} 17 | 18 | 19 | and ${criterion.condition} #{criterion.value} 20 | 21 | 22 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 23 | 24 | 25 | and ${criterion.condition} 26 | 27 | #{listItem} 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | and ${criterion.condition} 46 | 47 | 48 | and ${criterion.condition} #{criterion.value} 49 | 50 | 51 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 52 | 53 | 54 | and ${criterion.condition} 55 | 56 | #{listItem} 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | userid, criticid 68 | 69 | 83 | 89 | 90 | delete from t_user_thumbs 91 | where userid = #{userid,jdbcType=INTEGER} 92 | 93 | 94 | delete from t_user_thumbs 95 | 96 | 97 | 98 | 99 | 100 | insert into t_user_thumbs (userid, criticid) 101 | values (#{userid,jdbcType=INTEGER}, #{criticid,jdbcType=INTEGER}) 102 | 103 | 104 | insert into t_user_thumbs 105 | 106 | 107 | userid, 108 | 109 | 110 | criticid, 111 | 112 | 113 | 114 | 115 | #{userid,jdbcType=INTEGER}, 116 | 117 | 118 | #{criticid,jdbcType=INTEGER}, 119 | 120 | 121 | 122 | 128 | 129 | update t_user_thumbs 130 | 131 | 132 | userid = #{record.userid,jdbcType=INTEGER}, 133 | 134 | 135 | criticid = #{record.criticid,jdbcType=INTEGER}, 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | update t_user_thumbs 144 | set userid = #{record.userid,jdbcType=INTEGER}, 145 | criticid = #{record.criticid,jdbcType=INTEGER} 146 | 147 | 148 | 149 | 150 | 151 | update t_user_thumbs 152 | 153 | 154 | criticid = #{criticid,jdbcType=INTEGER}, 155 | 156 | 157 | where userid = #{userid,jdbcType=INTEGER} 158 | 159 | 160 | update t_user_thumbs 161 | set criticid = #{criticid,jdbcType=INTEGER} 162 | where userid = #{userid,jdbcType=INTEGER} 163 | 164 | -------------------------------------------------------------------------------- /src/com/pure/security/SecurityFilter.java: -------------------------------------------------------------------------------- 1 | package com.pure.security; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.FilterChain; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import net.sf.json.JSONObject; 12 | 13 | import org.springframework.web.filter.OncePerRequestFilter; 14 | 15 | import com.pure.common.ReturnData; 16 | import com.pure.common.SysCodeMsg; 17 | 18 | 19 | public class SecurityFilter extends OncePerRequestFilter { 20 | 21 | @Override 22 | protected void doFilterInternal(HttpServletRequest request, 23 | HttpServletResponse response, FilterChain filterChain) 24 | throws ServletException, IOException { 25 | // 不过滤的uri 26 | String[] notFilter = new String[] { "login.jsp", "index.jsp", 27 | "login.do", "logout.do", 28 | }; 29 | // 请求的uri 30 | String uri = request.getRequestURI(); 31 | 32 | // uri中包含background时才进行过滤 33 | 34 | // 是否过滤 35 | boolean doFilter = true; 36 | for (String s : notFilter) { 37 | if (uri.indexOf(s) != -1) { 38 | // 如果uri中包含不过滤的uri,则不进行过滤 39 | doFilter = false; 40 | break; 41 | } 42 | } 43 | if (doFilter) { 44 | // 执行过滤 45 | // 从session中获取登录者实体 46 | Object obj = request.getSession().getAttribute("user"); 47 | if (null == obj) { 48 | request.setCharacterEncoding("UTF-8"); 49 | response.setCharacterEncoding("UTF-8"); 50 | PrintWriter out = response.getWriter(); 51 | ReturnData returnData = new ReturnData(); 52 | returnData.setCode(SysCodeMsg.CODE_10002); 53 | returnData.setMessage(SysCodeMsg.MSG_10002); 54 | out.print(JSONObject.fromObject(returnData)); 55 | } else { 56 | filterChain.doFilter(request, response); 57 | } 58 | } else { 59 | // 如果不执行过滤,则继续 60 | filterChain.doFilter(request, response); 61 | } 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/com/pure/service/AuditoriumService.java: -------------------------------------------------------------------------------- 1 | package com.pure.service; 2 | 3 | import java.util.Map; 4 | 5 | import com.pure.common.PageInfo; 6 | import com.pure.db.TAuditorium; 7 | 8 | public interface AuditoriumService { 9 | 10 | PageInfo getAuditoriumPageInfo(Integer pageCurrent, Integer pageSize, 11 | TAuditorium tAuditorium); 12 | 13 | Map getAuditoriumById(Integer id); 14 | 15 | void deleteAuditoriumById(Integer id); 16 | 17 | void saveAuditorium(TAuditorium tAuditorium); 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/com/pure/service/CommonService.java: -------------------------------------------------------------------------------- 1 | package com.pure.service; 2 | 3 | 4 | import java.util.List; 5 | 6 | import com.pure.common.PageInfo; 7 | import com.pure.db.KeyValue; 8 | 9 | public interface CommonService { 10 | /** 11 | * 通用分页服务 12 | * 13 | * @param detailSqlId 14 | * @param countSqlId 15 | * @param obj 16 | * @param cruuPageNo 17 | * @return 18 | */ 19 | PageInfo getPage(String detailSqlId, String countSqlId, Object obj, 20 | int pageNo,int pageSize); 21 | 22 | String KVList2ObjectJson(List kvList); 23 | } 24 | -------------------------------------------------------------------------------- /src/com/pure/service/FilmCriticService.java: -------------------------------------------------------------------------------- 1 | package com.pure.service; 2 | 3 | import java.util.Map; 4 | 5 | import com.pure.common.PageInfo; 6 | import com.pure.db.TFilmCritic; 7 | import com.pure.db.TReply; 8 | import com.pure.db.TUser; 9 | 10 | public interface FilmCriticService { 11 | 12 | Map getTFilmCriticById(Integer id); 13 | 14 | void deleteTFilmCriticById(Integer id); 15 | 16 | void saveTFilmCritic(TFilmCritic tTFilmCritic); 17 | 18 | PageInfo getTFilmCriticPageInfo(Integer pageCurrent, Integer pageSize, 19 | String name,String filmid,TUser user); 20 | 21 | void saveTReply(TReply tReply); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/com/pure/service/FilmService.java: -------------------------------------------------------------------------------- 1 | package com.pure.service; 2 | 3 | import java.util.Map; 4 | 5 | import com.pure.common.PageInfo; 6 | import com.pure.db.TFilm; 7 | 8 | public interface FilmService { 9 | 10 | PageInfo getFilmPageInfo(Integer pageCurrent, Integer pageSize, TFilm tFilm); 11 | 12 | Map getFilmById(Integer id); 13 | 14 | void deleteFilmById(Integer id); 15 | 16 | void saveFilm(TFilm tFilm); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/com/pure/service/OrderService.java: -------------------------------------------------------------------------------- 1 | package com.pure.service; 2 | 3 | import java.util.List; 4 | 5 | import com.pure.common.PageInfo; 6 | 7 | public interface OrderService { 8 | 9 | PageInfo getOrderPageInfo(Integer pageCurrent, Integer pageSize, Integer id); 10 | 11 | void orderTicket(Integer id, Integer screeningsid, String position); 12 | 13 | List getRestInfo(Integer screeningsid); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/com/pure/service/TicketService.java: -------------------------------------------------------------------------------- 1 | package com.pure.service; 2 | 3 | import java.util.Map; 4 | 5 | import com.pure.common.PageInfo; 6 | import com.pure.db.TFilm; 7 | import com.pure.db.TScreenings; 8 | 9 | public interface TicketService { 10 | 11 | PageInfo getTicketPageInfo(Integer pageCurrent, Integer pageSize, 12 | TScreenings tScreenings); 13 | 14 | Map getTicketById(Integer id); 15 | 16 | void deleteTicletById(Integer id); 17 | 18 | void saveTiclet(TScreenings tScreenings); 19 | 20 | void cancleTiclet(Integer id); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/com/pure/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.pure.service; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | 8 | import com.pure.common.PageInfo; 9 | import com.pure.db.TFllow; 10 | import com.pure.db.TUser; 11 | 12 | public interface UserService { 13 | 14 | boolean login(String username, String password, HttpServletRequest request); 15 | 16 | boolean regist(TUser user); 17 | 18 | PageInfo getUserPageInfo(Integer pageCurrent, Integer pageSize, TUser user); 19 | 20 | void saveUser(TUser user); 21 | 22 | void deleteUser(Integer id); 23 | 24 | String userFollow(Integer id, Integer filmid); 25 | 26 | void playStar(Integer id, Integer filmid, String star); 27 | 28 | List> getUserFollow(Integer id); 29 | 30 | String thumbsUp(Integer id, int criticid); 31 | 32 | List> getUserRecommend(TUser user); 33 | 34 | int getUserFollowByFilmId(Integer id); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/com/pure/service/impl/AuditoriumServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.pure.service.impl; 2 | 3 | import java.util.HashMap; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import javax.annotation.Resource; 8 | 9 | import org.springframework.stereotype.Service; 10 | 11 | import com.pure.common.PageInfo; 12 | import com.pure.common.Util; 13 | import com.pure.dao.TAuditoriumMapper; 14 | import com.pure.db.TAuditorium; 15 | import com.pure.service.AuditoriumService; 16 | 17 | @Service 18 | public class AuditoriumServiceImpl implements AuditoriumService { 19 | 20 | @Resource 21 | private TAuditoriumMapper tAuditoriumMapper; 22 | 23 | @Override 24 | public PageInfo getAuditoriumPageInfo(Integer pageCurrent, 25 | Integer pageSize, TAuditorium tAuditorium) { 26 | // TODO Auto-generated method stub 27 | Map param = new HashMap(); 28 | int start = (Integer.valueOf(pageCurrent) - 1) 29 | * Integer.valueOf(pageSize); 30 | param.put("start", start); 31 | param.put("end", Integer.valueOf(pageSize)); 32 | if (Util.isNullString(tAuditorium.getName())) { 33 | param.put("name", tAuditorium.getName()); 34 | } 35 | PageInfo page = new PageInfo(); 36 | page.setCurrPageNo(pageCurrent); 37 | page.setPageSize(pageSize); 38 | int cnt = tAuditoriumMapper.countByParam(param); 39 | page.setPageTotal(cnt % page.getPageSize() == 0 ? cnt 40 | / page.getPageSize() : (cnt / page.getPageSize() + 1)); 41 | page.setTotal(cnt); 42 | List> row = tAuditoriumMapper 43 | .getAuditoriumPageInfo(param); 44 | page.setRows(row); 45 | return page; 46 | } 47 | 48 | @Override 49 | public Map getAuditoriumById(Integer id) { 50 | // TODO Auto-generated method stub 51 | return Util.objectToMap(tAuditoriumMapper.selectByPrimaryKey(id)); 52 | } 53 | 54 | @Override 55 | public void deleteAuditoriumById(Integer id) { 56 | // TODO Auto-generated method stub 57 | tAuditoriumMapper.deleteByPrimaryKey(id); 58 | } 59 | 60 | @Override 61 | public void saveAuditorium(TAuditorium tAuditorium) { 62 | // TODO Auto-generated method stub 63 | if (tAuditorium.getId() !=null) { 64 | tAuditoriumMapper.updateByPrimaryKeySelective(tAuditorium); 65 | } else { 66 | tAuditoriumMapper.insertSelective(tAuditorium); 67 | } 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/com/pure/service/impl/CommonServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.pure.service.impl; 2 | 3 | import java.util.HashMap; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import javax.annotation.Resource; 8 | 9 | import org.apache.ibatis.session.RowBounds; 10 | import org.apache.ibatis.session.SqlSession; 11 | import org.apache.ibatis.session.defaults.DefaultSqlSessionFactory; 12 | import org.apache.log4j.Logger; 13 | import org.springframework.stereotype.Service; 14 | 15 | import com.pure.common.JsonUtil; 16 | import com.pure.common.PageInfo; 17 | import com.pure.db.KeyValue; 18 | import com.pure.service.CommonService; 19 | 20 | @Service 21 | public class CommonServiceImpl implements CommonService { 22 | private static final Logger log = Logger.getLogger(CommonServiceImpl.class); 23 | @Resource(name = "sqlSessionFactory") 24 | private DefaultSqlSessionFactory fb; 25 | 26 | public PageInfo getPage(String detailSqlId, String countSqlId, Object obj, 27 | int pageNo, int pageSize){ 28 | return getPage(detailSqlId, countSqlId, obj, pageNo, pageSize, 1); 29 | } 30 | 31 | public PageInfo getPage(String detailSqlId, String countSqlId, Object obj, 32 | int pageNo, int pageSize, int fetchNum) { 33 | PageInfo page = new PageInfo(); 34 | page.setCurrPageNo(pageNo); 35 | page.setPageSize(pageSize); 36 | SqlSession ss = null; 37 | 38 | int cruuPageNo = page.getCurrPageNo(); 39 | 40 | try { 41 | ss = fb.openSession(); 42 | if (cruuPageNo < 1) { 43 | cruuPageNo = 1; 44 | } 45 | Object oo = ss.selectOne(countSqlId, obj); 46 | int cnt = new Integer(oo.toString()); 47 | int pageTotal = cnt % page.getPageSize() == 0 ? cnt 48 | / page.getPageSize() : (cnt / page.getPageSize() + 1); 49 | page.setTotal(cnt); 50 | page.setPageTotal(pageTotal); 51 | int offset = (cruuPageNo - 1) * page.getPageSize(); 52 | RowBounds bounds = new RowBounds(offset, page.getPageSize()*fetchNum); 53 | page.setCurrPageNo(cruuPageNo); 54 | page.setRows(ss.selectList(detailSqlId, obj, bounds)); 55 | } catch (Exception e) { 56 | e.printStackTrace(); 57 | } finally { 58 | ss.close(); 59 | } 60 | log.debug(JsonUtil.object2json(page)); 61 | return page; 62 | } 63 | 64 | public PageInfo getPageByCount(String detailSqlId, int count, Object obj, 65 | int pageNo, int pageSize, int fetchNum) { 66 | // TODO Auto-generated method stub 67 | PageInfo page = new PageInfo(); 68 | page.setCurrPageNo(pageNo); 69 | page.setPageSize(pageSize); 70 | SqlSession ss = null; 71 | 72 | int cruuPageNo = page.getCurrPageNo(); 73 | 74 | try { 75 | ss = fb.openSession(); 76 | if (cruuPageNo < 1) { 77 | cruuPageNo = 1; 78 | } 79 | int cnt = new Integer(count); 80 | int pageTotal = cnt % page.getPageSize() == 0 ? cnt 81 | / page.getPageSize() : (cnt / page.getPageSize() + 1); 82 | page.setTotal(cnt); 83 | page.setPageTotal(pageTotal); 84 | int offset = (cruuPageNo - 1) * page.getPageSize(); 85 | RowBounds bounds = new RowBounds(offset, page.getPageSize()*fetchNum); 86 | page.setCurrPageNo(cruuPageNo); 87 | page.setRows(ss.selectList(detailSqlId, obj, bounds)); 88 | } catch (Exception e) { 89 | // TODO Auto-generated catch block 90 | e.printStackTrace(); 91 | } finally { 92 | ss.close(); 93 | } 94 | log.debug(JsonUtil.object2json(page)); 95 | return page; 96 | } 97 | 98 | public String KVList2ObjectJson(List kvList){ 99 | Map rlt = new HashMap(); 100 | if(kvList!=null&&kvList.size()>0){ 101 | for(int i=0;i getTFilmCriticById(Integer id) { 38 | // TODO Auto-generated method stub 39 | return null; 40 | } 41 | 42 | @Override 43 | public void deleteTFilmCriticById(Integer id) { 44 | // TODO Auto-generated method stub 45 | tFilmCriticMapper.deleteByPrimaryKey(id); 46 | } 47 | 48 | @Override 49 | public void saveTFilmCritic(TFilmCritic tTFilmCritic) { 50 | // TODO Auto-generated method stub 51 | tTFilmCritic.setCreatTime(Util.getCurrentDate()); 52 | tFilmCriticMapper.insertSelective(tTFilmCritic); 53 | } 54 | 55 | @Override 56 | public PageInfo getTFilmCriticPageInfo(Integer pageCurrent, 57 | Integer pageSize, String name, String filmid, TUser user) { 58 | // TODO Auto-generated method stub 59 | Map param = new HashMap(); 60 | int start = (Integer.valueOf(pageCurrent) - 1) 61 | * Integer.valueOf(pageSize); 62 | param.put("start", start); 63 | param.put("end", Integer.valueOf(pageSize)); 64 | if (!Util.isNullString(name)) { 65 | param.put("name", "%" + name + "%"); 66 | } 67 | if (!Util.isNullString(filmid)) { 68 | param.put("filmid", filmid); 69 | } 70 | PageInfo page = new PageInfo(); 71 | page.setCurrPageNo(pageCurrent); 72 | page.setPageSize(pageSize); 73 | int cnt = tFilmCriticMapper.countByParam(param); 74 | page.setPageTotal(cnt % page.getPageSize() == 0 ? cnt 75 | / page.getPageSize() : (cnt / page.getPageSize() + 1)); 76 | page.setTotal(cnt); 77 | List> row = tFilmCriticMapper 78 | .getTFilmCriticPageInfo(param); 79 | for (Map temp : row) { 80 | //查看是否点赞 81 | if (user != null) { 82 | TUserThumbsExample example = new TUserThumbsExample(); 83 | example.createCriteria().andCriticidEqualTo( 84 | Integer.parseInt(temp.get("id") + "")); 85 | example.createCriteria().andUseridEqualTo(user.getId()); 86 | int tempNum = tUserThumbsMapper.countByExample(example); 87 | if (tempNum > 0) { 88 | temp.put("status", "已点赞"); 89 | }else { 90 | temp.put("status", "未点赞"); 91 | } 92 | } else { 93 | temp.put("status", "未点赞"); 94 | } 95 | //查看是否有回复 96 | List>ls= tReplyMapper.selectReplyByCriticid(temp.get("id")+""); 97 | temp.put("reply", ls); 98 | } 99 | page.setRows(row); 100 | return page; 101 | } 102 | 103 | @Override 104 | public void saveTReply(TReply tReply) { 105 | // TODO Auto-generated method stub 106 | tReply.setCreatedate(Util.getCurrentDate()); 107 | tReplyMapper.insertSelective(tReply); 108 | } 109 | 110 | } 111 | -------------------------------------------------------------------------------- /src/com/pure/service/impl/FilmServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.pure.service.impl; 2 | 3 | import java.util.HashMap; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import javax.annotation.Resource; 8 | 9 | import org.springframework.stereotype.Service; 10 | 11 | import com.pure.common.PageInfo; 12 | import com.pure.common.Util; 13 | import com.pure.dao.TFilmMapper; 14 | import com.pure.db.TFilm; 15 | import com.pure.service.FilmService; 16 | 17 | @Service 18 | public class FilmServiceImpl implements FilmService { 19 | 20 | @Resource 21 | private TFilmMapper tFilmMapper; 22 | 23 | @Override 24 | public PageInfo getFilmPageInfo(Integer pageCurrent, Integer pageSize, 25 | TFilm tFilm) { 26 | System.out.println(tFilm.getBigtype()+", "); 27 | // TODO Auto-generated method stub 28 | Map param = new HashMap(); 29 | int start = (Integer.valueOf(pageCurrent) - 1) 30 | * Integer.valueOf(pageSize); 31 | param.put("start", start); 32 | param.put("end", Integer.valueOf(pageSize)); 33 | if (!Util.isNullString(tFilm.getFilmname())) { 34 | param.put("filmname", "%" + tFilm.getFilmname() + "%"); 35 | } 36 | if (!Util.isNullString(tFilm.getType())) { 37 | param.put("type", tFilm.getType()); 38 | } 39 | if (!Util.isNullString(tFilm.getArea())) { 40 | param.put("area", tFilm.getArea()); 41 | } 42 | if (!Util.isNullString(tFilm.getYear())) { 43 | param.put("year", tFilm.getYear()); 44 | } 45 | PageInfo page = new PageInfo(); 46 | page.setCurrPageNo(pageCurrent); 47 | page.setPageSize(pageSize); 48 | int cnt = tFilmMapper.countByParam(param); 49 | page.setPageTotal(cnt % page.getPageSize() == 0 ? cnt 50 | / page.getPageSize() : (cnt / page.getPageSize() + 1)); 51 | page.setTotal(cnt); 52 | List> row = tFilmMapper.getFilmPageInfo(param); 53 | page.setRows(row); 54 | return page; 55 | } 56 | 57 | @Override 58 | public Map getFilmById(Integer id) { 59 | // TODO Auto-generated method stub 60 | return Util.objectToMap(tFilmMapper.selectByPrimaryKey(id)); 61 | } 62 | 63 | @Override 64 | public void deleteFilmById(Integer id) { 65 | // TODO Auto-generated method stub 66 | tFilmMapper.deleteByPrimaryKey(id); 67 | } 68 | 69 | @Override 70 | public void saveFilm(TFilm tFilm) { 71 | // TODO Auto-generated method stub 72 | if (tFilm.getId() != null) { 73 | tFilmMapper.updateByPrimaryKeySelective(tFilm); 74 | } else { 75 | tFilmMapper.insertSelective(tFilm); 76 | } 77 | 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/com/pure/service/impl/OrderServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.pure.service.impl; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Arrays; 5 | import java.util.Date; 6 | import java.util.HashMap; 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | import javax.annotation.Resource; 11 | 12 | import org.springframework.stereotype.Service; 13 | 14 | import com.pure.common.PageInfo; 15 | import com.pure.common.Util; 16 | import com.pure.dao.TOrderMapper; 17 | import com.pure.dao.TOrderRestInfoMapper; 18 | import com.pure.db.TOrder; 19 | import com.pure.service.OrderService; 20 | 21 | @Service 22 | public class OrderServiceImpl implements OrderService { 23 | 24 | @Resource 25 | private TOrderMapper tOrderMapper; 26 | 27 | @Resource 28 | private TOrderRestInfoMapper tOrderRestInfoMapper; 29 | 30 | @Override 31 | public PageInfo getOrderPageInfo(Integer pageCurrent, Integer pageSize, 32 | Integer id) { 33 | // TODO Auto-generated method stub 34 | Map param = new HashMap(); 35 | int start = (Integer.valueOf(pageCurrent) - 1) 36 | * Integer.valueOf(pageSize); 37 | param.put("start", start); 38 | param.put("end", Integer.valueOf(pageSize)); 39 | param.put("id", id); 40 | PageInfo page = new PageInfo(); 41 | page.setCurrPageNo(pageCurrent); 42 | page.setPageSize(pageSize); 43 | int cnt = tOrderMapper.countByParam(param); 44 | page.setPageTotal(cnt % page.getPageSize() == 0 ? cnt 45 | / page.getPageSize() : (cnt / page.getPageSize() + 1)); 46 | page.setTotal(cnt); 47 | List> row = tOrderMapper 48 | .getOrderPageInfo(param); 49 | page.setRows(row); 50 | return page; 51 | } 52 | 53 | @Override 54 | public void orderTicket(Integer id, Integer screeningsid, String position) { 55 | // TODO Auto-generated method stub 56 | TOrder order=new TOrder(); 57 | order.setBuytime(new Date()); 58 | order.setPosition(position); 59 | order.setScreeningsid(screeningsid); 60 | order.setUserid(id); 61 | order.setStatus("已预定"); 62 | tOrderMapper.insertSelective(order); 63 | //更新剩余位置 64 | Mapparam=new HashMap(); 65 | param.put("screeningsid", screeningsid); 66 | param.put("position", ","+position); 67 | tOrderRestInfoMapper.updateRestInfo(param); 68 | } 69 | 70 | @Override 71 | public List getRestInfo(Integer screeningsid) { 72 | // TODO Auto-generated method stub 73 | String res=tOrderRestInfoMapper.getRestInfo(screeningsid); 74 | List resList=new ArrayList(); 75 | if (res!=null) { 76 | String [] strs=res.split(","); 77 | for (int i = 0; i < strs.length; i++) { 78 | resList.add(strs[i]); 79 | } 80 | return resList; 81 | }else { 82 | return new ArrayList(); 83 | } 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /src/com/pure/service/impl/TicketServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.pure.service.impl; 2 | 3 | import java.util.HashMap; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import javax.annotation.Resource; 8 | 9 | import org.springframework.stereotype.Service; 10 | 11 | import com.pure.common.PageInfo; 12 | import com.pure.common.Util; 13 | import com.pure.dao.TOrderMapper; 14 | import com.pure.dao.TOrderRestInfoMapper; 15 | import com.pure.dao.TScreeningsMapper; 16 | import com.pure.db.TOrderRestInfo; 17 | import com.pure.db.TScreenings; 18 | import com.pure.service.TicketService; 19 | 20 | @Service 21 | public class TicketServiceImpl implements TicketService { 22 | 23 | @Resource 24 | private TScreeningsMapper tScreeningsMapper; 25 | 26 | @Resource 27 | private TOrderMapper tOrderMapper ; 28 | 29 | @Resource 30 | private TOrderRestInfoMapper tOrderRestInfoMapper; 31 | 32 | @Override 33 | public PageInfo getTicketPageInfo(Integer pageCurrent, Integer pageSize, 34 | TScreenings tScreenings) { 35 | // TODO Auto-generated method stub 36 | Map param = new HashMap(); 37 | int start = (Integer.valueOf(pageCurrent) - 1) 38 | * Integer.valueOf(pageSize); 39 | param.put("start", start); 40 | param.put("end", Integer.valueOf(pageSize)); 41 | if (!Util.isNullString(tScreenings.getType())) { 42 | param.put("filmname", tScreenings.getType()); 43 | } 44 | if (tScreenings.getFilmid()!=null) { 45 | param.put("filmId", tScreenings.getFilmid()); 46 | } 47 | PageInfo page = new PageInfo(); 48 | page.setCurrPageNo(pageCurrent); 49 | page.setPageSize(pageSize); 50 | int cnt = tScreeningsMapper.countByParam(param); 51 | page.setPageTotal(cnt % page.getPageSize() == 0 ? cnt 52 | / page.getPageSize() : (cnt / page.getPageSize() + 1)); 53 | page.setTotal(cnt); 54 | List> row = tScreeningsMapper 55 | .getTicketPageInfo(param); 56 | page.setRows(row); 57 | return page; 58 | } 59 | 60 | @Override 61 | public Map getTicketById(Integer id) { 62 | // TODO Auto-generated method stub 63 | return Util.objectToMap(tScreeningsMapper.selectByPrimaryKey(id)); 64 | } 65 | 66 | @Override 67 | public void deleteTicletById(Integer id) { 68 | // TODO Auto-generated method stub 69 | tScreeningsMapper.deleteByPrimaryKey(id); 70 | } 71 | 72 | @Override 73 | public void saveTiclet(TScreenings tScreenings) { 74 | // TODO Auto-generated method stub 75 | if (tScreenings.getId() != null) { 76 | tScreeningsMapper.updateByPrimaryKeySelective(tScreenings); 77 | } else { 78 | Integer max= tScreeningsMapper.selectMaxId(); 79 | if(max == null ){ 80 | max = 1; 81 | }else{ 82 | max += 1; 83 | } 84 | 85 | tScreenings.setId(max); 86 | tScreeningsMapper.insertSelective(tScreenings); 87 | TOrderRestInfo restInfo= new TOrderRestInfo(); 88 | restInfo.setHallid(max); 89 | tOrderRestInfoMapper.insertSelective(restInfo); 90 | } 91 | } 92 | 93 | @Override 94 | public void cancleTiclet(Integer id) { 95 | // TODO Auto-generated method stub 96 | tOrderMapper.cancleTiclet(id); 97 | } 98 | 99 | } 100 | -------------------------------------------------------------------------------- /src/com/pure/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.pure.service.impl; 2 | 3 | import java.util.HashMap; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import javax.annotation.Resource; 8 | import javax.servlet.http.HttpServletRequest; 9 | 10 | import org.springframework.stereotype.Service; 11 | 12 | import com.pure.common.PageInfo; 13 | import com.pure.common.Util; 14 | import com.pure.dao.TFilmCriticMapper; 15 | import com.pure.dao.TFilmMapper; 16 | import com.pure.dao.TFllowMapper; 17 | import com.pure.dao.TStarMapper; 18 | import com.pure.dao.TUserMapper; 19 | import com.pure.dao.TUserThumbsMapper; 20 | import com.pure.db.TFilmCritic; 21 | import com.pure.db.TFllow; 22 | import com.pure.db.TFllowExample; 23 | import com.pure.db.TStar; 24 | import com.pure.db.TUser; 25 | import com.pure.db.TUserExample; 26 | import com.pure.db.TUserThumbs; 27 | import com.pure.db.TUserThumbsExample; 28 | import com.pure.service.UserService; 29 | 30 | @Service 31 | public class UserServiceImpl extends CommonServiceImpl implements UserService { 32 | 33 | @Resource 34 | private TUserMapper tUserMapper; 35 | 36 | @Resource 37 | private TFllowMapper tFllowMapper; 38 | 39 | @Resource 40 | private TStarMapper tStarMapper; 41 | 42 | @Resource 43 | private TUserThumbsMapper tUserThumbsMapper; 44 | 45 | 46 | @Resource 47 | private TFilmCriticMapper tFilmCriticMapper; 48 | 49 | @Resource 50 | private TFilmMapper tFilmMapper; 51 | /*** 52 | * 用户登录校验 53 | */ 54 | @Override 55 | public boolean login(String username, String password, 56 | HttpServletRequest request) { 57 | boolean flag = false; 58 | TUser user = tUserMapper.getUserByName(username); 59 | // 判断用户是否存在 60 | if (user != null) { 61 | // 如果存在则验证密码 62 | if (user.getPassword().equals(password)) {// 验证成功 63 | request.getSession().setMaxInactiveInterval(-200); 64 | request.getSession().setAttribute("user", user); 65 | flag = true; 66 | } 67 | } 68 | return flag; 69 | } 70 | 71 | /*** 72 | * 用户注册 73 | */ 74 | @Override 75 | public boolean regist(TUser user) { 76 | // TODO Auto-generated method stub 77 | boolean flag = false; 78 | // 判断用户是否已经注册 79 | TUser usertemp = tUserMapper.getUserByName(user.getUsername()); 80 | if (usertemp != null) { 81 | // 如果注册 则返回 用户已注册 82 | return flag; 83 | } else { 84 | // 未注册则注册成功! 85 | tUserMapper.insertSelective(user); 86 | return true; 87 | } 88 | } 89 | 90 | /*** 91 | * 分页查询用户列表 92 | */ 93 | @Override 94 | public PageInfo getUserPageInfo(Integer pageCurrent, Integer pageSize, 95 | TUser user) { 96 | // TODO Auto-generated method stub 97 | Map param = new HashMap(); 98 | int start = (Integer.valueOf(pageCurrent) - 1) 99 | * Integer.valueOf(pageSize); 100 | param.put("start", start); 101 | param.put("end", Integer.valueOf(pageSize)); 102 | if (Util.isNullString(user.getRealname())) { 103 | param.put("realname", user.getRealname()); 104 | } 105 | PageInfo page = new PageInfo(); 106 | page.setCurrPageNo(pageCurrent); 107 | page.setPageSize(pageSize); 108 | int cnt = tUserMapper.countByParam(param); 109 | page.setPageTotal(cnt % page.getPageSize() == 0 ? cnt 110 | / page.getPageSize() : (cnt / page.getPageSize() + 1)); 111 | page.setTotal(cnt); 112 | List> row = tUserMapper.getUserPageInfo(param); 113 | page.setRows(row); 114 | return page; 115 | } 116 | 117 | @Override 118 | public void saveUser(TUser user) { 119 | // TODO Auto-generated method stub 120 | if (!Util.isNullString(user.getId() + "")) { 121 | tUserMapper.updateByPrimaryKeySelective(user); 122 | } else { 123 | tUserMapper.insertSelective(user); 124 | 125 | } 126 | } 127 | 128 | @Override 129 | public void deleteUser(Integer id) { 130 | // TODO Auto-generated method stub 131 | tUserMapper.deleteByPrimaryKey(id); 132 | } 133 | 134 | @Override 135 | public String userFollow(Integer id, Integer filmid) { 136 | // TODO Auto-generated method stub 137 | TFllowExample example=new TFllowExample(); 138 | example.createCriteria().andFilmidEqualTo(filmid); 139 | example.createCriteria().andUseridEqualTo(id); 140 | List userthumbs= tFllowMapper.selectByExample(example); 141 | if (userthumbs.size()>0) {//已经收藏 142 | tFllowMapper.deleteByExample(example); 143 | return "取消收藏成功!"; 144 | 145 | }else { 146 | TFllow fllow=new TFllow(); 147 | fllow.setFilmid(filmid); 148 | fllow.setUserid(id); 149 | tFllowMapper.insertSelective(fllow); 150 | return "收藏成功!"; 151 | } 152 | } 153 | 154 | @Override 155 | public void playStar(Integer id, Integer filmid, String star) { 156 | // TODO Auto-generated method stub 157 | TStar tstar=new TStar(); 158 | tstar.setFilmid(filmid); 159 | tstar.setUserid(id); 160 | tstar.setStar(star); 161 | tStarMapper.insertSelective(tstar); 162 | } 163 | 164 | @Override 165 | public List> getUserFollow(Integer id) { 166 | // TODO Auto-generated method stub 167 | return tFllowMapper.getUserFollow(id); 168 | } 169 | 170 | @Override 171 | public String thumbsUp(Integer id, int criticid) { 172 | // TODO Auto-generated method stub 173 | TUserThumbsExample example=new TUserThumbsExample(); 174 | example.createCriteria().andCriticidEqualTo(criticid); 175 | example.createCriteria().andUseridEqualTo(id); 176 | List userthumbs= tUserThumbsMapper.selectByExample(example); 177 | TFilmCritic critic=tFilmCriticMapper.selectByPrimaryKey(criticid); 178 | if (userthumbs.size()>0) {//已经点赞 179 | critic.setThumbs(critic.getThumbs()-1); 180 | tFilmCriticMapper.updateByPrimaryKeySelective(critic); 181 | tUserThumbsMapper.deleteByExample(example); 182 | return "取消点赞成功!"; 183 | 184 | }else { 185 | critic.setThumbs(critic.getThumbs()+1); 186 | tFilmCriticMapper.updateByPrimaryKeySelective(critic); 187 | TUserThumbs thumbs=new TUserThumbs(); 188 | thumbs.setCriticid(criticid); 189 | thumbs.setUserid(id); 190 | tUserThumbsMapper.insertSelective(thumbs); 191 | return "点赞成功!"; 192 | } 193 | } 194 | 195 | @Override 196 | public List> getUserRecommend(TUser user) { 197 | // TODO Auto-generated method stub 198 | Map param=new HashMap(); 199 | if (null != user) { 200 | return tUserMapper.getUserRecommend(user.getId()); 201 | }else { 202 | return tFilmMapper.getHotFilm(); 203 | } 204 | } 205 | 206 | @Override 207 | public int getUserFollowByFilmId(Integer id) { 208 | // TODO Auto-generated method stub 209 | TFllowExample example=new TFllowExample(); 210 | example.createCriteria().andFilmidEqualTo(id); 211 | return tFllowMapper.countByExample(example); 212 | } 213 | } 214 | -------------------------------------------------------------------------------- /src/com/pure/service/model/BaseModel.java: -------------------------------------------------------------------------------- 1 | package com.pure.service.model; 2 | 3 | import java.util.*; 4 | 5 | public class BaseModel { 6 | 7 | public Map fieldMap; 8 | 9 | public Map readFeildMap(String feilds){ 10 | 11 | Map fMap = new HashMap(); 12 | if(feilds==null||feilds.equals("")){ 13 | return fieldMap; 14 | } 15 | 16 | try{ 17 | String[] feildsArr = feilds.split(","); 18 | for(int i=0;i>> conditionCfgs; 14 | 15 | static{ 16 | try{ 17 | conditionCfgs = new HashMap>>(); 18 | 19 | SAXReader saxReader = new SAXReader(); 20 | 21 | java.net.URL xmlURL = ConditionCfg.class.getResource("conditionCfg.xml"); 22 | Document doc = saxReader.read(xmlURL); 23 | List conditionEleList = doc.selectNodes("//configuration/condition"); 24 | 25 | for(Iterator it = conditionEleList.iterator();it.hasNext();){ 26 | Element conditioncfgEle = (Element)it.next(); 27 | String sname = conditioncfgEle.attributeValue("name"); 28 | Map> map= new HashMap>(); 29 | conditionCfgs.put(sname, map); 30 | List filedEleList = (List)conditioncfgEle.elements("filed"); 31 | for(Iterator filedIt = filedEleList.iterator();filedIt.hasNext();){ 32 | Element filedEle = (Element)filedIt.next(); 33 | String name = filedEle.attributeValue("name"); 34 | String columnName = filedEle.attributeValue("columnName"); 35 | String dataType = filedEle.attributeValue("dataType"); 36 | Map condition=new HashMap(); 37 | condition.put("columnName", columnName); 38 | condition.put("dataType", dataType); 39 | map.put(name, condition); 40 | } 41 | } 42 | 43 | }catch(Exception e){ 44 | e.printStackTrace(); 45 | } 46 | 47 | } 48 | 49 | public static Map> getCondtionCfg(String conditionName){ 50 | return conditionCfgs.get(conditionName); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/com/pure/servicecfg/conditionCfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/config.properties: -------------------------------------------------------------------------------- 1 | #hibernate.dialect=com.bky.util.Oracle10gDialect 2 | #driverClassName=oracle.jdbc.driver.OracleDriver 3 | #validationQuery=SELECT 1 FROM DUAL 4 | #jdbc_url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Baikeyang)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl))) 5 | #jdbc_username=sshe 6 | #jdbc_password=1234 7 | 8 | #hibernate.dialect=org.hibernate.dialect.Oracle9Dialect 9 | #driverClassName=oracle.jdbc.driver.OracleDriver 10 | validationQuery=select 1 11 | jdbc_url=jdbc:mysql://localhost:3306/foosdb?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull 12 | jdbc_username=root 13 | jdbc_password=114422 14 | 15 | #hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect 16 | #driverClassName=com.mysql.jdbc.Driver 17 | #validationQuery=SELECT 1 18 | #jdbc_url=jdbc:mysql://localhost:3306/bkytest?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull 19 | #jdbc_username=root 20 | #jdbc_password=123456 21 | 22 | #hibernate.dialect=org.hibernate.dialect.SQLServer2008Dialect 23 | #driverClassName=net.sourceforge.jtds.jdbc.Driver 24 | #validationQuery=SELECT 1 25 | #jdbc_url=jdbc:jtds:sqlserver://127.0.0.1:1433/dbName 26 | #jdbc_username=sa 27 | #jdbc_password=123456 28 | 29 | #jndiName=java:comp/env/BenDiShuJuYuan 30 | 31 | #hibernate.hbm2ddl.auto=update 32 | #hibernate.show_sql=true 33 | #hibernate.format_sql=true 34 | #hibernate.use_sql_comments=true 35 | 36 | #sessionInfoName=sessionInfo 37 | 38 | #uploadPath=/ssheUploadFile -------------------------------------------------------------------------------- /src/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=INFO, Console 2 | log4j.rootCategory=INFO,stdout,R 3 | #Console 4 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 5 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n 7 | 8 | log4j.logger.java.sql.ResultSet=INFO 9 | log4j.logger.org.apache=INFO 10 | log4j.logger.java.sql.Connection=DEBUG 11 | log4j.logger.java.sql.Statement=DEBUG 12 | log4j.logger.java.sql.PreparedStatement=DEBUG -------------------------------------------------------------------------------- /src/proxy.config: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 14 | 16 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/spring-mybatis.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | com.pure.service.* 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /src/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | --------------------------------------------------------------------------------