Compare commits
No commits in common. 'main' and 'dev' have entirely different histories.
@ -0,0 +1 @@
|
||||
Subproject commit 29163f9d6921087c0f9b9749428924f613e09013
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="true" />
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="zongse-springboot-gouwulingshispr97023" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
<component name="JavacSettings">
|
||||
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
||||
<module name="zongse-springboot-gouwulingshispr97023" options="-parameters" />
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
</profile>
|
||||
</component>
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
|
||||
</project>
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RunConfigurationProducerService">
|
||||
<option name="ignoredProducers">
|
||||
<set>
|
||||
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="1d20b2c7-e307-49db-bc7b-23c2d54fd579" name="Changes" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="ProjectId" id="2hWpDEIMIdIGPhOySqQEIuJ9OxC" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="autoscrollFromSource" value="true" />
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
<option name="showMembers" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="RequestMappingsPanelOrder0" value="0" />
|
||||
<property name="RequestMappingsPanelOrder1" value="1" />
|
||||
<property name="RequestMappingsPanelWidth0" value="75" />
|
||||
<property name="RequestMappingsPanelWidth1" value="75" />
|
||||
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/../../study/ee/snackshop-master" />
|
||||
<property name="node.js.detected.package.eslint" value="true" />
|
||||
<property name="node.js.detected.package.standard" value="true" />
|
||||
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
||||
<property name="node.js.selected.package.standard" value="" />
|
||||
<property name="nodejs_package_manager_path" value="npm" />
|
||||
<property name="vue.rearranger.settings.migration" value="true" />
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="SpringbootApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
|
||||
<module name="zongse-springboot-gouwulingshispr97023" />
|
||||
<option name="SPRING_BOOT_MAIN_CLASS" value="com.SpringbootApplication" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="1d20b2c7-e307-49db-bc7b-23c2d54fd579" name="Changes" comment="" />
|
||||
<created>1717719574004</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1717719574004</updated>
|
||||
<workItem from="1717719579701" duration="39000" />
|
||||
<workItem from="1717720247955" duration="1505000" />
|
||||
<workItem from="1718085390289" duration="972000" />
|
||||
<workItem from="1718086429258" duration="1521000" />
|
||||
<workItem from="1718283623585" duration="782000" />
|
||||
<workItem from="1718324501823" duration="274000" />
|
||||
<workItem from="1718324824410" duration="357000" />
|
||||
<workItem from="1719125588838" duration="1049000" />
|
||||
<workItem from="1719127240717" duration="5397000" />
|
||||
<workItem from="1719135616598" duration="13834000" />
|
||||
<workItem from="1719152664699" duration="638000" />
|
||||
<workItem from="1719182324621" duration="355000" />
|
||||
<workItem from="1719281546513" duration="407000" />
|
||||
<workItem from="1729145080185" duration="356000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="web" name="Web">
|
||||
<configuration>
|
||||
<webroots>
|
||||
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
||||
</webroots>
|
||||
<sourceRoots>
|
||||
<root url="file://$MODULE_DIR$/src/main/java" />
|
||||
<root url="file://$MODULE_DIR$/src/main/resources" />
|
||||
</sourceRoots>
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="Spring" name="Spring">
|
||||
<configuration />
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/${project.build.directory}/classes" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/${project.build.directory}/test-classes" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.12.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.12.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.10.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.10.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.10.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.10.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.18.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.31" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.31" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.31" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-thymeleaf:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf:3.0.11.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.attoparser:attoparser:2.0.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.unbescape:unbescape:1.1.6.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.4.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.2.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.1.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:2.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:druid:1.1.0" level="project" />
|
||||
<orderEntry type="module-library">
|
||||
<library name="Maven: com.alibaba:jconsole:1.8.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../../Program Files/java/jdk1.8.0_141/jre/../lib/jconsole.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library">
|
||||
<library name="Maven: com.alibaba:tools:1.8.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../../Program Files/java/jdk1.8.0_141/jre/../lib/tools.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: mysql:mysql-connector-java:8.0.19" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.9.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.20" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.20" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.10.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.9.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.9.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.9.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:guava:20.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.9.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.9" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.53" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.8.16" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: jakarta.activation:jakarta.activation-api:1.2.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter:5.5.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.5.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.5.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-params:5.5.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.5.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.5.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-junit-jupiter:3.1.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.13.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest:2.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.8" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.10.8" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:2.6" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.6.3" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,43 @@
|
||||
package com;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 项目启动类
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.dao")
|
||||
public class SpringbootApplication extends SpringBootServletInitializer {
|
||||
|
||||
private static Logger log = LoggerFactory.getLogger(SpringbootApplication.class);
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
ApplicationContext context = SpringApplication.run(SpringbootApplication.class);
|
||||
Environment env = context.getEnvironment();
|
||||
log.info("====================================================================");
|
||||
log.info("项目版本: {}", env.getProperty("project.version"));
|
||||
log.info("启动环境: {}", env.getProperty("project.env"));
|
||||
log.info("启动端口: {}", env.getProperty("server.port"));
|
||||
log.info("日志等级: {}", env.getProperty("logback.level"));
|
||||
log.info("日志Appender: {}", env.getProperty("logback.appender"));
|
||||
log.info("Startup complete ...");
|
||||
log.info("====================================================================");
|
||||
Runtime.getRuntime().exec("cmd /c start http://localhost:" + env.getProperty("server.port") +env.getProperty("server.servlet.context-path")+"/front/dist/index.html");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||||
return builder.sources(SpringbootApplication.class);
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 忽略Token验证
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface IgnoreAuth {
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.config;
|
||||
|
||||
import com.interceptor.AuthorizationInterceptor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
/**
|
||||
* @ClassName InterceptorConfig
|
||||
* @Description 拦截器配置
|
||||
*/
|
||||
@Configuration
|
||||
public class InterceptorConfig implements WebMvcConfigurer {
|
||||
@Autowired
|
||||
private AuthorizationInterceptor authorizationInterceptor;
|
||||
|
||||
/**
|
||||
* 拦截器配置
|
||||
* @param registry
|
||||
*/
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(authorizationInterceptor).addPathPatterns("/**").excludePathPatterns("/static/**");;
|
||||
}
|
||||
|
||||
/**
|
||||
* 静态资源拦截处理
|
||||
* @param registry
|
||||
*/
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
registry.addResourceHandler("/**")
|
||||
.addResourceLocations("classpath:/resources/")
|
||||
.addResourceLocations("classpath:/static/")
|
||||
.addResourceLocations("classpath:/admin/")
|
||||
.addResourceLocations("classpath:/front/")
|
||||
.addResourceLocations("classpath:/qian/")
|
||||
.addResourceLocations("classpath:/public/");
|
||||
}
|
||||
}
|
@ -0,0 +1,330 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DingdanController
|
||||
* @Description 订单模块控制层
|
||||
*/
|
||||
@RequestMapping("dingdan")
|
||||
@RestController
|
||||
public class DingdanController {
|
||||
|
||||
@Autowired
|
||||
private DingdanService dingdanService;
|
||||
|
||||
@Autowired
|
||||
private GouwucheService gouwucheService;
|
||||
|
||||
@Autowired
|
||||
private ShangpinService shangpinService;
|
||||
|
||||
@Autowired
|
||||
private DingdanxiangService dingdanxiangService;
|
||||
|
||||
//前台-根据条件获取订单列表分页数据接口
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Dingdan> manaQian(Dingdan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdan> dingdanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的订单列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Dingdan> manaMyQian(Dingdan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdan> dingdanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取订单图片列表分页数据接口
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Dingdan> manaQianTp(Dingdan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdan> dingdanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//前台-订单详情
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Dingdan> detail(@PathVariable("id") Integer id) {
|
||||
Dingdan info = dingdanService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-订单添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Dingdan req, HttpSession session, String shangPinId) {
|
||||
Users users = (Users) session.getAttribute("users");
|
||||
List<Gouwuche> gouwucheList = new ArrayList<>();
|
||||
if (null != users && null != users.getId()) {
|
||||
if (null == shangPinId || shangPinId.equals("0")) {
|
||||
//从购物车里提交订单下单
|
||||
Gouwuche gouwuche = new Gouwuche();
|
||||
gouwuche.setUsersid(users.getId());
|
||||
gouwucheList = gouwucheService.find(gouwuche);
|
||||
}else {
|
||||
//商品详情页里直接购买下单
|
||||
Integer shangpinid = cn.hutool.core.convert.Convert.toInt(shangPinId);
|
||||
Gouwuche gouwuche = new Gouwuche();
|
||||
gouwuche.setShangpinid(shangpinid);
|
||||
gouwuche.setId(0);
|
||||
//直接购买时购买数量为1
|
||||
gouwuche.setGoumaishuliang(1);
|
||||
gouwucheList.add(gouwuche);
|
||||
}
|
||||
if (gouwucheList.size() == 0) {
|
||||
return ApiResponse.failed("请先将商品添加到购物车再提交订单!");
|
||||
} else {
|
||||
for (Gouwuche info : gouwucheList) {
|
||||
Integer shangpinid = info.getShangpinid();
|
||||
if (null == shangpinid || shangpinid == 0) {
|
||||
return ApiResponse.failed("购物车里的商品数据异常!");
|
||||
}
|
||||
Integer goumaishuliang = info.getGoumaishuliang();
|
||||
//库存判断
|
||||
Shangpin shangpin = shangpinService.findById(shangpinid);
|
||||
if (null != shangpin) {
|
||||
Integer kucunshuliang = shangpin.getKucunshuliang();
|
||||
//判断库存是否大于或等于订单数量
|
||||
if (kucunshuliang < goumaishuliang) {
|
||||
return ApiResponse.failed("购物车里的商品库存不足,请修正后再提交!");
|
||||
}
|
||||
} else {
|
||||
return ApiResponse.failed("购物车里的商品不存在!");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return ApiResponse.failed("请登陆后再操作!");
|
||||
}
|
||||
int result = dingdanService.saveOrUpdate(req);
|
||||
//保存订单项数据、更新商品表数据以及删除购物车数据
|
||||
for (Gouwuche info : gouwucheList) {
|
||||
Integer shangpinid = info.getShangpinid();
|
||||
Integer goumaishuliang = info.getGoumaishuliang();
|
||||
|
||||
//保存订单项数据
|
||||
Dingdanxiang dingdanxiang = new Dingdanxiang();
|
||||
dingdanxiang.setShangpinid(shangpinid);
|
||||
dingdanxiang.setGoumaishuliang(goumaishuliang);
|
||||
dingdanxiang.setUsersid(users.getId());
|
||||
dingdanxiang.setDingdanid(result);
|
||||
dingdanxiangService.saveOrUpdate(dingdanxiang);
|
||||
|
||||
//更新商品表数据
|
||||
Shangpin shangpin = shangpinService.findById(shangpinid);
|
||||
Integer kucunshuliang = shangpin.getKucunshuliang();
|
||||
Integer xiaoshoushuliang = shangpin.getXiaoshoushuliang();
|
||||
//商品库存数量减去购买数量
|
||||
shangpin.setKucunshuliang(kucunshuliang - goumaishuliang);
|
||||
//商品销售数量加上购买数量
|
||||
shangpin.setXiaoshoushuliang(xiaoshoushuliang + goumaishuliang);
|
||||
shangpinService.saveOrUpdate(shangpin);
|
||||
|
||||
//删除购物车数据
|
||||
gouwucheService.deleteById(info.getId());
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Dingdan> mana(Dingdan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdan> dingdanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Dingdan> manaMy(Dingdan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdan> dingdanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Dingdan> chakan(Dingdan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdan> dingdanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Dingdan> chakanMy(Dingdan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdan> dingdanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//后台-订单详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Dingdan> info(@PathVariable("id") Integer id) {
|
||||
Dingdan info = dingdanService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-订单添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Dingdan req, HttpSession session, String shangPinId) {
|
||||
Users users = (Users) session.getAttribute("users");
|
||||
List<Gouwuche> gouwucheList = new ArrayList<>();
|
||||
if (null != users && null != users.getId()) {
|
||||
if (null == shangPinId || shangPinId.equals("0")) {
|
||||
//从购物车里提交订单下单
|
||||
Gouwuche gouwuche = new Gouwuche();
|
||||
gouwuche.setUsersid(users.getId());
|
||||
gouwucheList = gouwucheService.find(gouwuche);
|
||||
}else {
|
||||
//商品详情页里直接购买下单
|
||||
Integer shangpinid = cn.hutool.core.convert.Convert.toInt(shangPinId);
|
||||
Gouwuche gouwuche = new Gouwuche();
|
||||
gouwuche.setShangpinid(shangpinid);
|
||||
gouwuche.setId(0);
|
||||
//直接购买时购买数量为1
|
||||
gouwuche.setGoumaishuliang(1);
|
||||
gouwucheList.add(gouwuche);
|
||||
}
|
||||
if (gouwucheList.size() == 0) {
|
||||
return ApiResponse.failed("请先将商品添加到购物车再提交订单!");
|
||||
} else {
|
||||
for (Gouwuche info : gouwucheList) {
|
||||
Integer shangpinid = info.getShangpinid();
|
||||
if (null == shangpinid || shangpinid == 0) {
|
||||
return ApiResponse.failed("购物车里的商品数据异常!");
|
||||
}
|
||||
Integer goumaishuliang = info.getGoumaishuliang();
|
||||
//库存判断
|
||||
Shangpin shangpin = shangpinService.findById(shangpinid);
|
||||
if (null != shangpin) {
|
||||
Integer kucunshuliang = shangpin.getKucunshuliang();
|
||||
//判断库存是否大于或等于订单数量
|
||||
if (kucunshuliang < goumaishuliang) {
|
||||
return ApiResponse.failed("购物车里的商品库存不足,请修正后再提交!");
|
||||
}
|
||||
} else {
|
||||
return ApiResponse.failed("购物车里的商品不存在!");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return ApiResponse.failed("请登陆后再操作!");
|
||||
}
|
||||
int result = dingdanService.saveOrUpdate(req);
|
||||
//保存订单项数据、更新商品表数据以及删除购物车数据
|
||||
for (Gouwuche info : gouwucheList) {
|
||||
Integer shangpinid = info.getShangpinid();
|
||||
Integer goumaishuliang = info.getGoumaishuliang();
|
||||
|
||||
//保存订单项数据
|
||||
Dingdanxiang dingdanxiang = new Dingdanxiang();
|
||||
dingdanxiang.setShangpinid(shangpinid);
|
||||
dingdanxiang.setGoumaishuliang(goumaishuliang);
|
||||
dingdanxiang.setUsersid(users.getId());
|
||||
dingdanxiang.setDingdanid(result);
|
||||
dingdanxiangService.saveOrUpdate(dingdanxiang);
|
||||
|
||||
//更新商品表数据
|
||||
Shangpin shangpin = shangpinService.findById(shangpinid);
|
||||
Integer kucunshuliang = shangpin.getKucunshuliang();
|
||||
Integer xiaoshoushuliang = shangpin.getXiaoshoushuliang();
|
||||
//商品库存数量减去购买数量
|
||||
shangpin.setKucunshuliang(kucunshuliang - goumaishuliang);
|
||||
//商品销售数量加上购买数量
|
||||
shangpin.setXiaoshoushuliang(xiaoshoushuliang + goumaishuliang);
|
||||
shangpinService.saveOrUpdate(shangpin);
|
||||
|
||||
//删除购物车数据
|
||||
gouwucheService.deleteById(info.getId());
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//订单删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = dingdanService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//订单修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Dingdan req) {
|
||||
int result = dingdanService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//根据条件获取订单总金额接口
|
||||
@RequestMapping("/totalamount")
|
||||
public ApiResponse<Integer> getTotalamount(Dingdan req) {
|
||||
//计算订单总金额
|
||||
Integer totalAmount = 0;
|
||||
List<Dingdan> dingdanList = dingdanService.find(req);
|
||||
for (Dingdan dingdan : dingdanList) {
|
||||
totalAmount += dingdan.getJine();
|
||||
}
|
||||
return ApiResponse.success(totalAmount);
|
||||
}
|
||||
|
||||
//获取所有订单数据接口
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Dingdan> dingdanAll() {
|
||||
List<Dingdan> dingdanList = dingdanService.findAll();
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取订单数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Dingdan> dingdanSearch(Dingdan req) {
|
||||
List<Dingdan> dingdanList = dingdanService.find(req);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取订单数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Dingdan> dingdanSearchByEqualTo(Dingdan req) {
|
||||
List<Dingdan> dingdanList = dingdanService.findByEqualTo(req);
|
||||
return ApiResponse.success(dingdanList);
|
||||
}
|
||||
|
||||
//按条件查询订单分页数据方法(模糊匹配查询)
|
||||
private PageData<Dingdan> getPageList(Dingdan req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dingdan> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Dingdan> dingdanList = dingdanService.findPage(pageWrap);
|
||||
return dingdanList;
|
||||
}
|
||||
|
||||
//按条件查询订单分页数据方法(完全匹配查询)
|
||||
private PageData<Dingdan> getPageListByEqualTo(Dingdan req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dingdan> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Dingdan> dingdanList = dingdanService.findPageByEqualTo(pageWrap);
|
||||
return dingdanList;
|
||||
}
|
||||
|
||||
//获取订单查询用户数据搜索条件
|
||||
private PageWrap<Dingdan> getPageWrap(Dingdan req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dingdan> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DingdanxiangController
|
||||
* @Description 订单项模块控制层
|
||||
*/
|
||||
@RequestMapping("dingdanxiang")
|
||||
@RestController
|
||||
public class DingdanxiangController {
|
||||
|
||||
@Autowired
|
||||
private DingdanxiangService dingdanxiangService;
|
||||
|
||||
//前台-根据条件获取订单项列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Dingdanxiang> manaQian(Dingdanxiang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdanxiang> dingdanxiangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的订单项列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Dingdanxiang> manaMyQian(Dingdanxiang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdanxiang> dingdanxiangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取订单项图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Dingdanxiang> manaQianTp(Dingdanxiang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdanxiang> dingdanxiangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//前台-订单项详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Dingdanxiang> detail(@PathVariable("id") Integer id) {
|
||||
Dingdanxiang info = dingdanxiangService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-订单项添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Dingdanxiang req) {
|
||||
int result = dingdanxiangService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单项管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Dingdanxiang> mana(Dingdanxiang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdanxiang> dingdanxiangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单项管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Dingdanxiang> manaMy(Dingdanxiang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdanxiang> dingdanxiangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单项查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Dingdanxiang> chakan(Dingdanxiang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdanxiang> dingdanxiangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取订单项查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Dingdanxiang> chakanMy(Dingdanxiang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dingdanxiang> dingdanxiangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//后台-订单项详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Dingdanxiang> info(@PathVariable("id") Integer id) {
|
||||
Dingdanxiang info = dingdanxiangService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-订单项添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Dingdanxiang req) {
|
||||
int result = dingdanxiangService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//订单项删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = dingdanxiangService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//订单项修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Dingdanxiang req) {
|
||||
int result = dingdanxiangService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有订单项数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Dingdanxiang> dingdanxiangAll() {
|
||||
List<Dingdanxiang> dingdanxiangList = dingdanxiangService.findAll();
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取订单项数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Dingdanxiang> dingdanxiangSearch(Dingdanxiang req) {
|
||||
List<Dingdanxiang> dingdanxiangList = dingdanxiangService.find(req);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取订单项数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Dingdanxiang> dingdanxiangSearchByEqualTo(Dingdanxiang req) {
|
||||
List<Dingdanxiang> dingdanxiangList = dingdanxiangService.findByEqualTo(req);
|
||||
return ApiResponse.success(dingdanxiangList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询订单项分页数据方法(模糊匹配查询)
|
||||
private PageData<Dingdanxiang> getPageList(Dingdanxiang req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dingdanxiang> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Dingdanxiang> dingdanxiangList = dingdanxiangService.findPage(pageWrap);
|
||||
return dingdanxiangList;
|
||||
}
|
||||
|
||||
//按条件查询订单项分页数据方法(完全匹配查询)
|
||||
private PageData<Dingdanxiang> getPageListByEqualTo(Dingdanxiang req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dingdanxiang> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Dingdanxiang> dingdanxiangList = dingdanxiangService.findPageByEqualTo(pageWrap);
|
||||
return dingdanxiangList;
|
||||
}
|
||||
|
||||
//获取订单项查询数据搜索条件
|
||||
private PageWrap<Dingdanxiang> getPageWrap(Dingdanxiang req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dingdanxiang> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DxController
|
||||
* @Description 信息介绍模块控制层
|
||||
*/
|
||||
@RequestMapping("dx")
|
||||
@RestController
|
||||
public class DxController {
|
||||
|
||||
@Autowired
|
||||
private DxService dxService;
|
||||
|
||||
//前台-根据条件获取信息介绍列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Dx> manaQian(Dx req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dx> dxList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的信息介绍列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Dx> manaMyQian(Dx req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dx> dxList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取信息介绍图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Dx> manaQianTp(Dx req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dx> dxList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//前台-信息介绍详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Dx> detail(@PathVariable("id") Integer id) {
|
||||
Dx info = dxService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-信息介绍添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Dx req) {
|
||||
int result = dxService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取信息介绍管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Dx> mana(Dx req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dx> dxList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取信息介绍管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Dx> manaMy(Dx req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dx> dxList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取信息介绍查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Dx> chakan(Dx req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dx> dxList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取信息介绍查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Dx> chakanMy(Dx req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Dx> dxList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//后台-信息介绍详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Dx> info(@PathVariable("id") Integer id) {
|
||||
Dx info = dxService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-信息介绍添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Dx req) {
|
||||
int result = dxService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//信息介绍删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = dxService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//信息介绍修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Dx req) {
|
||||
int result = dxService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有信息介绍数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Dx> dxAll() {
|
||||
List<Dx> dxList = dxService.findAll();
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取信息介绍数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Dx> dxSearch(Dx req) {
|
||||
List<Dx> dxList = dxService.find(req);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取信息介绍数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Dx> dxSearchByEqualTo(Dx req) {
|
||||
List<Dx> dxList = dxService.findByEqualTo(req);
|
||||
return ApiResponse.success(dxList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询信息介绍分页数据方法(模糊匹配查询)
|
||||
private PageData<Dx> getPageList(Dx req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dx> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Dx> dxList = dxService.findPage(pageWrap);
|
||||
return dxList;
|
||||
}
|
||||
|
||||
//按条件查询信息介绍分页数据方法(完全匹配查询)
|
||||
private PageData<Dx> getPageListByEqualTo(Dx req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dx> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Dx> dxList = dxService.findPageByEqualTo(pageWrap);
|
||||
return dxList;
|
||||
}
|
||||
|
||||
//获取信息介绍查询数据搜索条件
|
||||
private PageWrap<Dx> getPageWrap(Dx req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Dx> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName GonggaoController
|
||||
* @Description 公告模块控制层
|
||||
*/
|
||||
@RequestMapping("gonggao")
|
||||
@RestController
|
||||
public class GonggaoController {
|
||||
|
||||
@Autowired
|
||||
private GonggaoService gonggaoService;
|
||||
|
||||
//前台-根据条件获取公告列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Gonggao> manaQian(Gonggao req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gonggao> gonggaoList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的公告列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Gonggao> manaMyQian(Gonggao req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gonggao> gonggaoList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取公告图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Gonggao> manaQianTp(Gonggao req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gonggao> gonggaoList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//前台-公告详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Gonggao> detail(@PathVariable("id") Integer id) {
|
||||
Gonggao info = gonggaoService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-公告添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Gonggao req) {
|
||||
int result = gonggaoService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取公告管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Gonggao> mana(Gonggao req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gonggao> gonggaoList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取公告管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Gonggao> manaMy(Gonggao req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gonggao> gonggaoList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取公告查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Gonggao> chakan(Gonggao req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gonggao> gonggaoList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取公告查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Gonggao> chakanMy(Gonggao req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gonggao> gonggaoList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//后台-公告详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Gonggao> info(@PathVariable("id") Integer id) {
|
||||
Gonggao info = gonggaoService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-公告添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Gonggao req) {
|
||||
int result = gonggaoService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//公告删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = gonggaoService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//公告修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Gonggao req) {
|
||||
int result = gonggaoService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有公告数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Gonggao> gonggaoAll() {
|
||||
List<Gonggao> gonggaoList = gonggaoService.findAll();
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取公告数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Gonggao> gonggaoSearch(Gonggao req) {
|
||||
List<Gonggao> gonggaoList = gonggaoService.find(req);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取公告数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Gonggao> gonggaoSearchByEqualTo(Gonggao req) {
|
||||
List<Gonggao> gonggaoList = gonggaoService.findByEqualTo(req);
|
||||
return ApiResponse.success(gonggaoList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询公告分页数据方法(模糊匹配查询)
|
||||
private PageData<Gonggao> getPageList(Gonggao req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Gonggao> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Gonggao> gonggaoList = gonggaoService.findPage(pageWrap);
|
||||
return gonggaoList;
|
||||
}
|
||||
|
||||
//按条件查询公告分页数据方法(完全匹配查询)
|
||||
private PageData<Gonggao> getPageListByEqualTo(Gonggao req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Gonggao> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Gonggao> gonggaoList = gonggaoService.findPageByEqualTo(pageWrap);
|
||||
return gonggaoList;
|
||||
}
|
||||
|
||||
//获取公告查询数据搜索条件
|
||||
private PageWrap<Gonggao> getPageWrap(Gonggao req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Gonggao> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,244 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName GouwucheController
|
||||
* @Description 购物车模块控制层
|
||||
*/
|
||||
@RequestMapping("gouwuche")
|
||||
@RestController
|
||||
public class GouwucheController {
|
||||
|
||||
@Autowired
|
||||
private GouwucheService gouwucheService;
|
||||
|
||||
@Autowired
|
||||
private ShangpinService shangpinService;
|
||||
|
||||
//前台-根据条件获取购物车列表分页数据接口
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Gouwuche> manaQian(Gouwuche req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gouwuche> gouwucheList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的购物车列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Gouwuche> manaMyQian(Gouwuche req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gouwuche> gouwucheList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取购物车图片列表分页数据接口
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Gouwuche> manaQianTp(Gouwuche req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gouwuche> gouwucheList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//前台-购物车详情
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Gouwuche> detail(@PathVariable("id") Integer id) {
|
||||
Gouwuche info = gouwucheService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-购物车添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Gouwuche req, HttpSession session) {
|
||||
//判断商品是否已存在购物车
|
||||
Users users = (Users) session.getAttribute("users");
|
||||
if (null != req && null != req.getShangpinid() && null != users && null != users.getId()) {
|
||||
Gouwuche instance = new Gouwuche();
|
||||
instance.setUsersid(users.getId());
|
||||
instance.setShangpinid(req.getShangpinid());
|
||||
List<Gouwuche> gouwucheList = gouwucheService.find(instance);
|
||||
if (gouwucheList.size() > 0) {
|
||||
//我的购物车已有此商品,则增加数量
|
||||
Gouwuche gouwuche = gouwucheList.get(0);
|
||||
Integer ishuliang = gouwuche.getGoumaishuliang();
|
||||
Integer ishuliangadd = req.getGoumaishuliang();
|
||||
req.setId(gouwuche.getId());
|
||||
req.setGoumaishuliang((ishuliang + ishuliangadd));
|
||||
}
|
||||
} else {
|
||||
return ApiResponse.failed("数据不存在");
|
||||
}
|
||||
int result = gouwucheService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取购物车管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Gouwuche> mana(Gouwuche req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gouwuche> gouwucheList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取购物车管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Gouwuche> manaMy(Gouwuche req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gouwuche> gouwucheList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取购物车查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Gouwuche> chakan(Gouwuche req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gouwuche> gouwucheList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取购物车查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Gouwuche> chakanMy(Gouwuche req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Gouwuche> gouwucheList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//后台-购物车详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Gouwuche> info(@PathVariable("id") Integer id) {
|
||||
Gouwuche info = gouwucheService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-购物车添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Gouwuche req, HttpSession session) {
|
||||
//判断商品是否已存在购物车
|
||||
Users users = (Users) session.getAttribute("users");
|
||||
if (null != req && null != req.getShangpinid() && null != users && null != users.getId()) {
|
||||
Gouwuche instance = new Gouwuche();
|
||||
instance.setUsersid(users.getId());
|
||||
instance.setShangpinid(req.getShangpinid());
|
||||
List<Gouwuche> gouwucheList = gouwucheService.find(instance);
|
||||
if (gouwucheList.size() > 0) {
|
||||
//我的购物车已有此商品,则增加数量
|
||||
Gouwuche gouwuche = gouwucheList.get(0);
|
||||
Integer ishuliang = gouwuche.getGoumaishuliang();
|
||||
Integer ishuliangadd = req.getGoumaishuliang();
|
||||
req.setId(gouwuche.getId());
|
||||
req.setGoumaishuliang((ishuliang + ishuliangadd));
|
||||
}
|
||||
} else {
|
||||
return ApiResponse.failed("数据不存在");
|
||||
}
|
||||
int result = gouwucheService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//购物车删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = gouwucheService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//购物车修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Gouwuche req) {
|
||||
int result = gouwucheService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有购物车数据接口
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Gouwuche> gouwucheAll() {
|
||||
List<Gouwuche> gouwucheList = gouwucheService.findAll();
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//根据条件获取订单总金额接口
|
||||
@RequestMapping("/totalamount")
|
||||
public ApiResponse<Integer> getTotalamount(Gouwuche req) {
|
||||
//计算购物车总金额
|
||||
Integer totalAmount = 0;
|
||||
List<Gouwuche> gouwucheList = gouwucheService.find(req);
|
||||
for (Gouwuche gouwuche : gouwucheList) {
|
||||
Integer shangpinid = gouwuche.getShangpinid();
|
||||
if (null != shangpinid && shangpinid > 0) {
|
||||
Shangpin shangpin = shangpinService.findById(shangpinid);
|
||||
if (null != shangpin) {
|
||||
totalAmount += gouwuche.getGoumaishuliang() * shangpin.getJiage();
|
||||
}
|
||||
}
|
||||
}
|
||||
return ApiResponse.success(totalAmount);
|
||||
}
|
||||
|
||||
//购物车提交订单
|
||||
@PostMapping("/submitdingdan")
|
||||
@ResponseBody
|
||||
public ApiResponse<Integer> submitDingdan(@RequestBody(required = false) List<Gouwuche> gouwucheList, HttpSession session) {
|
||||
Users users = (Users) session.getAttribute("users");
|
||||
if (null != gouwucheList && gouwucheList.size() > 0 && null != users && null != users.getId()) {
|
||||
for (Gouwuche gouwuche : gouwucheList) {
|
||||
if (null != gouwuche.getId()) {
|
||||
gouwucheService.saveOrUpdate(gouwuche);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return ApiResponse.failed("数据不存在");
|
||||
}
|
||||
|
||||
return ApiResponse.success(1);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取购物车数据接口
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Gouwuche> gouwucheSearch(Gouwuche req) {
|
||||
List<Gouwuche> gouwucheList = gouwucheService.find(req);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取购物车数据接口
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Gouwuche> gouwucheSearchByEqualTo(Gouwuche req) {
|
||||
List<Gouwuche> gouwucheList = gouwucheService.findByEqualTo(req);
|
||||
return ApiResponse.success(gouwucheList);
|
||||
}
|
||||
|
||||
//按条件查询购物车分页数据方法(模糊匹配查询)
|
||||
private PageData<Gouwuche> getPageList(Gouwuche req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Gouwuche> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Gouwuche> gouwucheList = gouwucheService.findPage(pageWrap);
|
||||
return gouwucheList;
|
||||
}
|
||||
|
||||
//按条件查询购物车分页数据方法(完全匹配查询)
|
||||
private PageData<Gouwuche> getPageListByEqualTo(Gouwuche req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Gouwuche> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Gouwuche> gouwucheList = gouwucheService.findPageByEqualTo(pageWrap);
|
||||
return gouwucheList;
|
||||
}
|
||||
|
||||
//获取购物车查询数据搜索条件
|
||||
private PageWrap<Gouwuche> getPageWrap(Gouwuche req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Gouwuche> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName LianjieController
|
||||
* @Description 友情链接模块控制层
|
||||
*/
|
||||
@RequestMapping("lianjie")
|
||||
@RestController
|
||||
public class LianjieController {
|
||||
|
||||
@Autowired
|
||||
private LianjieService lianjieService;
|
||||
|
||||
//前台-根据条件获取友情链接列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Lianjie> manaQian(Lianjie req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lianjie> lianjieList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的友情链接列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Lianjie> manaMyQian(Lianjie req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lianjie> lianjieList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取友情链接图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Lianjie> manaQianTp(Lianjie req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lianjie> lianjieList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//前台-友情链接详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Lianjie> detail(@PathVariable("id") Integer id) {
|
||||
Lianjie info = lianjieService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-友情链接添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Lianjie req) {
|
||||
int result = lianjieService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取友情链接管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Lianjie> mana(Lianjie req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lianjie> lianjieList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取友情链接管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Lianjie> manaMy(Lianjie req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lianjie> lianjieList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取友情链接查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Lianjie> chakan(Lianjie req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lianjie> lianjieList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取友情链接查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Lianjie> chakanMy(Lianjie req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lianjie> lianjieList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//后台-友情链接详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Lianjie> info(@PathVariable("id") Integer id) {
|
||||
Lianjie info = lianjieService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-友情链接添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Lianjie req) {
|
||||
int result = lianjieService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//友情链接删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = lianjieService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//友情链接修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Lianjie req) {
|
||||
int result = lianjieService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有友情链接数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Lianjie> lianjieAll() {
|
||||
List<Lianjie> lianjieList = lianjieService.findAll();
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取友情链接数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Lianjie> lianjieSearch(Lianjie req) {
|
||||
List<Lianjie> lianjieList = lianjieService.find(req);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取友情链接数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Lianjie> lianjieSearchByEqualTo(Lianjie req) {
|
||||
List<Lianjie> lianjieList = lianjieService.findByEqualTo(req);
|
||||
return ApiResponse.success(lianjieList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询友情链接分页数据方法(模糊匹配查询)
|
||||
private PageData<Lianjie> getPageList(Lianjie req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Lianjie> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Lianjie> lianjieList = lianjieService.findPage(pageWrap);
|
||||
return lianjieList;
|
||||
}
|
||||
|
||||
//按条件查询友情链接分页数据方法(完全匹配查询)
|
||||
private PageData<Lianjie> getPageListByEqualTo(Lianjie req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Lianjie> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Lianjie> lianjieList = lianjieService.findPageByEqualTo(pageWrap);
|
||||
return lianjieList;
|
||||
}
|
||||
|
||||
//获取友情链接查询数据搜索条件
|
||||
private PageWrap<Lianjie> getPageWrap(Lianjie req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Lianjie> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName LiuyanController
|
||||
* @Description 留言反馈模块控制层
|
||||
*/
|
||||
@RequestMapping("liuyan")
|
||||
@RestController
|
||||
public class LiuyanController {
|
||||
|
||||
@Autowired
|
||||
private LiuyanService liuyanService;
|
||||
|
||||
//前台-根据条件获取留言反馈列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Liuyan> manaQian(Liuyan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Liuyan> liuyanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的留言反馈列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Liuyan> manaMyQian(Liuyan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Liuyan> liuyanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取留言反馈图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Liuyan> manaQianTp(Liuyan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Liuyan> liuyanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//前台-留言反馈详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Liuyan> detail(@PathVariable("id") Integer id) {
|
||||
Liuyan info = liuyanService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-留言反馈添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Liuyan req) {
|
||||
int result = liuyanService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取留言反馈管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Liuyan> mana(Liuyan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Liuyan> liuyanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取留言反馈管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Liuyan> manaMy(Liuyan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Liuyan> liuyanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取留言反馈查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Liuyan> chakan(Liuyan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Liuyan> liuyanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取留言反馈查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Liuyan> chakanMy(Liuyan req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Liuyan> liuyanList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//后台-留言反馈详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Liuyan> info(@PathVariable("id") Integer id) {
|
||||
Liuyan info = liuyanService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-留言反馈添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Liuyan req) {
|
||||
int result = liuyanService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//留言反馈删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = liuyanService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//留言反馈修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Liuyan req) {
|
||||
int result = liuyanService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有留言反馈数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Liuyan> liuyanAll() {
|
||||
List<Liuyan> liuyanList = liuyanService.findAll();
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取留言反馈数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Liuyan> liuyanSearch(Liuyan req) {
|
||||
List<Liuyan> liuyanList = liuyanService.find(req);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取留言反馈数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Liuyan> liuyanSearchByEqualTo(Liuyan req) {
|
||||
List<Liuyan> liuyanList = liuyanService.findByEqualTo(req);
|
||||
return ApiResponse.success(liuyanList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询留言反馈分页数据方法(模糊匹配查询)
|
||||
private PageData<Liuyan> getPageList(Liuyan req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Liuyan> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Liuyan> liuyanList = liuyanService.findPage(pageWrap);
|
||||
return liuyanList;
|
||||
}
|
||||
|
||||
//按条件查询留言反馈分页数据方法(完全匹配查询)
|
||||
private PageData<Liuyan> getPageListByEqualTo(Liuyan req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Liuyan> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Liuyan> liuyanList = liuyanService.findPageByEqualTo(pageWrap);
|
||||
return liuyanList;
|
||||
}
|
||||
|
||||
//获取留言反馈查询数据搜索条件
|
||||
private PageWrap<Liuyan> getPageWrap(Liuyan req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Liuyan> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName LunboController
|
||||
* @Description 轮播图模块控制层
|
||||
*/
|
||||
@RequestMapping("lunbo")
|
||||
@RestController
|
||||
public class LunboController {
|
||||
|
||||
@Autowired
|
||||
private LunboService lunboService;
|
||||
|
||||
//前台-根据条件获取轮播图列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Lunbo> manaQian(Lunbo req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lunbo> lunboList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的轮播图列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Lunbo> manaMyQian(Lunbo req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lunbo> lunboList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取轮播图图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Lunbo> manaQianTp(Lunbo req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lunbo> lunboList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//前台-轮播图详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Lunbo> detail(@PathVariable("id") Integer id) {
|
||||
Lunbo info = lunboService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-轮播图添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Lunbo req) {
|
||||
int result = lunboService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取轮播图管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Lunbo> mana(Lunbo req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lunbo> lunboList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取轮播图管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Lunbo> manaMy(Lunbo req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lunbo> lunboList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取轮播图查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Lunbo> chakan(Lunbo req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lunbo> lunboList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取轮播图查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Lunbo> chakanMy(Lunbo req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Lunbo> lunboList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//后台-轮播图详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Lunbo> info(@PathVariable("id") Integer id) {
|
||||
Lunbo info = lunboService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-轮播图添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Lunbo req) {
|
||||
int result = lunboService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//轮播图删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = lunboService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//轮播图修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Lunbo req) {
|
||||
int result = lunboService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有轮播图数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Lunbo> lunboAll() {
|
||||
List<Lunbo> lunboList = lunboService.findAll();
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取轮播图数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Lunbo> lunboSearch(Lunbo req) {
|
||||
List<Lunbo> lunboList = lunboService.find(req);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取轮播图数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Lunbo> lunboSearchByEqualTo(Lunbo req) {
|
||||
List<Lunbo> lunboList = lunboService.findByEqualTo(req);
|
||||
return ApiResponse.success(lunboList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询轮播图分页数据方法(模糊匹配查询)
|
||||
private PageData<Lunbo> getPageList(Lunbo req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Lunbo> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Lunbo> lunboList = lunboService.findPage(pageWrap);
|
||||
return lunboList;
|
||||
}
|
||||
|
||||
//按条件查询轮播图分页数据方法(完全匹配查询)
|
||||
private PageData<Lunbo> getPageListByEqualTo(Lunbo req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Lunbo> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Lunbo> lunboList = lunboService.findPageByEqualTo(pageWrap);
|
||||
return lunboList;
|
||||
}
|
||||
|
||||
//获取轮播图查询数据搜索条件
|
||||
private PageWrap<Lunbo> getPageWrap(Lunbo req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Lunbo> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName PingjiaController
|
||||
* @Description 评论模块控制层
|
||||
*/
|
||||
@RequestMapping("pingjia")
|
||||
@RestController
|
||||
public class PingjiaController {
|
||||
|
||||
@Autowired
|
||||
private PingjiaService pingjiaService;
|
||||
|
||||
//前台-根据条件获取评论列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Pingjia> manaQian(Pingjia req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pingjia> pingjiaList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的评论列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Pingjia> manaMyQian(Pingjia req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pingjia> pingjiaList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取评论图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Pingjia> manaQianTp(Pingjia req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pingjia> pingjiaList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//前台-评论详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Pingjia> detail(@PathVariable("id") Integer id) {
|
||||
Pingjia info = pingjiaService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-评论添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Pingjia req) {
|
||||
int result = pingjiaService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取评论管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Pingjia> mana(Pingjia req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pingjia> pingjiaList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取评论管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Pingjia> manaMy(Pingjia req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pingjia> pingjiaList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取评论查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Pingjia> chakan(Pingjia req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pingjia> pingjiaList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取评论查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Pingjia> chakanMy(Pingjia req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pingjia> pingjiaList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//后台-评论详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Pingjia> info(@PathVariable("id") Integer id) {
|
||||
Pingjia info = pingjiaService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-评论添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Pingjia req) {
|
||||
int result = pingjiaService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//评论删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = pingjiaService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//评论修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Pingjia req) {
|
||||
int result = pingjiaService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有评论数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Pingjia> pingjiaAll() {
|
||||
List<Pingjia> pingjiaList = pingjiaService.findAll();
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取评论数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Pingjia> pingjiaSearch(Pingjia req) {
|
||||
List<Pingjia> pingjiaList = pingjiaService.find(req);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取评论数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Pingjia> pingjiaSearchByEqualTo(Pingjia req) {
|
||||
List<Pingjia> pingjiaList = pingjiaService.findByEqualTo(req);
|
||||
return ApiResponse.success(pingjiaList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询评论分页数据方法(模糊匹配查询)
|
||||
private PageData<Pingjia> getPageList(Pingjia req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Pingjia> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Pingjia> pingjiaList = pingjiaService.findPage(pageWrap);
|
||||
return pingjiaList;
|
||||
}
|
||||
|
||||
//按条件查询评论分页数据方法(完全匹配查询)
|
||||
private PageData<Pingjia> getPageListByEqualTo(Pingjia req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Pingjia> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Pingjia> pingjiaList = pingjiaService.findPageByEqualTo(pageWrap);
|
||||
return pingjiaList;
|
||||
}
|
||||
|
||||
//获取评论查询数据搜索条件
|
||||
private PageWrap<Pingjia> getPageWrap(Pingjia req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Pingjia> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName PinleiController
|
||||
* @Description 分类模块控制层
|
||||
*/
|
||||
@RequestMapping("pinlei")
|
||||
@RestController
|
||||
public class PinleiController {
|
||||
|
||||
@Autowired
|
||||
private PinleiService pinleiService;
|
||||
|
||||
//前台-根据条件获取分类列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Pinlei> manaQian(Pinlei req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pinlei> pinleiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的分类列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Pinlei> manaMyQian(Pinlei req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pinlei> pinleiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取分类图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Pinlei> manaQianTp(Pinlei req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pinlei> pinleiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//前台-分类详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Pinlei> detail(@PathVariable("id") Integer id) {
|
||||
Pinlei info = pinleiService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-分类添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Pinlei req) {
|
||||
int result = pinleiService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取分类管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Pinlei> mana(Pinlei req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pinlei> pinleiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取分类管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Pinlei> manaMy(Pinlei req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pinlei> pinleiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取分类查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Pinlei> chakan(Pinlei req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pinlei> pinleiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取分类查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Pinlei> chakanMy(Pinlei req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Pinlei> pinleiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//后台-分类详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Pinlei> info(@PathVariable("id") Integer id) {
|
||||
Pinlei info = pinleiService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-分类添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Pinlei req) {
|
||||
int result = pinleiService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//分类删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = pinleiService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//分类修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Pinlei req) {
|
||||
int result = pinleiService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有分类数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Pinlei> pinleiAll() {
|
||||
List<Pinlei> pinleiList = pinleiService.findAll();
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取分类数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Pinlei> pinleiSearch(Pinlei req) {
|
||||
List<Pinlei> pinleiList = pinleiService.find(req);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取分类数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Pinlei> pinleiSearchByEqualTo(Pinlei req) {
|
||||
List<Pinlei> pinleiList = pinleiService.findByEqualTo(req);
|
||||
return ApiResponse.success(pinleiList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询分类分页数据方法(模糊匹配查询)
|
||||
private PageData<Pinlei> getPageList(Pinlei req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Pinlei> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Pinlei> pinleiList = pinleiService.findPage(pageWrap);
|
||||
return pinleiList;
|
||||
}
|
||||
|
||||
//按条件查询分类分页数据方法(完全匹配查询)
|
||||
private PageData<Pinlei> getPageListByEqualTo(Pinlei req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Pinlei> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Pinlei> pinleiList = pinleiService.findPageByEqualTo(pageWrap);
|
||||
return pinleiList;
|
||||
}
|
||||
|
||||
//获取分类查询数据搜索条件
|
||||
private PageWrap<Pinlei> getPageWrap(Pinlei req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Pinlei> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ShangpinController
|
||||
* @Description 零食模块控制层
|
||||
*/
|
||||
@RequestMapping("shangpin")
|
||||
@RestController
|
||||
public class ShangpinController {
|
||||
|
||||
@Autowired
|
||||
private ShangpinService shangpinService;
|
||||
|
||||
//前台-根据条件获取零食列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Shangpin> manaQian(Shangpin req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shangpin> shangpinList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的零食列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Shangpin> manaMyQian(Shangpin req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shangpin> shangpinList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取零食图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Shangpin> manaQianTp(Shangpin req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shangpin> shangpinList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//前台-零食详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Shangpin> detail(@PathVariable("id") Integer id) {
|
||||
Shangpin info = shangpinService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-零食添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Shangpin req) {
|
||||
int result = shangpinService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取零食管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Shangpin> mana(Shangpin req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shangpin> shangpinList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取零食管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Shangpin> manaMy(Shangpin req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shangpin> shangpinList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取零食查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Shangpin> chakan(Shangpin req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shangpin> shangpinList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取零食查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Shangpin> chakanMy(Shangpin req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shangpin> shangpinList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//后台-零食详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Shangpin> info(@PathVariable("id") Integer id) {
|
||||
Shangpin info = shangpinService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-零食添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Shangpin req) {
|
||||
int result = shangpinService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//零食删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = shangpinService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//零食修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Shangpin req) {
|
||||
int result = shangpinService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有零食数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Shangpin> shangpinAll() {
|
||||
List<Shangpin> shangpinList = shangpinService.findAll();
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取零食数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Shangpin> shangpinSearch(Shangpin req) {
|
||||
List<Shangpin> shangpinList = shangpinService.find(req);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取零食数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Shangpin> shangpinSearchByEqualTo(Shangpin req) {
|
||||
List<Shangpin> shangpinList = shangpinService.findByEqualTo(req);
|
||||
return ApiResponse.success(shangpinList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询零食分页数据方法(模糊匹配查询)
|
||||
private PageData<Shangpin> getPageList(Shangpin req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shangpin> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Shangpin> shangpinList = shangpinService.findPage(pageWrap);
|
||||
return shangpinList;
|
||||
}
|
||||
|
||||
//按条件查询零食分页数据方法(完全匹配查询)
|
||||
private PageData<Shangpin> getPageListByEqualTo(Shangpin req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shangpin> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Shangpin> shangpinList = shangpinService.findPageByEqualTo(pageWrap);
|
||||
return shangpinList;
|
||||
}
|
||||
|
||||
//获取零食查询数据搜索条件
|
||||
private PageWrap<Shangpin> getPageWrap(Shangpin req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shangpin> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ShenqingController
|
||||
* @Description 售后申请模块控制层
|
||||
*/
|
||||
@RequestMapping("shenqing")
|
||||
@RestController
|
||||
public class ShenqingController {
|
||||
|
||||
@Autowired
|
||||
private ShenqingService shenqingService;
|
||||
|
||||
//前台-根据条件获取售后申请列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Shenqing> manaQian(Shenqing req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shenqing> shenqingList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的售后申请列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Shenqing> manaMyQian(Shenqing req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shenqing> shenqingList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取售后申请图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Shenqing> manaQianTp(Shenqing req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shenqing> shenqingList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//前台-售后申请详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Shenqing> detail(@PathVariable("id") Integer id) {
|
||||
Shenqing info = shenqingService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-售后申请添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Shenqing req) {
|
||||
int result = shenqingService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取售后申请管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Shenqing> mana(Shenqing req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shenqing> shenqingList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取售后申请管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Shenqing> manaMy(Shenqing req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shenqing> shenqingList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取售后申请查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Shenqing> chakan(Shenqing req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shenqing> shenqingList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取售后申请查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Shenqing> chakanMy(Shenqing req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shenqing> shenqingList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//后台-售后申请详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Shenqing> info(@PathVariable("id") Integer id) {
|
||||
Shenqing info = shenqingService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-售后申请添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Shenqing req) {
|
||||
int result = shenqingService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//售后申请删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = shenqingService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//售后申请修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Shenqing req) {
|
||||
int result = shenqingService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有售后申请数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Shenqing> shenqingAll() {
|
||||
List<Shenqing> shenqingList = shenqingService.findAll();
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取售后申请数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Shenqing> shenqingSearch(Shenqing req) {
|
||||
List<Shenqing> shenqingList = shenqingService.find(req);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取售后申请数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Shenqing> shenqingSearchByEqualTo(Shenqing req) {
|
||||
List<Shenqing> shenqingList = shenqingService.findByEqualTo(req);
|
||||
return ApiResponse.success(shenqingList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询售后申请分页数据方法(模糊匹配查询)
|
||||
private PageData<Shenqing> getPageList(Shenqing req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shenqing> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Shenqing> shenqingList = shenqingService.findPage(pageWrap);
|
||||
return shenqingList;
|
||||
}
|
||||
|
||||
//按条件查询售后申请分页数据方法(完全匹配查询)
|
||||
private PageData<Shenqing> getPageListByEqualTo(Shenqing req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shenqing> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Shenqing> shenqingList = shenqingService.findPageByEqualTo(pageWrap);
|
||||
return shenqingList;
|
||||
}
|
||||
|
||||
//获取售后申请查询数据搜索条件
|
||||
private PageWrap<Shenqing> getPageWrap(Shenqing req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shenqing> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ShoucangController
|
||||
* @Description 收藏模块控制层
|
||||
*/
|
||||
@RequestMapping("shoucang")
|
||||
@RestController
|
||||
public class ShoucangController {
|
||||
|
||||
@Autowired
|
||||
private ShoucangService shoucangService;
|
||||
|
||||
//前台-根据条件获取收藏列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Shoucang> manaQian(Shoucang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shoucang> shoucangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的收藏列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Shoucang> manaMyQian(Shoucang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shoucang> shoucangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取收藏图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Shoucang> manaQianTp(Shoucang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shoucang> shoucangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//前台-收藏详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Shoucang> detail(@PathVariable("id") Integer id) {
|
||||
Shoucang info = shoucangService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-收藏添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Shoucang req) {
|
||||
int result = shoucangService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取收藏管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Shoucang> mana(Shoucang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shoucang> shoucangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取收藏管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Shoucang> manaMy(Shoucang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shoucang> shoucangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取收藏查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Shoucang> chakan(Shoucang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shoucang> shoucangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取收藏查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Shoucang> chakanMy(Shoucang req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Shoucang> shoucangList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//后台-收藏详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Shoucang> info(@PathVariable("id") Integer id) {
|
||||
Shoucang info = shoucangService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-收藏添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Shoucang req) {
|
||||
int result = shoucangService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//收藏删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = shoucangService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//收藏修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Shoucang req) {
|
||||
int result = shoucangService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有收藏数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Shoucang> shoucangAll() {
|
||||
List<Shoucang> shoucangList = shoucangService.findAll();
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取收藏数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Shoucang> shoucangSearch(Shoucang req) {
|
||||
List<Shoucang> shoucangList = shoucangService.find(req);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取收藏数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Shoucang> shoucangSearchByEqualTo(Shoucang req) {
|
||||
List<Shoucang> shoucangList = shoucangService.findByEqualTo(req);
|
||||
return ApiResponse.success(shoucangList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询收藏分页数据方法(模糊匹配查询)
|
||||
private PageData<Shoucang> getPageList(Shoucang req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shoucang> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Shoucang> shoucangList = shoucangService.findPage(pageWrap);
|
||||
return shoucangList;
|
||||
}
|
||||
|
||||
//按条件查询收藏分页数据方法(完全匹配查询)
|
||||
private PageData<Shoucang> getPageListByEqualTo(Shoucang req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shoucang> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Shoucang> shoucangList = shoucangService.findPageByEqualTo(pageWrap);
|
||||
return shoucangList;
|
||||
}
|
||||
|
||||
//获取收藏查询数据搜索条件
|
||||
private PageWrap<Shoucang> getPageWrap(Shoucang req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Shoucang> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName XinwenController
|
||||
* @Description 新闻模块控制层
|
||||
*/
|
||||
@RequestMapping("xinwen")
|
||||
@RestController
|
||||
public class XinwenController {
|
||||
|
||||
@Autowired
|
||||
private XinwenService xinwenService;
|
||||
|
||||
//前台-根据条件获取新闻列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Xinwen> manaQian(Xinwen req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Xinwen> xinwenList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的新闻列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Xinwen> manaMyQian(Xinwen req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Xinwen> xinwenList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取新闻图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Xinwen> manaQianTp(Xinwen req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Xinwen> xinwenList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//前台-新闻详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Xinwen> detail(@PathVariable("id") Integer id) {
|
||||
Xinwen info = xinwenService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-新闻添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Xinwen req) {
|
||||
int result = xinwenService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取新闻管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Xinwen> mana(Xinwen req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Xinwen> xinwenList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取新闻管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Xinwen> manaMy(Xinwen req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Xinwen> xinwenList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取新闻查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Xinwen> chakan(Xinwen req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Xinwen> xinwenList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取新闻查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Xinwen> chakanMy(Xinwen req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Xinwen> xinwenList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//后台-新闻详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Xinwen> info(@PathVariable("id") Integer id) {
|
||||
Xinwen info = xinwenService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-新闻添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Xinwen req) {
|
||||
int result = xinwenService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//新闻删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = xinwenService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//新闻修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Xinwen req) {
|
||||
int result = xinwenService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有新闻数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Xinwen> xinwenAll() {
|
||||
List<Xinwen> xinwenList = xinwenService.findAll();
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取新闻数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Xinwen> xinwenSearch(Xinwen req) {
|
||||
List<Xinwen> xinwenList = xinwenService.find(req);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取新闻数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Xinwen> xinwenSearchByEqualTo(Xinwen req) {
|
||||
List<Xinwen> xinwenList = xinwenService.findByEqualTo(req);
|
||||
return ApiResponse.success(xinwenList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询新闻分页数据方法(模糊匹配查询)
|
||||
private PageData<Xinwen> getPageList(Xinwen req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Xinwen> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Xinwen> xinwenList = xinwenService.findPage(pageWrap);
|
||||
return xinwenList;
|
||||
}
|
||||
|
||||
//按条件查询新闻分页数据方法(完全匹配查询)
|
||||
private PageData<Xinwen> getPageListByEqualTo(Xinwen req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Xinwen> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Xinwen> xinwenList = xinwenService.findPageByEqualTo(pageWrap);
|
||||
return xinwenList;
|
||||
}
|
||||
|
||||
//获取新闻查询数据搜索条件
|
||||
private PageWrap<Xinwen> getPageWrap(Xinwen req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Xinwen> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,178 @@
|
||||
package com.controller;
|
||||
|
||||
import com.annotation.IgnoreAuth;
|
||||
import com.entity.*;
|
||||
import com.service.*;
|
||||
import com.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ZhifufangshiController
|
||||
* @Description 支付方式模块控制层
|
||||
*/
|
||||
@RequestMapping("zhifufangshi")
|
||||
@RestController
|
||||
public class ZhifufangshiController {
|
||||
|
||||
@Autowired
|
||||
private ZhifufangshiService zhifufangshiService;
|
||||
|
||||
//前台-根据条件获取支付方式列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqian")
|
||||
public ApiResponse<Zhifufangshi> manaQian(Zhifufangshi req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Zhifufangshi> zhifufangshiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取我的支付方式列表分页数据接口
|
||||
@RequestMapping("/manamyqian")
|
||||
public ApiResponse<Zhifufangshi> manaMyQian(Zhifufangshi req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Zhifufangshi> zhifufangshiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//前台-根据条件获取支付方式图片列表分页数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/manaqiantp")
|
||||
public ApiResponse<Zhifufangshi> manaQianTp(Zhifufangshi req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Zhifufangshi> zhifufangshiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//前台-支付方式详情
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/detail/{id}")
|
||||
public ApiResponse<Zhifufangshi> detail(@PathVariable("id") Integer id) {
|
||||
Zhifufangshi info = zhifufangshiService.findById(id);
|
||||
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//前台-支付方式添加接口
|
||||
@PostMapping("/add")
|
||||
public ApiResponse<Integer> add(@RequestBody Zhifufangshi req) {
|
||||
int result = zhifufangshiService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//后台-根据条件获取支付方式管理列表分页数据接口
|
||||
@RequestMapping("/mana")
|
||||
public ApiResponse<Zhifufangshi> mana(Zhifufangshi req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Zhifufangshi> zhifufangshiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取支付方式管理我的列表分页数据接口
|
||||
@RequestMapping("/manamy")
|
||||
public ApiResponse<Zhifufangshi> manaMy(Zhifufangshi req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Zhifufangshi> zhifufangshiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取支付方式查看列表分页数据接口
|
||||
@RequestMapping("/chakan")
|
||||
public ApiResponse<Zhifufangshi> chakan(Zhifufangshi req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Zhifufangshi> zhifufangshiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//后台-根据条件获取支付方式查看我的列表分页数据接口
|
||||
@RequestMapping("/chakanmy")
|
||||
public ApiResponse<Zhifufangshi> chakanMy(Zhifufangshi req, @RequestParam(defaultValue = "1", value = "pageNo") int pageNo, @RequestParam(defaultValue = "10", value = "pageSize") int pageSize, @RequestParam(defaultValue = "id", value = "sortProperty") String sortProperty) {
|
||||
PageData<Zhifufangshi> zhifufangshiList = getPageList(req, pageNo, pageSize, sortProperty);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//后台-支付方式详情
|
||||
@RequestMapping("/info/{id}")
|
||||
public ApiResponse<Zhifufangshi> info(@PathVariable("id") Integer id) {
|
||||
Zhifufangshi info = zhifufangshiService.findById(id);
|
||||
return ApiResponse.success(info);
|
||||
}
|
||||
|
||||
//后台-支付方式添加接口
|
||||
@PostMapping("/save")
|
||||
public ApiResponse<Integer> save(@RequestBody Zhifufangshi req) {
|
||||
int result = zhifufangshiService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//支付方式删除(含批量删除)接口
|
||||
@RequestMapping("/delete")
|
||||
public ApiResponse<Integer> delete(@RequestBody Integer[] ids) {
|
||||
int result = 0;
|
||||
for (Integer id : ids) {
|
||||
result = zhifufangshiService.deleteById(id);
|
||||
}
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//支付方式修改接口
|
||||
@PostMapping("/set")
|
||||
public ApiResponse<Integer> set(@RequestBody Zhifufangshi req) {
|
||||
int result = zhifufangshiService.saveOrUpdate(req);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
//获取所有支付方式数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/all")
|
||||
public ApiResponse<Zhifufangshi> zhifufangshiAll() {
|
||||
List<Zhifufangshi> zhifufangshiList = zhifufangshiService.findAll();
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型模糊匹配查询)获取支付方式数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/search")
|
||||
public ApiResponse<Zhifufangshi> zhifufangshiSearch(Zhifufangshi req) {
|
||||
List<Zhifufangshi> zhifufangshiList = zhifufangshiService.find(req);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
//根据条件(字符类型完全匹配查询)获取支付方式数据接口
|
||||
@IgnoreAuth
|
||||
@RequestMapping("/searchByEqualTo")
|
||||
public ApiResponse<Zhifufangshi> zhifufangshiSearchByEqualTo(Zhifufangshi req) {
|
||||
List<Zhifufangshi> zhifufangshiList = zhifufangshiService.findByEqualTo(req);
|
||||
return ApiResponse.success(zhifufangshiList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//按条件查询支付方式分页数据方法(模糊匹配查询)
|
||||
private PageData<Zhifufangshi> getPageList(Zhifufangshi req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Zhifufangshi> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Zhifufangshi> zhifufangshiList = zhifufangshiService.findPage(pageWrap);
|
||||
return zhifufangshiList;
|
||||
}
|
||||
|
||||
//按条件查询支付方式分页数据方法(完全匹配查询)
|
||||
private PageData<Zhifufangshi> getPageListByEqualTo(Zhifufangshi req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Zhifufangshi> pageWrap = getPageWrap(req, pageNo, pageSize, sortProperty);
|
||||
PageData<Zhifufangshi> zhifufangshiList = zhifufangshiService.findPageByEqualTo(pageWrap);
|
||||
return zhifufangshiList;
|
||||
}
|
||||
|
||||
//获取支付方式查询数据搜索条件
|
||||
private PageWrap<Zhifufangshi> getPageWrap(Zhifufangshi req, int pageNo, int pageSize, String sortProperty) {
|
||||
PageWrap<Zhifufangshi> pageWrap = new PageWrap<>();
|
||||
pageWrap.setModel(req);
|
||||
pageWrap.setPageNum(pageNo);
|
||||
pageWrap.setPageSize(pageSize);
|
||||
PageWrap.SortData sortData = new PageWrap.SortData();
|
||||
sortData.setDirection("DESC");
|
||||
sortData.setProperty(sortProperty);
|
||||
List<PageWrap.SortData> sorts = new ArrayList<>();
|
||||
sorts.add(sortData);
|
||||
pageWrap.setSorts(sorts);
|
||||
return pageWrap;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,542 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Dingdanxiang
|
||||
* @Description mybatis持久层数据操作订单项表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class DingdanxiangExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public DingdanxiangExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidIsNull() {
|
||||
addCriterion("dingdanid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidIsNotNull() {
|
||||
addCriterion("dingdanid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidEqualTo(Integer value) {
|
||||
addCriterion("dingdanid =", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidNotEqualTo(Integer value) {
|
||||
addCriterion("dingdanid <>", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidGreaterThan(Integer value) {
|
||||
addCriterion("dingdanid >", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("dingdanid >=", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidLessThan(Integer value) {
|
||||
addCriterion("dingdanid <", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("dingdanid <=", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidLike(Integer value) {
|
||||
addCriterion("dingdanid like", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidNotLike(Integer value) {
|
||||
addCriterion("dingdanid not like", value, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidIn(List<Integer> values) {
|
||||
addCriterion("dingdanid in", values, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidNotIn(List<Integer> values) {
|
||||
addCriterion("dingdanid not in", values, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dingdanid between", value1, value2, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDingdanidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dingdanid not between", value1, value2, "dingdanid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShangpinidIsNull() {
|
||||
addCriterion("shangpinid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIsNotNull() {
|
||||
addCriterion("shangpinid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidEqualTo(Integer value) {
|
||||
addCriterion("shangpinid =", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <>", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThan(Integer value) {
|
||||
addCriterion("shangpinid >", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid >=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThan(Integer value) {
|
||||
addCriterion("shangpinid <", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLike(Integer value) {
|
||||
addCriterion("shangpinid like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotLike(Integer value) {
|
||||
addCriterion("shangpinid not like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIn(List<Integer> values) {
|
||||
addCriterion("shangpinid in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotIn(List<Integer> values) {
|
||||
addCriterion("shangpinid not in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid not between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andGoumaishuliangIsNull() {
|
||||
addCriterion("goumaishuliang is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangIsNotNull() {
|
||||
addCriterion("goumaishuliang is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang =", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang <>", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangGreaterThan(Integer value) {
|
||||
addCriterion("goumaishuliang >", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang >=", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangLessThan(Integer value) {
|
||||
addCriterion("goumaishuliang <", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang <=", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangLike(Integer value) {
|
||||
addCriterion("goumaishuliang like", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotLike(Integer value) {
|
||||
addCriterion("goumaishuliang not like", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangIn(List<Integer> values) {
|
||||
addCriterion("goumaishuliang in", values, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotIn(List<Integer> values) {
|
||||
addCriterion("goumaishuliang not in", values, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangBetween(Integer value1, Integer value2) {
|
||||
addCriterion("goumaishuliang between", value1, value2, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("goumaishuliang not between", value1, value2, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andUsersidIsNull() {
|
||||
addCriterion("usersid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIsNotNull() {
|
||||
addCriterion("usersid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidEqualTo(Integer value) {
|
||||
addCriterion("usersid =", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotEqualTo(Integer value) {
|
||||
addCriterion("usersid <>", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThan(Integer value) {
|
||||
addCriterion("usersid >", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid >=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThan(Integer value) {
|
||||
addCriterion("usersid <", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid <=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLike(Integer value) {
|
||||
addCriterion("usersid like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotLike(Integer value) {
|
||||
addCriterion("usersid not like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIn(List<Integer> values) {
|
||||
addCriterion("usersid in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotIn(List<Integer> values) {
|
||||
addCriterion("usersid not in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid not between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Dx
|
||||
* @Description 信息介绍模块实体层
|
||||
*/
|
||||
public class Dx {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//类别
|
||||
private String leibie;
|
||||
//内容
|
||||
private String content;
|
||||
//时间
|
||||
private String addtime;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 类别
|
||||
*
|
||||
* @return leibie 类别
|
||||
*/
|
||||
public String getLeibie() {
|
||||
return this.leibie;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 类别
|
||||
*
|
||||
* @param leibie 类别
|
||||
*/
|
||||
public void setLeibie(String leibie) {
|
||||
this.leibie = leibie;
|
||||
}
|
||||
/**
|
||||
* 获取 内容
|
||||
*
|
||||
* @return content 内容
|
||||
*/
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 内容
|
||||
*
|
||||
* @param content 内容
|
||||
*/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
/**
|
||||
* 获取 时间
|
||||
*
|
||||
* @return addtime 时间
|
||||
*/
|
||||
public String getAddtime() {
|
||||
return this.addtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 时间
|
||||
*
|
||||
* @param addtime 时间
|
||||
*/
|
||||
public void setAddtime(String addtime) {
|
||||
this.addtime = addtime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,473 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Dx
|
||||
* @Description mybatis持久层数据操作信息介绍表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class DxExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public DxExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieIsNull() {
|
||||
addCriterion("leibie is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieIsNotNull() {
|
||||
addCriterion("leibie is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieEqualTo(String value) {
|
||||
addCriterion("leibie =", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieNotEqualTo(String value) {
|
||||
addCriterion("leibie <>", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieGreaterThan(String value) {
|
||||
addCriterion("leibie >", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("leibie >=", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieLessThan(String value) {
|
||||
addCriterion("leibie <", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieLessThanOrEqualTo(String value) {
|
||||
addCriterion("leibie <=", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieLike(String value) {
|
||||
addCriterion("leibie like", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieNotLike(String value) {
|
||||
addCriterion("leibie not like", value, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieIn(List<String> values) {
|
||||
addCriterion("leibie in", values, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieNotIn(List<String> values) {
|
||||
addCriterion("leibie not in", values, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieBetween(String value1, String value2) {
|
||||
addCriterion("leibie between", value1, value2, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLeibieNotBetween(String value1, String value2) {
|
||||
addCriterion("leibie not between", value1, value2, "leibie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andContentIsNull() {
|
||||
addCriterion("content is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentIsNotNull() {
|
||||
addCriterion("content is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentEqualTo(String value) {
|
||||
addCriterion("content =", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotEqualTo(String value) {
|
||||
addCriterion("content <>", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentGreaterThan(String value) {
|
||||
addCriterion("content >", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("content >=", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentLessThan(String value) {
|
||||
addCriterion("content <", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentLessThanOrEqualTo(String value) {
|
||||
addCriterion("content <=", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentLike(String value) {
|
||||
addCriterion("content like", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotLike(String value) {
|
||||
addCriterion("content not like", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentIn(List<String> values) {
|
||||
addCriterion("content in", values, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotIn(List<String> values) {
|
||||
addCriterion("content not in", values, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentBetween(String value1, String value2) {
|
||||
addCriterion("content between", value1, value2, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotBetween(String value1, String value2) {
|
||||
addCriterion("content not between", value1, value2, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andAddtimeIsNull() {
|
||||
addCriterion("addtime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeIsNotNull() {
|
||||
addCriterion("addtime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeEqualTo(String value) {
|
||||
addCriterion("addtime =", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeNotEqualTo(String value) {
|
||||
addCriterion("addtime <>", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeGreaterThan(String value) {
|
||||
addCriterion("addtime >", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("addtime >=", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeLessThan(String value) {
|
||||
addCriterion("addtime <", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeLessThanOrEqualTo(String value) {
|
||||
addCriterion("addtime <=", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeLike(String value) {
|
||||
addCriterion("addtime like", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeNotLike(String value) {
|
||||
addCriterion("addtime not like", value, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeIn(List<String> values) {
|
||||
addCriterion("addtime in", values, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeNotIn(List<String> values) {
|
||||
addCriterion("addtime not in", values, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeBetween(String value1, String value2) {
|
||||
addCriterion("addtime between", value1, value2, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddtimeNotBetween(String value1, String value2) {
|
||||
addCriterion("addtime not between", value1, value2, "addtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Gonggao
|
||||
* @Description 公告模块实体层
|
||||
*/
|
||||
public class Gonggao {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//标题
|
||||
private String biaoti;
|
||||
//内容
|
||||
private String neirong;
|
||||
//图片
|
||||
private String tupian;
|
||||
//时间
|
||||
private String shijian;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 标题
|
||||
*
|
||||
* @return biaoti 标题
|
||||
*/
|
||||
public String getBiaoti() {
|
||||
return this.biaoti;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 标题
|
||||
*
|
||||
* @param biaoti 标题
|
||||
*/
|
||||
public void setBiaoti(String biaoti) {
|
||||
this.biaoti = biaoti;
|
||||
}
|
||||
/**
|
||||
* 获取 内容
|
||||
*
|
||||
* @return neirong 内容
|
||||
*/
|
||||
public String getNeirong() {
|
||||
return this.neirong;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 内容
|
||||
*
|
||||
* @param neirong 内容
|
||||
*/
|
||||
public void setNeirong(String neirong) {
|
||||
this.neirong = neirong;
|
||||
}
|
||||
/**
|
||||
* 获取 图片
|
||||
*
|
||||
* @return tupian 图片
|
||||
*/
|
||||
public String getTupian() {
|
||||
return this.tupian;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 图片
|
||||
*
|
||||
* @param tupian 图片
|
||||
*/
|
||||
public void setTupian(String tupian) {
|
||||
this.tupian = tupian;
|
||||
}
|
||||
/**
|
||||
* 获取 时间
|
||||
*
|
||||
* @return shijian 时间
|
||||
*/
|
||||
public String getShijian() {
|
||||
return this.shijian;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 时间
|
||||
*
|
||||
* @param shijian 时间
|
||||
*/
|
||||
public void setShijian(String shijian) {
|
||||
this.shijian = shijian;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,542 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Gonggao
|
||||
* @Description mybatis持久层数据操作公告表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class GonggaoExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public GonggaoExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNull() {
|
||||
addCriterion("biaoti is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNotNull() {
|
||||
addCriterion("biaoti is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiEqualTo(String value) {
|
||||
addCriterion("biaoti =", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotEqualTo(String value) {
|
||||
addCriterion("biaoti <>", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThan(String value) {
|
||||
addCriterion("biaoti >", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti >=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThan(String value) {
|
||||
addCriterion("biaoti <", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti <=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLike(String value) {
|
||||
addCriterion("biaoti like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotLike(String value) {
|
||||
addCriterion("biaoti not like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIn(List<String> values) {
|
||||
addCriterion("biaoti in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotIn(List<String> values) {
|
||||
addCriterion("biaoti not in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiBetween(String value1, String value2) {
|
||||
addCriterion("biaoti between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotBetween(String value1, String value2) {
|
||||
addCriterion("biaoti not between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andNeirongIsNull() {
|
||||
addCriterion("neirong is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIsNotNull() {
|
||||
addCriterion("neirong is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongEqualTo(String value) {
|
||||
addCriterion("neirong =", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotEqualTo(String value) {
|
||||
addCriterion("neirong <>", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThan(String value) {
|
||||
addCriterion("neirong >", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("neirong >=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThan(String value) {
|
||||
addCriterion("neirong <", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThanOrEqualTo(String value) {
|
||||
addCriterion("neirong <=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLike(String value) {
|
||||
addCriterion("neirong like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotLike(String value) {
|
||||
addCriterion("neirong not like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIn(List<String> values) {
|
||||
addCriterion("neirong in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotIn(List<String> values) {
|
||||
addCriterion("neirong not in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongBetween(String value1, String value2) {
|
||||
addCriterion("neirong between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotBetween(String value1, String value2) {
|
||||
addCriterion("neirong not between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andTupianIsNull() {
|
||||
addCriterion("tupian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianIsNotNull() {
|
||||
addCriterion("tupian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianEqualTo(String value) {
|
||||
addCriterion("tupian =", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotEqualTo(String value) {
|
||||
addCriterion("tupian <>", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianGreaterThan(String value) {
|
||||
addCriterion("tupian >", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("tupian >=", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianLessThan(String value) {
|
||||
addCriterion("tupian <", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianLessThanOrEqualTo(String value) {
|
||||
addCriterion("tupian <=", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianLike(String value) {
|
||||
addCriterion("tupian like", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotLike(String value) {
|
||||
addCriterion("tupian not like", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianIn(List<String> values) {
|
||||
addCriterion("tupian in", values, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotIn(List<String> values) {
|
||||
addCriterion("tupian not in", values, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianBetween(String value1, String value2) {
|
||||
addCriterion("tupian between", value1, value2, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotBetween(String value1, String value2) {
|
||||
addCriterion("tupian not between", value1, value2, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShijianIsNull() {
|
||||
addCriterion("shijian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIsNotNull() {
|
||||
addCriterion("shijian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianEqualTo(String value) {
|
||||
addCriterion("shijian =", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotEqualTo(String value) {
|
||||
addCriterion("shijian <>", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThan(String value) {
|
||||
addCriterion("shijian >", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shijian >=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThan(String value) {
|
||||
addCriterion("shijian <", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThanOrEqualTo(String value) {
|
||||
addCriterion("shijian <=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLike(String value) {
|
||||
addCriterion("shijian like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotLike(String value) {
|
||||
addCriterion("shijian not like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIn(List<String> values) {
|
||||
addCriterion("shijian in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotIn(List<String> values) {
|
||||
addCriterion("shijian not in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianBetween(String value1, String value2) {
|
||||
addCriterion("shijian between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotBetween(String value1, String value2) {
|
||||
addCriterion("shijian not between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,473 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Gouwuche
|
||||
* @Description mybatis持久层数据操作购物车表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class GouwucheExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public GouwucheExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIsNull() {
|
||||
addCriterion("shangpinid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIsNotNull() {
|
||||
addCriterion("shangpinid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidEqualTo(Integer value) {
|
||||
addCriterion("shangpinid =", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <>", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThan(Integer value) {
|
||||
addCriterion("shangpinid >", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid >=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThan(Integer value) {
|
||||
addCriterion("shangpinid <", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLike(Integer value) {
|
||||
addCriterion("shangpinid like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotLike(Integer value) {
|
||||
addCriterion("shangpinid not like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIn(List<Integer> values) {
|
||||
addCriterion("shangpinid in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotIn(List<Integer> values) {
|
||||
addCriterion("shangpinid not in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid not between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andGoumaishuliangIsNull() {
|
||||
addCriterion("goumaishuliang is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangIsNotNull() {
|
||||
addCriterion("goumaishuliang is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang =", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang <>", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangGreaterThan(Integer value) {
|
||||
addCriterion("goumaishuliang >", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang >=", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangLessThan(Integer value) {
|
||||
addCriterion("goumaishuliang <", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("goumaishuliang <=", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangLike(Integer value) {
|
||||
addCriterion("goumaishuliang like", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotLike(Integer value) {
|
||||
addCriterion("goumaishuliang not like", value, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangIn(List<Integer> values) {
|
||||
addCriterion("goumaishuliang in", values, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotIn(List<Integer> values) {
|
||||
addCriterion("goumaishuliang not in", values, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangBetween(Integer value1, Integer value2) {
|
||||
addCriterion("goumaishuliang between", value1, value2, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoumaishuliangNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("goumaishuliang not between", value1, value2, "goumaishuliang");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andUsersidIsNull() {
|
||||
addCriterion("usersid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIsNotNull() {
|
||||
addCriterion("usersid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidEqualTo(Integer value) {
|
||||
addCriterion("usersid =", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotEqualTo(Integer value) {
|
||||
addCriterion("usersid <>", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThan(Integer value) {
|
||||
addCriterion("usersid >", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid >=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThan(Integer value) {
|
||||
addCriterion("usersid <", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid <=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLike(Integer value) {
|
||||
addCriterion("usersid like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotLike(Integer value) {
|
||||
addCriterion("usersid not like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIn(List<Integer> values) {
|
||||
addCriterion("usersid in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotIn(List<Integer> values) {
|
||||
addCriterion("usersid not in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid not between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Lianjie
|
||||
* @Description 友情链接模块实体层
|
||||
*/
|
||||
public class Lianjie {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//名称
|
||||
private String name;
|
||||
//链接地址
|
||||
private String url;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 名称
|
||||
*
|
||||
* @return name 名称
|
||||
*/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 名称
|
||||
*
|
||||
* @param name 名称
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
/**
|
||||
* 获取 链接地址
|
||||
*
|
||||
* @return url 链接地址
|
||||
*/
|
||||
public String getUrl() {
|
||||
return this.url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 链接地址
|
||||
*
|
||||
* @param url 链接地址
|
||||
*/
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,404 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Lianjie
|
||||
* @Description mybatis持久层数据操作友情链接表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class LianjieExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public LianjieExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andUrlIsNull() {
|
||||
addCriterion("url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNotNull() {
|
||||
addCriterion("url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlEqualTo(String value) {
|
||||
addCriterion("url =", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotEqualTo(String value) {
|
||||
addCriterion("url <>", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThan(String value) {
|
||||
addCriterion("url >", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("url >=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThan(String value) {
|
||||
addCriterion("url <", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("url <=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLike(String value) {
|
||||
addCriterion("url like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotLike(String value) {
|
||||
addCriterion("url not like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIn(List<String> values) {
|
||||
addCriterion("url in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotIn(List<String> values) {
|
||||
addCriterion("url not in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlBetween(String value1, String value2) {
|
||||
addCriterion("url between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("url not between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,611 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Liuyan
|
||||
* @Description mybatis持久层数据操作留言反馈表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class LiuyanExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public LiuyanExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNull() {
|
||||
addCriterion("biaoti is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNotNull() {
|
||||
addCriterion("biaoti is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiEqualTo(String value) {
|
||||
addCriterion("biaoti =", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotEqualTo(String value) {
|
||||
addCriterion("biaoti <>", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThan(String value) {
|
||||
addCriterion("biaoti >", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti >=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThan(String value) {
|
||||
addCriterion("biaoti <", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti <=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLike(String value) {
|
||||
addCriterion("biaoti like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotLike(String value) {
|
||||
addCriterion("biaoti not like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIn(List<String> values) {
|
||||
addCriterion("biaoti in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotIn(List<String> values) {
|
||||
addCriterion("biaoti not in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiBetween(String value1, String value2) {
|
||||
addCriterion("biaoti between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotBetween(String value1, String value2) {
|
||||
addCriterion("biaoti not between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andNeirongIsNull() {
|
||||
addCriterion("neirong is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIsNotNull() {
|
||||
addCriterion("neirong is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongEqualTo(String value) {
|
||||
addCriterion("neirong =", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotEqualTo(String value) {
|
||||
addCriterion("neirong <>", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThan(String value) {
|
||||
addCriterion("neirong >", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("neirong >=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThan(String value) {
|
||||
addCriterion("neirong <", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThanOrEqualTo(String value) {
|
||||
addCriterion("neirong <=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLike(String value) {
|
||||
addCriterion("neirong like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotLike(String value) {
|
||||
addCriterion("neirong not like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIn(List<String> values) {
|
||||
addCriterion("neirong in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotIn(List<String> values) {
|
||||
addCriterion("neirong not in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongBetween(String value1, String value2) {
|
||||
addCriterion("neirong between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotBetween(String value1, String value2) {
|
||||
addCriterion("neirong not between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andAddshijianIsNull() {
|
||||
addCriterion("addshijian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianIsNotNull() {
|
||||
addCriterion("addshijian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianEqualTo(String value) {
|
||||
addCriterion("addshijian =", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianNotEqualTo(String value) {
|
||||
addCriterion("addshijian <>", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianGreaterThan(String value) {
|
||||
addCriterion("addshijian >", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("addshijian >=", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianLessThan(String value) {
|
||||
addCriterion("addshijian <", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianLessThanOrEqualTo(String value) {
|
||||
addCriterion("addshijian <=", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianLike(String value) {
|
||||
addCriterion("addshijian like", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianNotLike(String value) {
|
||||
addCriterion("addshijian not like", value, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianIn(List<String> values) {
|
||||
addCriterion("addshijian in", values, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianNotIn(List<String> values) {
|
||||
addCriterion("addshijian not in", values, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianBetween(String value1, String value2) {
|
||||
addCriterion("addshijian between", value1, value2, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddshijianNotBetween(String value1, String value2) {
|
||||
addCriterion("addshijian not between", value1, value2, "addshijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andUsersidIsNull() {
|
||||
addCriterion("usersid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIsNotNull() {
|
||||
addCriterion("usersid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidEqualTo(Integer value) {
|
||||
addCriterion("usersid =", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotEqualTo(Integer value) {
|
||||
addCriterion("usersid <>", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThan(Integer value) {
|
||||
addCriterion("usersid >", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid >=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThan(Integer value) {
|
||||
addCriterion("usersid <", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid <=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLike(Integer value) {
|
||||
addCriterion("usersid like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotLike(Integer value) {
|
||||
addCriterion("usersid not like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIn(List<Integer> values) {
|
||||
addCriterion("usersid in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotIn(List<Integer> values) {
|
||||
addCriterion("usersid not in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid not between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andHuifuIsNull() {
|
||||
addCriterion("huifu is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuIsNotNull() {
|
||||
addCriterion("huifu is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuEqualTo(String value) {
|
||||
addCriterion("huifu =", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuNotEqualTo(String value) {
|
||||
addCriterion("huifu <>", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuGreaterThan(String value) {
|
||||
addCriterion("huifu >", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("huifu >=", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuLessThan(String value) {
|
||||
addCriterion("huifu <", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuLessThanOrEqualTo(String value) {
|
||||
addCriterion("huifu <=", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuLike(String value) {
|
||||
addCriterion("huifu like", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuNotLike(String value) {
|
||||
addCriterion("huifu not like", value, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuIn(List<String> values) {
|
||||
addCriterion("huifu in", values, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuNotIn(List<String> values) {
|
||||
addCriterion("huifu not in", values, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuBetween(String value1, String value2) {
|
||||
addCriterion("huifu between", value1, value2, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHuifuNotBetween(String value1, String value2) {
|
||||
addCriterion("huifu not between", value1, value2, "huifu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Lunbo
|
||||
* @Description 轮播图模块实体层
|
||||
*/
|
||||
public class Lunbo {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//标题
|
||||
private String biaoti;
|
||||
//图片
|
||||
private String image;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 标题
|
||||
*
|
||||
* @return biaoti 标题
|
||||
*/
|
||||
public String getBiaoti() {
|
||||
return this.biaoti;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 标题
|
||||
*
|
||||
* @param biaoti 标题
|
||||
*/
|
||||
public void setBiaoti(String biaoti) {
|
||||
this.biaoti = biaoti;
|
||||
}
|
||||
/**
|
||||
* 获取 图片
|
||||
*
|
||||
* @return image 图片
|
||||
*/
|
||||
public String getImage() {
|
||||
return this.image;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 图片
|
||||
*
|
||||
* @param image 图片
|
||||
*/
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,404 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Lunbo
|
||||
* @Description mybatis持久层数据操作轮播图表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class LunboExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public LunboExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNull() {
|
||||
addCriterion("biaoti is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNotNull() {
|
||||
addCriterion("biaoti is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiEqualTo(String value) {
|
||||
addCriterion("biaoti =", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotEqualTo(String value) {
|
||||
addCriterion("biaoti <>", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThan(String value) {
|
||||
addCriterion("biaoti >", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti >=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThan(String value) {
|
||||
addCriterion("biaoti <", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti <=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLike(String value) {
|
||||
addCriterion("biaoti like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotLike(String value) {
|
||||
addCriterion("biaoti not like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIn(List<String> values) {
|
||||
addCriterion("biaoti in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotIn(List<String> values) {
|
||||
addCriterion("biaoti not in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiBetween(String value1, String value2) {
|
||||
addCriterion("biaoti between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotBetween(String value1, String value2) {
|
||||
addCriterion("biaoti not between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andImageIsNull() {
|
||||
addCriterion("image is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIsNotNull() {
|
||||
addCriterion("image is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageEqualTo(String value) {
|
||||
addCriterion("image =", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotEqualTo(String value) {
|
||||
addCriterion("image <>", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageGreaterThan(String value) {
|
||||
addCriterion("image >", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("image >=", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLessThan(String value) {
|
||||
addCriterion("image <", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLessThanOrEqualTo(String value) {
|
||||
addCriterion("image <=", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLike(String value) {
|
||||
addCriterion("image like", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotLike(String value) {
|
||||
addCriterion("image not like", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIn(List<String> values) {
|
||||
addCriterion("image in", values, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotIn(List<String> values) {
|
||||
addCriterion("image not in", values, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageBetween(String value1, String value2) {
|
||||
addCriterion("image between", value1, value2, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotBetween(String value1, String value2) {
|
||||
addCriterion("image not between", value1, value2, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,611 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Pingjia
|
||||
* @Description mybatis持久层数据操作评论表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class PingjiaExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public PingjiaExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNull() {
|
||||
addCriterion("biaoti is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNotNull() {
|
||||
addCriterion("biaoti is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiEqualTo(String value) {
|
||||
addCriterion("biaoti =", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotEqualTo(String value) {
|
||||
addCriterion("biaoti <>", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThan(String value) {
|
||||
addCriterion("biaoti >", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti >=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThan(String value) {
|
||||
addCriterion("biaoti <", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti <=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLike(String value) {
|
||||
addCriterion("biaoti like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotLike(String value) {
|
||||
addCriterion("biaoti not like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIn(List<String> values) {
|
||||
addCriterion("biaoti in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotIn(List<String> values) {
|
||||
addCriterion("biaoti not in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiBetween(String value1, String value2) {
|
||||
addCriterion("biaoti between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotBetween(String value1, String value2) {
|
||||
addCriterion("biaoti not between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andFenshuIsNull() {
|
||||
addCriterion("fenshu is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuIsNotNull() {
|
||||
addCriterion("fenshu is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuEqualTo(String value) {
|
||||
addCriterion("fenshu =", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuNotEqualTo(String value) {
|
||||
addCriterion("fenshu <>", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuGreaterThan(String value) {
|
||||
addCriterion("fenshu >", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("fenshu >=", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuLessThan(String value) {
|
||||
addCriterion("fenshu <", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuLessThanOrEqualTo(String value) {
|
||||
addCriterion("fenshu <=", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuLike(String value) {
|
||||
addCriterion("fenshu like", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuNotLike(String value) {
|
||||
addCriterion("fenshu not like", value, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuIn(List<String> values) {
|
||||
addCriterion("fenshu in", values, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuNotIn(List<String> values) {
|
||||
addCriterion("fenshu not in", values, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuBetween(String value1, String value2) {
|
||||
addCriterion("fenshu between", value1, value2, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFenshuNotBetween(String value1, String value2) {
|
||||
addCriterion("fenshu not between", value1, value2, "fenshu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShijianIsNull() {
|
||||
addCriterion("shijian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIsNotNull() {
|
||||
addCriterion("shijian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianEqualTo(String value) {
|
||||
addCriterion("shijian =", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotEqualTo(String value) {
|
||||
addCriterion("shijian <>", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThan(String value) {
|
||||
addCriterion("shijian >", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shijian >=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThan(String value) {
|
||||
addCriterion("shijian <", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThanOrEqualTo(String value) {
|
||||
addCriterion("shijian <=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLike(String value) {
|
||||
addCriterion("shijian like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotLike(String value) {
|
||||
addCriterion("shijian not like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIn(List<String> values) {
|
||||
addCriterion("shijian in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotIn(List<String> values) {
|
||||
addCriterion("shijian not in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianBetween(String value1, String value2) {
|
||||
addCriterion("shijian between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotBetween(String value1, String value2) {
|
||||
addCriterion("shijian not between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShangpinidIsNull() {
|
||||
addCriterion("shangpinid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIsNotNull() {
|
||||
addCriterion("shangpinid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidEqualTo(Integer value) {
|
||||
addCriterion("shangpinid =", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <>", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThan(Integer value) {
|
||||
addCriterion("shangpinid >", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid >=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThan(Integer value) {
|
||||
addCriterion("shangpinid <", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLike(Integer value) {
|
||||
addCriterion("shangpinid like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotLike(Integer value) {
|
||||
addCriterion("shangpinid not like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIn(List<Integer> values) {
|
||||
addCriterion("shangpinid in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotIn(List<Integer> values) {
|
||||
addCriterion("shangpinid not in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid not between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andUsersidIsNull() {
|
||||
addCriterion("usersid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIsNotNull() {
|
||||
addCriterion("usersid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidEqualTo(Integer value) {
|
||||
addCriterion("usersid =", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotEqualTo(Integer value) {
|
||||
addCriterion("usersid <>", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThan(Integer value) {
|
||||
addCriterion("usersid >", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid >=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThan(Integer value) {
|
||||
addCriterion("usersid <", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid <=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLike(Integer value) {
|
||||
addCriterion("usersid like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotLike(Integer value) {
|
||||
addCriterion("usersid not like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIn(List<Integer> values) {
|
||||
addCriterion("usersid in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotIn(List<Integer> values) {
|
||||
addCriterion("usersid not in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid not between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Pinlei
|
||||
* @Description 分类模块实体层
|
||||
*/
|
||||
public class Pinlei {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//名称
|
||||
private String mingcheng;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 名称
|
||||
*
|
||||
* @return mingcheng 名称
|
||||
*/
|
||||
public String getMingcheng() {
|
||||
return this.mingcheng;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 名称
|
||||
*
|
||||
* @param mingcheng 名称
|
||||
*/
|
||||
public void setMingcheng(String mingcheng) {
|
||||
this.mingcheng = mingcheng;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,335 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Pinlei
|
||||
* @Description mybatis持久层数据操作分类表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class PinleiExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public PinleiExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengIsNull() {
|
||||
addCriterion("mingcheng is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengIsNotNull() {
|
||||
addCriterion("mingcheng is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengEqualTo(String value) {
|
||||
addCriterion("mingcheng =", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotEqualTo(String value) {
|
||||
addCriterion("mingcheng <>", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengGreaterThan(String value) {
|
||||
addCriterion("mingcheng >", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("mingcheng >=", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengLessThan(String value) {
|
||||
addCriterion("mingcheng <", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengLessThanOrEqualTo(String value) {
|
||||
addCriterion("mingcheng <=", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengLike(String value) {
|
||||
addCriterion("mingcheng like", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotLike(String value) {
|
||||
addCriterion("mingcheng not like", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengIn(List<String> values) {
|
||||
addCriterion("mingcheng in", values, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotIn(List<String> values) {
|
||||
addCriterion("mingcheng not in", values, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengBetween(String value1, String value2) {
|
||||
addCriterion("mingcheng between", value1, value2, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotBetween(String value1, String value2) {
|
||||
addCriterion("mingcheng not between", value1, value2, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,749 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Shenqing
|
||||
* @Description mybatis持久层数据操作售后申请表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class ShenqingExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public ShenqingExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingIsNull() {
|
||||
addCriterion("xingming is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingIsNotNull() {
|
||||
addCriterion("xingming is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingEqualTo(String value) {
|
||||
addCriterion("xingming =", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotEqualTo(String value) {
|
||||
addCriterion("xingming <>", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingGreaterThan(String value) {
|
||||
addCriterion("xingming >", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("xingming >=", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingLessThan(String value) {
|
||||
addCriterion("xingming <", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingLessThanOrEqualTo(String value) {
|
||||
addCriterion("xingming <=", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingLike(String value) {
|
||||
addCriterion("xingming like", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotLike(String value) {
|
||||
addCriterion("xingming not like", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingIn(List<String> values) {
|
||||
addCriterion("xingming in", values, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotIn(List<String> values) {
|
||||
addCriterion("xingming not in", values, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingBetween(String value1, String value2) {
|
||||
addCriterion("xingming between", value1, value2, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotBetween(String value1, String value2) {
|
||||
addCriterion("xingming not between", value1, value2, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andDianhuaIsNull() {
|
||||
addCriterion("dianhua is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaIsNotNull() {
|
||||
addCriterion("dianhua is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaEqualTo(String value) {
|
||||
addCriterion("dianhua =", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotEqualTo(String value) {
|
||||
addCriterion("dianhua <>", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaGreaterThan(String value) {
|
||||
addCriterion("dianhua >", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("dianhua >=", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaLessThan(String value) {
|
||||
addCriterion("dianhua <", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaLessThanOrEqualTo(String value) {
|
||||
addCriterion("dianhua <=", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaLike(String value) {
|
||||
addCriterion("dianhua like", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotLike(String value) {
|
||||
addCriterion("dianhua not like", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaIn(List<String> values) {
|
||||
addCriterion("dianhua in", values, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotIn(List<String> values) {
|
||||
addCriterion("dianhua not in", values, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaBetween(String value1, String value2) {
|
||||
addCriterion("dianhua between", value1, value2, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotBetween(String value1, String value2) {
|
||||
addCriterion("dianhua not between", value1, value2, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andNeirongIsNull() {
|
||||
addCriterion("neirong is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIsNotNull() {
|
||||
addCriterion("neirong is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongEqualTo(String value) {
|
||||
addCriterion("neirong =", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotEqualTo(String value) {
|
||||
addCriterion("neirong <>", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThan(String value) {
|
||||
addCriterion("neirong >", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("neirong >=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThan(String value) {
|
||||
addCriterion("neirong <", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThanOrEqualTo(String value) {
|
||||
addCriterion("neirong <=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLike(String value) {
|
||||
addCriterion("neirong like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotLike(String value) {
|
||||
addCriterion("neirong not like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIn(List<String> values) {
|
||||
addCriterion("neirong in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotIn(List<String> values) {
|
||||
addCriterion("neirong not in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongBetween(String value1, String value2) {
|
||||
addCriterion("neirong between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotBetween(String value1, String value2) {
|
||||
addCriterion("neirong not between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShijianIsNull() {
|
||||
addCriterion("shijian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIsNotNull() {
|
||||
addCriterion("shijian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianEqualTo(String value) {
|
||||
addCriterion("shijian =", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotEqualTo(String value) {
|
||||
addCriterion("shijian <>", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThan(String value) {
|
||||
addCriterion("shijian >", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shijian >=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThan(String value) {
|
||||
addCriterion("shijian <", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThanOrEqualTo(String value) {
|
||||
addCriterion("shijian <=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLike(String value) {
|
||||
addCriterion("shijian like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotLike(String value) {
|
||||
addCriterion("shijian not like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIn(List<String> values) {
|
||||
addCriterion("shijian in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotIn(List<String> values) {
|
||||
addCriterion("shijian not in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianBetween(String value1, String value2) {
|
||||
addCriterion("shijian between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotBetween(String value1, String value2) {
|
||||
addCriterion("shijian not between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andBeizhuIsNull() {
|
||||
addCriterion("beizhu is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuIsNotNull() {
|
||||
addCriterion("beizhu is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuEqualTo(String value) {
|
||||
addCriterion("beizhu =", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuNotEqualTo(String value) {
|
||||
addCriterion("beizhu <>", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuGreaterThan(String value) {
|
||||
addCriterion("beizhu >", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("beizhu >=", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuLessThan(String value) {
|
||||
addCriterion("beizhu <", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuLessThanOrEqualTo(String value) {
|
||||
addCriterion("beizhu <=", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuLike(String value) {
|
||||
addCriterion("beizhu like", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuNotLike(String value) {
|
||||
addCriterion("beizhu not like", value, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuIn(List<String> values) {
|
||||
addCriterion("beizhu in", values, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuNotIn(List<String> values) {
|
||||
addCriterion("beizhu not in", values, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuBetween(String value1, String value2) {
|
||||
addCriterion("beizhu between", value1, value2, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBeizhuNotBetween(String value1, String value2) {
|
||||
addCriterion("beizhu not between", value1, value2, "beizhu");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShenheIsNull() {
|
||||
addCriterion("shenhe is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheIsNotNull() {
|
||||
addCriterion("shenhe is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheEqualTo(String value) {
|
||||
addCriterion("shenhe =", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotEqualTo(String value) {
|
||||
addCriterion("shenhe <>", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheGreaterThan(String value) {
|
||||
addCriterion("shenhe >", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shenhe >=", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheLessThan(String value) {
|
||||
addCriterion("shenhe <", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheLessThanOrEqualTo(String value) {
|
||||
addCriterion("shenhe <=", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheLike(String value) {
|
||||
addCriterion("shenhe like", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotLike(String value) {
|
||||
addCriterion("shenhe not like", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheIn(List<String> values) {
|
||||
addCriterion("shenhe in", values, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotIn(List<String> values) {
|
||||
addCriterion("shenhe not in", values, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheBetween(String value1, String value2) {
|
||||
addCriterion("shenhe between", value1, value2, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotBetween(String value1, String value2) {
|
||||
addCriterion("shenhe not between", value1, value2, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andUsersidIsNull() {
|
||||
addCriterion("usersid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIsNotNull() {
|
||||
addCriterion("usersid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidEqualTo(Integer value) {
|
||||
addCriterion("usersid =", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotEqualTo(Integer value) {
|
||||
addCriterion("usersid <>", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThan(Integer value) {
|
||||
addCriterion("usersid >", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid >=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThan(Integer value) {
|
||||
addCriterion("usersid <", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid <=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLike(Integer value) {
|
||||
addCriterion("usersid like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotLike(Integer value) {
|
||||
addCriterion("usersid not like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIn(List<Integer> values) {
|
||||
addCriterion("usersid in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotIn(List<Integer> values) {
|
||||
addCriterion("usersid not in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid not between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,473 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Shoucang
|
||||
* @Description mybatis持久层数据操作收藏表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class ShoucangExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public ShoucangExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIsNull() {
|
||||
addCriterion("shijian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIsNotNull() {
|
||||
addCriterion("shijian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianEqualTo(String value) {
|
||||
addCriterion("shijian =", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotEqualTo(String value) {
|
||||
addCriterion("shijian <>", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThan(String value) {
|
||||
addCriterion("shijian >", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shijian >=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThan(String value) {
|
||||
addCriterion("shijian <", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThanOrEqualTo(String value) {
|
||||
addCriterion("shijian <=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLike(String value) {
|
||||
addCriterion("shijian like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotLike(String value) {
|
||||
addCriterion("shijian not like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIn(List<String> values) {
|
||||
addCriterion("shijian in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotIn(List<String> values) {
|
||||
addCriterion("shijian not in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianBetween(String value1, String value2) {
|
||||
addCriterion("shijian between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotBetween(String value1, String value2) {
|
||||
addCriterion("shijian not between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShangpinidIsNull() {
|
||||
addCriterion("shangpinid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIsNotNull() {
|
||||
addCriterion("shangpinid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidEqualTo(Integer value) {
|
||||
addCriterion("shangpinid =", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <>", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThan(Integer value) {
|
||||
addCriterion("shangpinid >", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid >=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThan(Integer value) {
|
||||
addCriterion("shangpinid <", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("shangpinid <=", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidLike(Integer value) {
|
||||
addCriterion("shangpinid like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotLike(Integer value) {
|
||||
addCriterion("shangpinid not like", value, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidIn(List<Integer> values) {
|
||||
addCriterion("shangpinid in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotIn(List<Integer> values) {
|
||||
addCriterion("shangpinid not in", values, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShangpinidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("shangpinid not between", value1, value2, "shangpinid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andUsersidIsNull() {
|
||||
addCriterion("usersid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIsNotNull() {
|
||||
addCriterion("usersid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidEqualTo(Integer value) {
|
||||
addCriterion("usersid =", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotEqualTo(Integer value) {
|
||||
addCriterion("usersid <>", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThan(Integer value) {
|
||||
addCriterion("usersid >", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid >=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThan(Integer value) {
|
||||
addCriterion("usersid <", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("usersid <=", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidLike(Integer value) {
|
||||
addCriterion("usersid like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotLike(Integer value) {
|
||||
addCriterion("usersid not like", value, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidIn(List<Integer> values) {
|
||||
addCriterion("usersid in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotIn(List<Integer> values) {
|
||||
addCriterion("usersid not in", values, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUsersidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("usersid not between", value1, value2, "usersid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,224 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Users
|
||||
* @Description 用户模块实体层
|
||||
*/
|
||||
public class Users {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//用户名称
|
||||
private String loginname;
|
||||
//密码
|
||||
private String loginpw;
|
||||
//类型
|
||||
private String type;
|
||||
//类型名称
|
||||
private String typename;
|
||||
//姓名
|
||||
private String xingming;
|
||||
//性别
|
||||
private String xingbie;
|
||||
//年龄
|
||||
private String nianling;
|
||||
//地址
|
||||
private String address;
|
||||
//电话
|
||||
private String dianhua;
|
||||
//审核
|
||||
private String shenhe;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 用户名称
|
||||
*
|
||||
* @return loginname 用户名称
|
||||
*/
|
||||
public String getLoginname() {
|
||||
return this.loginname;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 用户名称
|
||||
*
|
||||
* @param loginname 用户名称
|
||||
*/
|
||||
public void setLoginname(String loginname) {
|
||||
this.loginname = loginname;
|
||||
}
|
||||
/**
|
||||
* 获取 密码
|
||||
*
|
||||
* @return loginpw 密码
|
||||
*/
|
||||
public String getLoginpw() {
|
||||
return this.loginpw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 密码
|
||||
*
|
||||
* @param loginpw 密码
|
||||
*/
|
||||
public void setLoginpw(String loginpw) {
|
||||
this.loginpw = loginpw;
|
||||
}
|
||||
/**
|
||||
* 获取 类型
|
||||
*
|
||||
* @return type 类型
|
||||
*/
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 类型
|
||||
*
|
||||
* @param type 类型
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
/**
|
||||
* 获取 类型名称
|
||||
*
|
||||
* @return typename 类型名称
|
||||
*/
|
||||
public String getTypename() {
|
||||
return this.typename;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 类型名称
|
||||
*
|
||||
* @param typename 类型名称
|
||||
*/
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename;
|
||||
}
|
||||
/**
|
||||
* 获取 姓名
|
||||
*
|
||||
* @return xingming 姓名
|
||||
*/
|
||||
public String getXingming() {
|
||||
return this.xingming;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 姓名
|
||||
*
|
||||
* @param xingming 姓名
|
||||
*/
|
||||
public void setXingming(String xingming) {
|
||||
this.xingming = xingming;
|
||||
}
|
||||
/**
|
||||
* 获取 性别
|
||||
*
|
||||
* @return xingbie 性别
|
||||
*/
|
||||
public String getXingbie() {
|
||||
return this.xingbie;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 性别
|
||||
*
|
||||
* @param xingbie 性别
|
||||
*/
|
||||
public void setXingbie(String xingbie) {
|
||||
this.xingbie = xingbie;
|
||||
}
|
||||
/**
|
||||
* 获取 年龄
|
||||
*
|
||||
* @return nianling 年龄
|
||||
*/
|
||||
public String getNianling() {
|
||||
return this.nianling;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 年龄
|
||||
*
|
||||
* @param nianling 年龄
|
||||
*/
|
||||
public void setNianling(String nianling) {
|
||||
this.nianling = nianling;
|
||||
}
|
||||
/**
|
||||
* 获取 地址
|
||||
*
|
||||
* @return address 地址
|
||||
*/
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 地址
|
||||
*
|
||||
* @param address 地址
|
||||
*/
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
/**
|
||||
* 获取 电话
|
||||
*
|
||||
* @return dianhua 电话
|
||||
*/
|
||||
public String getDianhua() {
|
||||
return this.dianhua;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 电话
|
||||
*
|
||||
* @param dianhua 电话
|
||||
*/
|
||||
public void setDianhua(String dianhua) {
|
||||
this.dianhua = dianhua;
|
||||
}
|
||||
/**
|
||||
* 获取 审核
|
||||
*
|
||||
* @return shenhe 审核
|
||||
*/
|
||||
public String getShenhe() {
|
||||
return this.shenhe;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 审核
|
||||
*
|
||||
* @param shenhe 审核
|
||||
*/
|
||||
public void setShenhe(String shenhe) {
|
||||
this.shenhe = shenhe;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,956 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Users
|
||||
* @Description mybatis持久层数据操作用户表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class UsersExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public UsersExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameIsNull() {
|
||||
addCriterion("loginname is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameIsNotNull() {
|
||||
addCriterion("loginname is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameEqualTo(String value) {
|
||||
addCriterion("loginname =", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameNotEqualTo(String value) {
|
||||
addCriterion("loginname <>", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameGreaterThan(String value) {
|
||||
addCriterion("loginname >", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("loginname >=", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameLessThan(String value) {
|
||||
addCriterion("loginname <", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameLessThanOrEqualTo(String value) {
|
||||
addCriterion("loginname <=", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameLike(String value) {
|
||||
addCriterion("loginname like", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameNotLike(String value) {
|
||||
addCriterion("loginname not like", value, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameIn(List<String> values) {
|
||||
addCriterion("loginname in", values, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameNotIn(List<String> values) {
|
||||
addCriterion("loginname not in", values, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameBetween(String value1, String value2) {
|
||||
addCriterion("loginname between", value1, value2, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginnameNotBetween(String value1, String value2) {
|
||||
addCriterion("loginname not between", value1, value2, "loginname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andLoginpwIsNull() {
|
||||
addCriterion("loginpw is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwIsNotNull() {
|
||||
addCriterion("loginpw is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwEqualTo(String value) {
|
||||
addCriterion("loginpw =", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwNotEqualTo(String value) {
|
||||
addCriterion("loginpw <>", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwGreaterThan(String value) {
|
||||
addCriterion("loginpw >", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("loginpw >=", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwLessThan(String value) {
|
||||
addCriterion("loginpw <", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwLessThanOrEqualTo(String value) {
|
||||
addCriterion("loginpw <=", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwLike(String value) {
|
||||
addCriterion("loginpw like", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwNotLike(String value) {
|
||||
addCriterion("loginpw not like", value, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwIn(List<String> values) {
|
||||
addCriterion("loginpw in", values, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwNotIn(List<String> values) {
|
||||
addCriterion("loginpw not in", values, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwBetween(String value1, String value2) {
|
||||
addCriterion("loginpw between", value1, value2, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLoginpwNotBetween(String value1, String value2) {
|
||||
addCriterion("loginpw not between", value1, value2, "loginpw");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andTypenameIsNull() {
|
||||
addCriterion("typename is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameIsNotNull() {
|
||||
addCriterion("typename is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameEqualTo(String value) {
|
||||
addCriterion("typename =", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameNotEqualTo(String value) {
|
||||
addCriterion("typename <>", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameGreaterThan(String value) {
|
||||
addCriterion("typename >", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("typename >=", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameLessThan(String value) {
|
||||
addCriterion("typename <", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameLessThanOrEqualTo(String value) {
|
||||
addCriterion("typename <=", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameLike(String value) {
|
||||
addCriterion("typename like", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameNotLike(String value) {
|
||||
addCriterion("typename not like", value, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameIn(List<String> values) {
|
||||
addCriterion("typename in", values, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameNotIn(List<String> values) {
|
||||
addCriterion("typename not in", values, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameBetween(String value1, String value2) {
|
||||
addCriterion("typename between", value1, value2, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypenameNotBetween(String value1, String value2) {
|
||||
addCriterion("typename not between", value1, value2, "typename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andXingmingIsNull() {
|
||||
addCriterion("xingming is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingIsNotNull() {
|
||||
addCriterion("xingming is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingEqualTo(String value) {
|
||||
addCriterion("xingming =", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotEqualTo(String value) {
|
||||
addCriterion("xingming <>", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingGreaterThan(String value) {
|
||||
addCriterion("xingming >", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("xingming >=", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingLessThan(String value) {
|
||||
addCriterion("xingming <", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingLessThanOrEqualTo(String value) {
|
||||
addCriterion("xingming <=", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingLike(String value) {
|
||||
addCriterion("xingming like", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotLike(String value) {
|
||||
addCriterion("xingming not like", value, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingIn(List<String> values) {
|
||||
addCriterion("xingming in", values, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotIn(List<String> values) {
|
||||
addCriterion("xingming not in", values, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingBetween(String value1, String value2) {
|
||||
addCriterion("xingming between", value1, value2, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingmingNotBetween(String value1, String value2) {
|
||||
addCriterion("xingming not between", value1, value2, "xingming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andXingbieIsNull() {
|
||||
addCriterion("xingbie is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieIsNotNull() {
|
||||
addCriterion("xingbie is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieEqualTo(String value) {
|
||||
addCriterion("xingbie =", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieNotEqualTo(String value) {
|
||||
addCriterion("xingbie <>", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieGreaterThan(String value) {
|
||||
addCriterion("xingbie >", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("xingbie >=", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieLessThan(String value) {
|
||||
addCriterion("xingbie <", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieLessThanOrEqualTo(String value) {
|
||||
addCriterion("xingbie <=", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieLike(String value) {
|
||||
addCriterion("xingbie like", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieNotLike(String value) {
|
||||
addCriterion("xingbie not like", value, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieIn(List<String> values) {
|
||||
addCriterion("xingbie in", values, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieNotIn(List<String> values) {
|
||||
addCriterion("xingbie not in", values, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieBetween(String value1, String value2) {
|
||||
addCriterion("xingbie between", value1, value2, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andXingbieNotBetween(String value1, String value2) {
|
||||
addCriterion("xingbie not between", value1, value2, "xingbie");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andNianlingIsNull() {
|
||||
addCriterion("nianling is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingIsNotNull() {
|
||||
addCriterion("nianling is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingEqualTo(String value) {
|
||||
addCriterion("nianling =", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingNotEqualTo(String value) {
|
||||
addCriterion("nianling <>", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingGreaterThan(String value) {
|
||||
addCriterion("nianling >", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("nianling >=", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingLessThan(String value) {
|
||||
addCriterion("nianling <", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingLessThanOrEqualTo(String value) {
|
||||
addCriterion("nianling <=", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingLike(String value) {
|
||||
addCriterion("nianling like", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingNotLike(String value) {
|
||||
addCriterion("nianling not like", value, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingIn(List<String> values) {
|
||||
addCriterion("nianling in", values, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingNotIn(List<String> values) {
|
||||
addCriterion("nianling not in", values, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingBetween(String value1, String value2) {
|
||||
addCriterion("nianling between", value1, value2, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNianlingNotBetween(String value1, String value2) {
|
||||
addCriterion("nianling not between", value1, value2, "nianling");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andAddressIsNull() {
|
||||
addCriterion("address is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressIsNotNull() {
|
||||
addCriterion("address is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressEqualTo(String value) {
|
||||
addCriterion("address =", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotEqualTo(String value) {
|
||||
addCriterion("address <>", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressGreaterThan(String value) {
|
||||
addCriterion("address >", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("address >=", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressLessThan(String value) {
|
||||
addCriterion("address <", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressLessThanOrEqualTo(String value) {
|
||||
addCriterion("address <=", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressLike(String value) {
|
||||
addCriterion("address like", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotLike(String value) {
|
||||
addCriterion("address not like", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressIn(List<String> values) {
|
||||
addCriterion("address in", values, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotIn(List<String> values) {
|
||||
addCriterion("address not in", values, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressBetween(String value1, String value2) {
|
||||
addCriterion("address between", value1, value2, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotBetween(String value1, String value2) {
|
||||
addCriterion("address not between", value1, value2, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andDianhuaIsNull() {
|
||||
addCriterion("dianhua is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaIsNotNull() {
|
||||
addCriterion("dianhua is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaEqualTo(String value) {
|
||||
addCriterion("dianhua =", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotEqualTo(String value) {
|
||||
addCriterion("dianhua <>", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaGreaterThan(String value) {
|
||||
addCriterion("dianhua >", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("dianhua >=", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaLessThan(String value) {
|
||||
addCriterion("dianhua <", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaLessThanOrEqualTo(String value) {
|
||||
addCriterion("dianhua <=", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaLike(String value) {
|
||||
addCriterion("dianhua like", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotLike(String value) {
|
||||
addCriterion("dianhua not like", value, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaIn(List<String> values) {
|
||||
addCriterion("dianhua in", values, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotIn(List<String> values) {
|
||||
addCriterion("dianhua not in", values, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaBetween(String value1, String value2) {
|
||||
addCriterion("dianhua between", value1, value2, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDianhuaNotBetween(String value1, String value2) {
|
||||
addCriterion("dianhua not between", value1, value2, "dianhua");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShenheIsNull() {
|
||||
addCriterion("shenhe is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheIsNotNull() {
|
||||
addCriterion("shenhe is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheEqualTo(String value) {
|
||||
addCriterion("shenhe =", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotEqualTo(String value) {
|
||||
addCriterion("shenhe <>", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheGreaterThan(String value) {
|
||||
addCriterion("shenhe >", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shenhe >=", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheLessThan(String value) {
|
||||
addCriterion("shenhe <", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheLessThanOrEqualTo(String value) {
|
||||
addCriterion("shenhe <=", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheLike(String value) {
|
||||
addCriterion("shenhe like", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotLike(String value) {
|
||||
addCriterion("shenhe not like", value, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheIn(List<String> values) {
|
||||
addCriterion("shenhe in", values, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotIn(List<String> values) {
|
||||
addCriterion("shenhe not in", values, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheBetween(String value1, String value2) {
|
||||
addCriterion("shenhe between", value1, value2, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShenheNotBetween(String value1, String value2) {
|
||||
addCriterion("shenhe not between", value1, value2, "shenhe");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Xinwen
|
||||
* @Description 新闻模块实体层
|
||||
*/
|
||||
public class Xinwen {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//标题
|
||||
private String biaoti;
|
||||
//内容
|
||||
private String neirong;
|
||||
//图片
|
||||
private String tupian;
|
||||
//时间
|
||||
private String shijian;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 标题
|
||||
*
|
||||
* @return biaoti 标题
|
||||
*/
|
||||
public String getBiaoti() {
|
||||
return this.biaoti;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 标题
|
||||
*
|
||||
* @param biaoti 标题
|
||||
*/
|
||||
public void setBiaoti(String biaoti) {
|
||||
this.biaoti = biaoti;
|
||||
}
|
||||
/**
|
||||
* 获取 内容
|
||||
*
|
||||
* @return neirong 内容
|
||||
*/
|
||||
public String getNeirong() {
|
||||
return this.neirong;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 内容
|
||||
*
|
||||
* @param neirong 内容
|
||||
*/
|
||||
public void setNeirong(String neirong) {
|
||||
this.neirong = neirong;
|
||||
}
|
||||
/**
|
||||
* 获取 图片
|
||||
*
|
||||
* @return tupian 图片
|
||||
*/
|
||||
public String getTupian() {
|
||||
return this.tupian;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 图片
|
||||
*
|
||||
* @param tupian 图片
|
||||
*/
|
||||
public void setTupian(String tupian) {
|
||||
this.tupian = tupian;
|
||||
}
|
||||
/**
|
||||
* 获取 时间
|
||||
*
|
||||
* @return shijian 时间
|
||||
*/
|
||||
public String getShijian() {
|
||||
return this.shijian;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 时间
|
||||
*
|
||||
* @param shijian 时间
|
||||
*/
|
||||
public void setShijian(String shijian) {
|
||||
this.shijian = shijian;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,542 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Xinwen
|
||||
* @Description mybatis持久层数据操作新闻表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class XinwenExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public XinwenExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNull() {
|
||||
addCriterion("biaoti is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIsNotNull() {
|
||||
addCriterion("biaoti is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiEqualTo(String value) {
|
||||
addCriterion("biaoti =", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotEqualTo(String value) {
|
||||
addCriterion("biaoti <>", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThan(String value) {
|
||||
addCriterion("biaoti >", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti >=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThan(String value) {
|
||||
addCriterion("biaoti <", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLessThanOrEqualTo(String value) {
|
||||
addCriterion("biaoti <=", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiLike(String value) {
|
||||
addCriterion("biaoti like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotLike(String value) {
|
||||
addCriterion("biaoti not like", value, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiIn(List<String> values) {
|
||||
addCriterion("biaoti in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotIn(List<String> values) {
|
||||
addCriterion("biaoti not in", values, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiBetween(String value1, String value2) {
|
||||
addCriterion("biaoti between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBiaotiNotBetween(String value1, String value2) {
|
||||
addCriterion("biaoti not between", value1, value2, "biaoti");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andNeirongIsNull() {
|
||||
addCriterion("neirong is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIsNotNull() {
|
||||
addCriterion("neirong is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongEqualTo(String value) {
|
||||
addCriterion("neirong =", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotEqualTo(String value) {
|
||||
addCriterion("neirong <>", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThan(String value) {
|
||||
addCriterion("neirong >", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("neirong >=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThan(String value) {
|
||||
addCriterion("neirong <", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLessThanOrEqualTo(String value) {
|
||||
addCriterion("neirong <=", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongLike(String value) {
|
||||
addCriterion("neirong like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotLike(String value) {
|
||||
addCriterion("neirong not like", value, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongIn(List<String> values) {
|
||||
addCriterion("neirong in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotIn(List<String> values) {
|
||||
addCriterion("neirong not in", values, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongBetween(String value1, String value2) {
|
||||
addCriterion("neirong between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNeirongNotBetween(String value1, String value2) {
|
||||
addCriterion("neirong not between", value1, value2, "neirong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andTupianIsNull() {
|
||||
addCriterion("tupian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianIsNotNull() {
|
||||
addCriterion("tupian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianEqualTo(String value) {
|
||||
addCriterion("tupian =", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotEqualTo(String value) {
|
||||
addCriterion("tupian <>", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianGreaterThan(String value) {
|
||||
addCriterion("tupian >", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("tupian >=", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianLessThan(String value) {
|
||||
addCriterion("tupian <", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianLessThanOrEqualTo(String value) {
|
||||
addCriterion("tupian <=", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianLike(String value) {
|
||||
addCriterion("tupian like", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotLike(String value) {
|
||||
addCriterion("tupian not like", value, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianIn(List<String> values) {
|
||||
addCriterion("tupian in", values, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotIn(List<String> values) {
|
||||
addCriterion("tupian not in", values, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianBetween(String value1, String value2) {
|
||||
addCriterion("tupian between", value1, value2, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTupianNotBetween(String value1, String value2) {
|
||||
addCriterion("tupian not between", value1, value2, "tupian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
public Criteria andShijianIsNull() {
|
||||
addCriterion("shijian is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIsNotNull() {
|
||||
addCriterion("shijian is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianEqualTo(String value) {
|
||||
addCriterion("shijian =", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotEqualTo(String value) {
|
||||
addCriterion("shijian <>", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThan(String value) {
|
||||
addCriterion("shijian >", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shijian >=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThan(String value) {
|
||||
addCriterion("shijian <", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLessThanOrEqualTo(String value) {
|
||||
addCriterion("shijian <=", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianLike(String value) {
|
||||
addCriterion("shijian like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotLike(String value) {
|
||||
addCriterion("shijian not like", value, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianIn(List<String> values) {
|
||||
addCriterion("shijian in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotIn(List<String> values) {
|
||||
addCriterion("shijian not in", values, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianBetween(String value1, String value2) {
|
||||
addCriterion("shijian between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShijianNotBetween(String value1, String value2) {
|
||||
addCriterion("shijian not between", value1, value2, "shijian");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.entity;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName Zhifufangshi
|
||||
* @Description 支付方式模块实体层
|
||||
*/
|
||||
public class Zhifufangshi {
|
||||
//id列
|
||||
private Integer id;
|
||||
|
||||
|
||||
//支付方式
|
||||
private String mingcheng;
|
||||
|
||||
|
||||
/**
|
||||
* 获取 id列
|
||||
*
|
||||
* @return id id列
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 id列
|
||||
*
|
||||
* @param id id列
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 支付方式
|
||||
*
|
||||
* @return mingcheng 支付方式
|
||||
*/
|
||||
public String getMingcheng() {
|
||||
return this.mingcheng;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 支付方式
|
||||
*
|
||||
* @param mingcheng 支付方式
|
||||
*/
|
||||
public void setMingcheng(String mingcheng) {
|
||||
this.mingcheng = mingcheng;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,335 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Zhifufangshi
|
||||
* @Description mybatis持久层数据操作支付方式表搜索条件及排序封装扩展类
|
||||
*/
|
||||
public class ZhifufangshiExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public ZhifufangshiExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengIsNull() {
|
||||
addCriterion("mingcheng is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengIsNotNull() {
|
||||
addCriterion("mingcheng is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengEqualTo(String value) {
|
||||
addCriterion("mingcheng =", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotEqualTo(String value) {
|
||||
addCriterion("mingcheng <>", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengGreaterThan(String value) {
|
||||
addCriterion("mingcheng >", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("mingcheng >=", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengLessThan(String value) {
|
||||
addCriterion("mingcheng <", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengLessThanOrEqualTo(String value) {
|
||||
addCriterion("mingcheng <=", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengLike(String value) {
|
||||
addCriterion("mingcheng like", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotLike(String value) {
|
||||
addCriterion("mingcheng not like", value, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengIn(List<String> values) {
|
||||
addCriterion("mingcheng in", values, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotIn(List<String> values) {
|
||||
addCriterion("mingcheng not in", values, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengBetween(String value1, String value2) {
|
||||
addCriterion("mingcheng between", value1, value2, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMingchengNotBetween(String value1, String value2) {
|
||||
addCriterion("mingcheng not between", value1, value2, "mingcheng");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Dingdan;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DingdanService
|
||||
* @Description 订单模块业务层
|
||||
*/
|
||||
public interface DingdanService {
|
||||
|
||||
//保存或更新订单表数据
|
||||
Integer saveOrUpdate(Dingdan instance);
|
||||
|
||||
//查询所有订单表数据
|
||||
List<Dingdan> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询订单表数据
|
||||
List<Dingdan> find(Dingdan instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询订单表数据
|
||||
List<Dingdan> findByEqualTo(Dingdan instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条订单表数据
|
||||
Dingdan findOne(Dingdan instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条订单表数据
|
||||
Dingdan findOneByEqualTo(Dingdan instance);
|
||||
|
||||
//根据id列查询订单表数据
|
||||
Dingdan findById(Integer id);
|
||||
|
||||
//根据id列删除订单表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询订单表数据
|
||||
PageData<Dingdan> findPage(PageWrap<Dingdan> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询订单表数据
|
||||
PageData<Dingdan> findPageByEqualTo(PageWrap<Dingdan> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Dingdanxiang;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DingdanxiangService
|
||||
* @Description 订单项模块业务层
|
||||
*/
|
||||
public interface DingdanxiangService {
|
||||
|
||||
//保存或更新订单项表数据
|
||||
Integer saveOrUpdate(Dingdanxiang instance);
|
||||
|
||||
//查询所有订单项表数据
|
||||
List<Dingdanxiang> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询订单项表数据
|
||||
List<Dingdanxiang> find(Dingdanxiang instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询订单项表数据
|
||||
List<Dingdanxiang> findByEqualTo(Dingdanxiang instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条订单项表数据
|
||||
Dingdanxiang findOne(Dingdanxiang instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条订单项表数据
|
||||
Dingdanxiang findOneByEqualTo(Dingdanxiang instance);
|
||||
|
||||
//根据id列查询订单项表数据
|
||||
Dingdanxiang findById(Integer id);
|
||||
|
||||
//根据id列删除订单项表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询订单项表数据
|
||||
PageData<Dingdanxiang> findPage(PageWrap<Dingdanxiang> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询订单项表数据
|
||||
PageData<Dingdanxiang> findPageByEqualTo(PageWrap<Dingdanxiang> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Dx;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DxService
|
||||
* @Description 信息介绍模块业务层
|
||||
*/
|
||||
public interface DxService {
|
||||
|
||||
//保存或更新信息介绍表数据
|
||||
Integer saveOrUpdate(Dx instance);
|
||||
|
||||
//查询所有信息介绍表数据
|
||||
List<Dx> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询信息介绍表数据
|
||||
List<Dx> find(Dx instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询信息介绍表数据
|
||||
List<Dx> findByEqualTo(Dx instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条信息介绍表数据
|
||||
Dx findOne(Dx instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条信息介绍表数据
|
||||
Dx findOneByEqualTo(Dx instance);
|
||||
|
||||
//根据id列查询信息介绍表数据
|
||||
Dx findById(Integer id);
|
||||
|
||||
//根据id列删除信息介绍表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询信息介绍表数据
|
||||
PageData<Dx> findPage(PageWrap<Dx> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询信息介绍表数据
|
||||
PageData<Dx> findPageByEqualTo(PageWrap<Dx> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Gonggao;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName GonggaoService
|
||||
* @Description 公告模块业务层
|
||||
*/
|
||||
public interface GonggaoService {
|
||||
|
||||
//保存或更新公告表数据
|
||||
Integer saveOrUpdate(Gonggao instance);
|
||||
|
||||
//查询所有公告表数据
|
||||
List<Gonggao> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询公告表数据
|
||||
List<Gonggao> find(Gonggao instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询公告表数据
|
||||
List<Gonggao> findByEqualTo(Gonggao instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条公告表数据
|
||||
Gonggao findOne(Gonggao instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条公告表数据
|
||||
Gonggao findOneByEqualTo(Gonggao instance);
|
||||
|
||||
//根据id列查询公告表数据
|
||||
Gonggao findById(Integer id);
|
||||
|
||||
//根据id列删除公告表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询公告表数据
|
||||
PageData<Gonggao> findPage(PageWrap<Gonggao> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询公告表数据
|
||||
PageData<Gonggao> findPageByEqualTo(PageWrap<Gonggao> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Gouwuche;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName GouwucheService
|
||||
* @Description 购物车模块业务层
|
||||
*/
|
||||
public interface GouwucheService {
|
||||
|
||||
//保存或更新购物车表数据
|
||||
Integer saveOrUpdate(Gouwuche instance);
|
||||
|
||||
//查询所有购物车表数据
|
||||
List<Gouwuche> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询购物车表数据
|
||||
List<Gouwuche> find(Gouwuche instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询购物车表数据
|
||||
List<Gouwuche> findByEqualTo(Gouwuche instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条购物车表数据
|
||||
Gouwuche findOne(Gouwuche instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条购物车表数据
|
||||
Gouwuche findOneByEqualTo(Gouwuche instance);
|
||||
|
||||
//根据id列查询购物车表数据
|
||||
Gouwuche findById(Integer id);
|
||||
|
||||
//根据id列删除购物车表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询购物车表数据
|
||||
PageData<Gouwuche> findPage(PageWrap<Gouwuche> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询购物车表数据
|
||||
PageData<Gouwuche> findPageByEqualTo(PageWrap<Gouwuche> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Lianjie;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName LianjieService
|
||||
* @Description 友情链接模块业务层
|
||||
*/
|
||||
public interface LianjieService {
|
||||
|
||||
//保存或更新友情链接表数据
|
||||
Integer saveOrUpdate(Lianjie instance);
|
||||
|
||||
//查询所有友情链接表数据
|
||||
List<Lianjie> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询友情链接表数据
|
||||
List<Lianjie> find(Lianjie instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询友情链接表数据
|
||||
List<Lianjie> findByEqualTo(Lianjie instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条友情链接表数据
|
||||
Lianjie findOne(Lianjie instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条友情链接表数据
|
||||
Lianjie findOneByEqualTo(Lianjie instance);
|
||||
|
||||
//根据id列查询友情链接表数据
|
||||
Lianjie findById(Integer id);
|
||||
|
||||
//根据id列删除友情链接表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询友情链接表数据
|
||||
PageData<Lianjie> findPage(PageWrap<Lianjie> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询友情链接表数据
|
||||
PageData<Lianjie> findPageByEqualTo(PageWrap<Lianjie> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Liuyan;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName LiuyanService
|
||||
* @Description 留言反馈模块业务层
|
||||
*/
|
||||
public interface LiuyanService {
|
||||
|
||||
//保存或更新留言反馈表数据
|
||||
Integer saveOrUpdate(Liuyan instance);
|
||||
|
||||
//查询所有留言反馈表数据
|
||||
List<Liuyan> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询留言反馈表数据
|
||||
List<Liuyan> find(Liuyan instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询留言反馈表数据
|
||||
List<Liuyan> findByEqualTo(Liuyan instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条留言反馈表数据
|
||||
Liuyan findOne(Liuyan instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条留言反馈表数据
|
||||
Liuyan findOneByEqualTo(Liuyan instance);
|
||||
|
||||
//根据id列查询留言反馈表数据
|
||||
Liuyan findById(Integer id);
|
||||
|
||||
//根据id列删除留言反馈表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询留言反馈表数据
|
||||
PageData<Liuyan> findPage(PageWrap<Liuyan> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询留言反馈表数据
|
||||
PageData<Liuyan> findPageByEqualTo(PageWrap<Liuyan> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Lunbo;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName LunboService
|
||||
* @Description 轮播图模块业务层
|
||||
*/
|
||||
public interface LunboService {
|
||||
|
||||
//保存或更新轮播图表数据
|
||||
Integer saveOrUpdate(Lunbo instance);
|
||||
|
||||
//查询所有轮播图表数据
|
||||
List<Lunbo> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询轮播图表数据
|
||||
List<Lunbo> find(Lunbo instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询轮播图表数据
|
||||
List<Lunbo> findByEqualTo(Lunbo instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条轮播图表数据
|
||||
Lunbo findOne(Lunbo instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条轮播图表数据
|
||||
Lunbo findOneByEqualTo(Lunbo instance);
|
||||
|
||||
//根据id列查询轮播图表数据
|
||||
Lunbo findById(Integer id);
|
||||
|
||||
//根据id列删除轮播图表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询轮播图表数据
|
||||
PageData<Lunbo> findPage(PageWrap<Lunbo> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询轮播图表数据
|
||||
PageData<Lunbo> findPageByEqualTo(PageWrap<Lunbo> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Pingjia;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName PingjiaService
|
||||
* @Description 评论模块业务层
|
||||
*/
|
||||
public interface PingjiaService {
|
||||
|
||||
//保存或更新评论表数据
|
||||
Integer saveOrUpdate(Pingjia instance);
|
||||
|
||||
//查询所有评论表数据
|
||||
List<Pingjia> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询评论表数据
|
||||
List<Pingjia> find(Pingjia instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询评论表数据
|
||||
List<Pingjia> findByEqualTo(Pingjia instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条评论表数据
|
||||
Pingjia findOne(Pingjia instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条评论表数据
|
||||
Pingjia findOneByEqualTo(Pingjia instance);
|
||||
|
||||
//根据id列查询评论表数据
|
||||
Pingjia findById(Integer id);
|
||||
|
||||
//根据id列删除评论表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询评论表数据
|
||||
PageData<Pingjia> findPage(PageWrap<Pingjia> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询评论表数据
|
||||
PageData<Pingjia> findPageByEqualTo(PageWrap<Pingjia> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Pinlei;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName PinleiService
|
||||
* @Description 分类模块业务层
|
||||
*/
|
||||
public interface PinleiService {
|
||||
|
||||
//保存或更新分类表数据
|
||||
Integer saveOrUpdate(Pinlei instance);
|
||||
|
||||
//查询所有分类表数据
|
||||
List<Pinlei> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询分类表数据
|
||||
List<Pinlei> find(Pinlei instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询分类表数据
|
||||
List<Pinlei> findByEqualTo(Pinlei instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条分类表数据
|
||||
Pinlei findOne(Pinlei instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条分类表数据
|
||||
Pinlei findOneByEqualTo(Pinlei instance);
|
||||
|
||||
//根据id列查询分类表数据
|
||||
Pinlei findById(Integer id);
|
||||
|
||||
//根据id列删除分类表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询分类表数据
|
||||
PageData<Pinlei> findPage(PageWrap<Pinlei> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询分类表数据
|
||||
PageData<Pinlei> findPageByEqualTo(PageWrap<Pinlei> pageWrap);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Shangpin;
|
||||
import com.util.PageData;
|
||||
import com.util.PageWrap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ShangpinService
|
||||
* @Description 零食模块业务层
|
||||
*/
|
||||
public interface ShangpinService {
|
||||
|
||||
//保存或更新零食表数据
|
||||
Integer saveOrUpdate(Shangpin instance);
|
||||
|
||||
//查询所有零食表数据
|
||||
List<Shangpin> findAll();
|
||||
|
||||
//根据条件(字符类型模糊)查询零食表数据
|
||||
List<Shangpin> find(Shangpin instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询零食表数据
|
||||
List<Shangpin> findByEqualTo(Shangpin instance);
|
||||
|
||||
//根据条件(字符类型模糊)查询查询第一条零食表数据
|
||||
Shangpin findOne(Shangpin instance);
|
||||
|
||||
//根据条件(字符类型完全匹配)查询查询第一条零食表数据
|
||||
Shangpin findOneByEqualTo(Shangpin instance);
|
||||
|
||||
//根据id列查询零食表数据
|
||||
Shangpin findById(Integer id);
|
||||
|
||||
//根据id列删除零食表数据
|
||||
int deleteById(Integer id);
|
||||
|
||||
//根据条件(字符类型模糊)分页查询零食表数据
|
||||
PageData<Shangpin> findPage(PageWrap<Shangpin> pageWrap);
|
||||
|
||||
//根据条件(字符类型完全匹配)分页查询零食表数据
|
||||
PageData<Shangpin> findPageByEqualTo(PageWrap<Shangpin> pageWrap);
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue