diff --git a/.env.docker b/.env.docker new file mode 100644 index 0000000..d1b6c58 --- /dev/null +++ b/.env.docker @@ -0,0 +1,13 @@ +POSTGRES_USER=postgres +POSTGRES_PASSWORD=123456 +ZFGBB_DATABASE=zfgc_dev +ZFGBB_USER=zfgbb_user +ZFGBB_USER_PASSWORD=123456 + +SPRING_DATASOURCE_URL=jdbc:postgresql://host.docker.internal:5432/zfgc_dev +SPRING_DATASOURCE_USERNAME=zfgbb_user +SPRING_DATASOURCE_PASSWORD=123456 + +mbg_jdbc_url=jdbc:postgresql://host.docker.internal:5432/zfgc_dev +mbg_jdbc_username=zfgbb_user +mbg_jdbc_password=123456 \ No newline at end of file diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..8723759 --- /dev/null +++ b/.env.local @@ -0,0 +1,13 @@ +POSTGRES_USER=postgres +POSTGRES_PASSWORD=123456 +ZFGBB_DATABASE=zfgc_dev +ZFGBB_USER=zfgbb_user +ZFGBB_USER_PASSWORD=123456 + +SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/zfgc_dev +SPRING_DATASOURCE_USERNAME=zfgbb_user +SPRING_DATASOURCE_PASSWORD=123456 + +mbg_jdbc_url=jdbc:postgresql://localhost:5432/zfgc_dev +mbg_jdbc_username=zfgbb_user +mbg_jdbc_password=123456 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..0652657 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8f40fb9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "maven" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..00c2423 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: + pull_request: +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java-version: [17] + steps: + - uses: actions/checkout@v4 + - name: Set up JDK ${{ matrix.java-version}} for x64 + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java-version }} + distribution: 'temurin' + architecture: x64 + cache: maven + - name: Build with Maven + run: mvn clean compile package -Dmaven.test.skip=true \ No newline at end of file diff --git a/.gitignore b/.gitignore index 549e00a..0ebe513 100644 --- a/.gitignore +++ b/.gitignore @@ -1,33 +1,31 @@ -HELP.md -target/ -!.mvn/wrapper/maven-wrapper.jar -!**/src/main/**/target/ -!**/src/test/**/target/ - -### STS ### -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache - -### IntelliJ IDEA ### -.idea -*.iws -*.iml -*.ipr - -### NetBeans ### -/nbproject/private/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ -build/ -!**/src/main/**/build/ -!**/src/test/**/build/ - -### VS Code ### -.vscode/ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ +.env diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index b7cb93e..e47ac85 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1,2 +1,2 @@ -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip -wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip +wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..158a851 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "vscjava.vscode-java-pack" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..9e40f7e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "Debug Backend", + "request": "launch", + "mainClass": "com.zfgc.zfgbb.ZfgbbApplication", + "projectName": "zfgbb", + "envFile": "${workspaceFolder}/.env.local" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..25d5063 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive", + "java.compile.nullAnalysis.mode": "automatic" +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d365a95 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM maven:3.9-eclipse-temurin-17 AS build + +RUN mkdir -p /usr/src/zfgbb +ADD . /usr/src/zfgbb + +WORKDIR /usr/src/zfgbb + +RUN mvn clean compile package -Dmaven.test.skip=true + +# FIXME: This image should be switched to gcr.io/distroless/java-base-debian12 because it is much smaller. For now, this will work. +FROM tomcat:jre17-temurin-jammy AS deploy + +COPY --from=build /usr/src/zfgbb/target/*.war /usr/local/tomcat/webapps/ + +EXPOSE ${ZFGBB_BACKEND_PORT:-8080} + +CMD ["catalina.sh", "run"] + +FROM postgres:16 AS database + +ADD ./scripts/sql/provisioning/1-zfgbb.initialize-database.sh /docker-entrypoint-initdb.d/1-zfgbb.initialize-database.sh + +# We exclude .sql from the file name so that it gets ignored by the init script. +ADD ./scripts/sql/provisioning/2-provision-database.sql /docker-entrypoint-initdb.d/2-provision-database \ No newline at end of file diff --git a/LICENSE b/LICENSE index 02ba68f..04c1550 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2022 ZFGC - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2022 ZFGC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index e89885d..1a68e49 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,88 @@ -Java 17 -maven clean install -Dmaven.test.skip=true \ No newline at end of file +# ZFGBB Backend + +Bringin back the Drama Llama from the dead! + +[![CI](https://github.com/ZFGCCP/ZFGCBB/actions/workflows/ci.yml/badge.svg)](https://github.com/ZFGCCP/ZFGCBB/actions/workflows/ci.yml) + +## Table of Contents + +- [ZFGBB Backend](#zfgbb-backend) + - [Table of Contents](#table-of-contents) + - [Getting Started](#getting-started) + - [Prerequisites](#prerequisites) + - [Docker](#docker) + - [Standing up just the database](#standing-up-just-the-database) + - [Developing](#developing) + - [Building](#building) + - [Running Tests](#running-tests) + - [Running MyBatis Generator](#running-mybatis-generator) + - [License](#license) + +## Getting Started + +### Prerequisites + +- [Docker/Docker-Compose](https://docs.docker.com/get-docker/) +- [Java 17](https://www.oracle.com/java/technologies/downloads/) +- [Maven](https://maven.apache.org/download.cgi) +- If running locally + - [PostgreSQL](https://www.postgresql.org/download/) + - [Tomcat](https://tomcat.apache.org/download-90.cgi) + +#### Docker + +Copy the `.env.example` file to `.env` and fill in the values, then run docker compose to start the containers. + +```bash +cp .env.example .env +docker compose up -d +``` + +#### Standing up just the database + +```bash +docker compuse up -d postgresql +``` + +### Developing + +To run the application in development mode, run the following command: + +```bash +mvn clean run package -Dmaven.test.skip=true +``` + +This will start the application in development mode, and you can access it at `http://localhost:8080`. + +### Building + +To build the application, run the following command: + +```bash +mvn clean compile package -Dmaven.test.skip=true +``` + +This will create a `.war` file in the `target` directory. + +### Running Tests + +To run the tests, run the following command: + +```bash +mvn test +``` + +This will run all the tests in the [src/test](src/test) directory. + +### Running MyBatis Generator + +To run the MyBatis generator, run the following command: + +```bash +``` + +This will generate the MyBatis mappers and Java models based on the database schema. + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. diff --git a/backend-assets/img/logos/midnight-mobile.png b/backend-assets/img/logos/midnight-mobile.png new file mode 100644 index 0000000..5d6d239 Binary files /dev/null and b/backend-assets/img/logos/midnight-mobile.png differ diff --git a/backend-assets/img/logos/midnight-mobile.psd b/backend-assets/img/logos/midnight-mobile.psd new file mode 100644 index 0000000..00b9aff Binary files /dev/null and b/backend-assets/img/logos/midnight-mobile.psd differ diff --git a/backend-assets/img/member-badges/star.gif b/backend-assets/img/member-badges/star.gif new file mode 100644 index 0000000..36deff2 Binary files /dev/null and b/backend-assets/img/member-badges/star.gif differ diff --git a/backend-assets/img/member-badges/staradmin.gif b/backend-assets/img/member-badges/staradmin.gif new file mode 100644 index 0000000..c762a87 Binary files /dev/null and b/backend-assets/img/member-badges/staradmin.gif differ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..55dbb34 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,42 @@ +services: + postgresql: + container_name: zfgbb_postgresql + hostname: zfgbb_postgresql + build: + context: . + dockerfile: Dockerfile + target: database + env_file: + - .env.docker + ports: + - "${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}" + volumes: + - data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER:-postgres} -d ${ZFGBB_DATABASE:-zfgc_dev}'"] + interval: 30s + timeout: 60s + retries: 5 + start_period: 80s + + zfgbb: + container_name: zfgbb + hostname: zfgbb + build: + context: . + dockerfile: Dockerfile + target: deploy + ports: + - "${ZFGBB_BACKEND_PORT:-8080}:${ZFGBB_BACKEND_PORT:-8080}" + volumes: + - logs:/usr/src/app/logs + env_file: + - .env.docker + depends_on: + - postgresql + +volumes: + data: + logs: + +# Add docker config option \ No newline at end of file diff --git a/iac/zfgc.com/docker/host/Dockerfile b/iac/zfgc.com/docker/host/Dockerfile new file mode 100644 index 0000000..04c8559 --- /dev/null +++ b/iac/zfgc.com/docker/host/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu:noble as zfgc-com-host + +COPY ./scripts/setup-docker.sh /tmp/setup-docker.sh + +RUN /tmp/setup-docker.sh && \ + apt-get prune -y && \ + rm /tmp/setup-docker.sh \ No newline at end of file diff --git a/iac/zfgc.com/docker/host/scripts/setup-docker.sh b/iac/zfgc.com/docker/host/scripts/setup-docker.sh new file mode 100644 index 0000000..cca9105 --- /dev/null +++ b/iac/zfgc.com/docker/host/scripts/setup-docker.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e +set -o pipefail + +if [ "$(id -u)" -ne 0 ]; then + echo "Please run as root" + exit 1 +fi + +DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes apt-transport-https ca-certificates curl software-properties-common + +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg + +echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null +apt-get update + +apt-cache policy docker-ce +DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes docker-ce diff --git a/iac/zfgc.com/docker/ubuntu-base/Dockerfile b/iac/zfgc.com/docker/ubuntu-base/Dockerfile new file mode 100644 index 0000000..34cf98b --- /dev/null +++ b/iac/zfgc.com/docker/ubuntu-base/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:noble as zfgc-com-ubuntu-base + +COPY ./scripts/setup-docker.sh /tmp/setup-docker.sh + +# Override packages using syntaxl like this: + # DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes \ + # package-name=1.0.* \ + # etc... + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes \ No newline at end of file diff --git a/iac/zfgc.com/kube/old-skool.yml b/iac/zfgc.com/kube/old-skool.yml new file mode 100644 index 0000000..bb73444 --- /dev/null +++ b/iac/zfgc.com/kube/old-skool.yml @@ -0,0 +1,26 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: zfgc-old-skool + labels: + app: zfgc-old-skool +spec: + replicas: 1 + selector: + matchLabels: + app: zfgc-old-skool + template: + metadata: + labels: + app: zfgc-old-skool + spec: + containers: + - name: zfgc-old-skool + image: zfgc-old-skool:latest + ports: + - containerPort: 8080 + env: + - name: MYSQL_HOST + value: zfgc-old-skool-mysql + - name: MYSQL_PORT + value: "3306" \ No newline at end of file diff --git a/iac/zfgc.com/kube/zfgc-bb.yml b/iac/zfgc.com/kube/zfgc-bb.yml new file mode 100644 index 0000000..d629a63 --- /dev/null +++ b/iac/zfgc.com/kube/zfgc-bb.yml @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: zfgc-bb + labels: + app: zfgc-bb +spec: + replicas: 1 + selector: + matchLabels: + app: zfgc-bb + template: + metadata: + labels: + app: zfgc-bb + spec: + containers: + - name: zfgc-bb + image: zfgc-bb:latest + ports: + - containerPort: 8080 + env: + - name: SPRING_DATASOURCE_URL + value: jdbc:mysql://zfgc-bb-mysql:3306/zfgcbb?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC + - name: SPRING_DATASOURCE_USERNAME + value: zfgcbb + - name: SPRING_DATASOURCE_PASSWORD + value: zfgcbb + +--- +apiVersion: v1 +kind: Service +metadata: + name: zfgc-bb +spec: + selector: + app: zfgc-bb + ports: + - protocol: TCP + port: 8080 + targetPort: 8080 + type: NodePort + \ No newline at end of file diff --git a/mvnw b/mvnw index 8a8fb22..97347cb 100644 --- a/mvnw +++ b/mvnw @@ -1,316 +1,316 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`\\unset -f command; \\command -v java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /usr/local/etc/mavenrc ] ; then + . /usr/local/etc/mavenrc + fi + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`\\unset -f command; \\command -v java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + if [ -n "$MVNW_REPOURL" ]; then + jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + else + jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + fi + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + if $cygwin; then + wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` + fi + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + else + wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + fi + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + curl -o "$wrapperJarPath" "$jarUrl" -f + else + curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f + fi + + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaClass=`cygpath --path --windows "$javaClass"` + fi + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + $MAVEN_DEBUG_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" \ + "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/mvnw.cmd b/mvnw.cmd index 1d8ab01..2baaa67 100644 --- a/mvnw.cmd +++ b/mvnw.cmd @@ -1,188 +1,188 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM https://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM https://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* +if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + +FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + if "%MVNW_VERBOSE%" == "true" ( + echo Found %WRAPPER_JAR% + ) +) else ( + if not "%MVNW_REPOURL%" == "" ( + SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + ) + if "%MVNW_VERBOSE%" == "true" ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + ) + + powershell -Command "&{"^ + "$webclient = new-object System.Net.WebClient;"^ + "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ + "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ + "}"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ + "}" + if "%MVNW_VERBOSE%" == "true" ( + echo Finished downloading %WRAPPER_JAR% + ) +) +@REM End of extension + +@REM Provide a "standardized" way to retrieve the CLI args that will +@REM work with both Windows and non-Windows executions. +set MAVEN_CMD_LINE_ARGS=%* + +%MAVEN_JAVA_EXE% ^ + %JVM_CONFIG_MAVEN_PROPS% ^ + %MAVEN_OPTS% ^ + %MAVEN_DEBUG_OPTS% ^ + -classpath %WRAPPER_JAR% ^ + "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ + %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" +if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%"=="on" pause + +if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% + +cmd /C exit /B %ERROR_CODE% diff --git a/pom.xml b/pom.xml index ed74d3b..5b4fc1d 100644 --- a/pom.xml +++ b/pom.xml @@ -5,18 +5,19 @@ org.springframework.boot spring-boot-starter-parent - 3.3.2-SNAPSHOT + 3.4.0-RC1 com.zfgc zfgbb - 0.0.1-SNAPSHOT + 1.0.0-SNAPSHOT war zfgbb Demo project for Spring Boot 17 + org.springframework.boot @@ -77,18 +78,18 @@ org.apache.commons commons-lang3 - 3.12.0 + 3.17.0 org.modelmapper modelmapper - 3.1.0 + 3.2.1 com.google.guava guava - 31.1-jre + 33.3.1-jre diff --git a/scripts/sql/provisioning/1-zfgbb.initialize-database.sh b/scripts/sql/provisioning/1-zfgbb.initialize-database.sh new file mode 100644 index 0000000..e010a85 --- /dev/null +++ b/scripts/sql/provisioning/1-zfgbb.initialize-database.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +psql --username "$POSTGRES_USER" --command " + -- Create Roles + CREATE ROLE ZFGCADMIN + WITH + NOLOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT NOREPLICATION NOBYPASSRLS CONNECTION + LIMIT + -1; + + COMMENT ON ROLE ZFGCADMIN IS 'Admin users.'; + + -- Create User + CREATE ROLE $ZFGBB_USER + WITH + LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT NOREPLICATION NOBYPASSRLS CONNECTION + LIMIT + -1 PASSWORD '$ZFGBB_USER_PASSWORD'; + + GRANT ZFGCADMIN TO $ZFGBB_USER + WITH + ADMIN OPTION; + + COMMENT ON ROLE $ZFGBB_USER IS 'Default ZFGBB User.'; +" + +psql --username "$POSTGRES_USER" --command " + -- Create Database + CREATE DATABASE $ZFGBB_DATABASE + WITH + OWNER = $ZFGBB_USER; + GRANT ALL ON DATABASE $ZFGBB_DATABASE TO zfgcadmin WITH GRANT OPTION; + GRANT ALL ON DATABASE $ZFGBB_DATABASE TO $ZFGBB_USER; +" + +psql --username "$POSTGRES_USER" --dbname "$ZFGBB_DATABASE" --command " + CREATE SCHEMA IF NOT EXISTS ZFGBB AUTHORIZATION $ZFGBB_USER; + COMMENT ON SCHEMA ZFGBB IS 'ZFGBB Schema.'; + + GRANT ALL ON SCHEMA ZFGBB TO $ZFGBB_USER; + GRANT ALL ON SCHEMA ZFGBB TO ZFGCADMIN WITH GRANT OPTION; + + ALTER DEFAULT PRIVILEGES IN SCHEMA ZFGBB GRANT ALL ON TABLES TO ZFGCADMIN; + GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA ZFGBB TO ZFGCADMIN; +" + +psql --username "$POSTGRES_USER" --dbname "$ZFGBB_DATABASE" -a -f ./2-provision-database \ No newline at end of file diff --git a/scripts/sql/provisioning/2-provision-database.sql b/scripts/sql/provisioning/2-provision-database.sql new file mode 100644 index 0000000..d845053 --- /dev/null +++ b/scripts/sql/provisioning/2-provision-database.sql @@ -0,0 +1,311 @@ +CREATE SEQUENCE IF NOT EXISTS PUBLIC.BOARD_SEQUENCE START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.ATTRIBUTE_DATA_TYPE_ATTRIBUTE_DATA_TYPE_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.BB_CODE_ATTRIBUTE_BB_CODE_ATTRIBUTE_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.BB_CODE_ATTRIBUTE_MODE_BB_CODE_ATTRIBUTE_MODE_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.BB_CODE_CONFIG_BB_CODE_CONFIG_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.BOARD_BOARD_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.BR_BOARD_PERMISSION_BR_BOARD_PERMISSION_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.BR_USER_PERMISSION_BR_USER_PERMISSION_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.EMAIL_ADDRESS_EMAIL_ADDRESS_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.FORUM_FORUM_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.MESSAGE_HISTORY_MESSAGE_HISTORY_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.MESSAGE_MESSAGE_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.PERMISSION_PERMISSION_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.THREAD_THREAD_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE SEQUENCE IF NOT EXISTS ZFGBB.USER_USER_ID_SEQ AS INTEGER START +WITH + 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + +CREATE TABLE IF NOT EXISTS ZFGBB.IP_ADDRESS ( + IP_ADDRESS_ID INTEGER NOT NULL, + IP TEXT NOT NULL, + IP_V6_FLAG BOOLEAN NOT NULL, + IS_SPAMMER_FLAG BOOLEAN NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + CONSTRAINT IP_ADDRESS_PKEY PRIMARY KEY (IP_ADDRESS_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.IP_ADDRESS OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.ATTRIBUTE_DATA_TYPE ( + ATTRIBUTE_DATA_TYPE_ID INTEGER GENERATED BY default AS PRIMARY KEY, + TYPE_NAME CHARACTER VARYING(12) NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + CONSTRAINT ATTRIBUTE_DATA_TYPE_PKEY PRIMARY KEY (ATTRIBUTE_DATA_TYPE_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.ATTRIBUTE_DATA_TYPE OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.BB_CODE_ATTRIBUTE ( + BB_CODE_ATTRIBUTE_ID INTEGER DEFAULT NEXTVAL( + 'zfgbb.bb_code_attribute_bb_code_attribute_id_seq'::REGCLASS + ) NOT NULL, + ATTRIBUTE_DATA_TYPE INTEGER NOT NULL, + ATTRIBUTE_INDEX INTEGER NOT NULL, + BB_CODE_ATTRIBUTE_MODE_ID INTEGER NOT NULL, + NAME CHARACTER VARYING(32) NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + CONSTRAINT BB_CODE_ATTRIBUTE_PKEY PRIMARY KEY (BB_CODE_ATTRIBUTE_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.BB_CODE_ATTRIBUTE OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.BB_CODE_ATTRIBUTE_MODE ( + BB_CODE_ATTRIBUTE_MODE_ID INTEGER DEFAULT NEXTVAL( + 'zfgbb.bb_code_attribute_mode_bb_code_attribute_mode_id_seq'::REGCLASS + ) NOT NULL, + BB_CODE_CONFIG_ID INTEGER NOT NULL, + CONTENT_IS_ATTRIBUTE_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + OPEN_TAG CHARACTER VARYING(64) NOT NULL, + CLOSE_TAG CHARACTER VARYING(64) NOT NULL, + OUTPUT_CONTENT_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + CONSTRAINT BB_CODE_ATTRIBUTE_MODE_PKEY PRIMARY KEY (BB_CODE_ATTRIBUTE_MODE_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.BB_CODE_ATTRIBUTE_MODE OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.BB_CODE_CONFIG ( + BB_CODE_CONFIG_ID INTEGER DEFAULT NEXTVAL( + 'zfgbb.bb_code_config_bb_code_config_id_seq'::REGCLASS + ) NOT NULL, + CODE CHARACTER VARYING(12) NOT NULL, + END_TAG CHARACTER VARYING(32) NOT NULL, + PROCESS_CONTENT_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + CONSTRAINT BB_CODE_CONFIG_CODE_KEY UNIQUE (CODE), + CONSTRAINT BB_CODE_CONFIG_PKEY PRIMARY KEY (BB_CODE_CONFIG_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.BB_CODE_CONFIG OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.PERMISSION ( + PERMISSION_ID INTEGER DEFAULT NEXTVAL('zfgbb.permission_permission_id_seq'::REGCLASS) NOT NULL, + PERMISSION_NAME CHARACTER VARYING(32) NOT NULL, + PERMISSION_CODE CHARACTER VARYING(64) NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + CONSTRAINT PERMISSION_PKEY PRIMARY KEY (PERMISSION_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.PERMISSION OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.USER ( + USER_ID INTEGER DEFAULT NEXTVAL('zfgbb.user_user_id_seq'::REGCLASS) NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + SSO_KEY CHARACTER VARYING(64) NOT NULL, + ACTIVE_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + DISPLAY_NAME CHARACTER VARYING NOT NULL, + CONSTRAINT USER_PKEY PRIMARY KEY (USER_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.USER OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.CATEGORY ( + CATEGORY_ID INTEGER DEFAULT NEXTVAL('zfgbb.forum_forum_id_seq'::REGCLASS) NOT NULL, + CATEGORY_NAME CHARACTER VARYING(32) NOT NULL, + DESCRIPTION CHARACTER VARYING(64), + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP, + PARENT_BOARD_ID INTEGER, + CONSTRAINT FORUM_PKEY PRIMARY KEY (CATEGORY_ID) +); + +ALTER TABLE IF EXISTS ZFGBB.CATEGORY OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.BOARD ( + BOARD_ID INTEGER DEFAULT NEXTVAL('zfgbb.board_board_id_seq'::REGCLASS) NOT NULL, + BOARD_NAME TEXT NOT NULL, + DESCRIPTION TEXT, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP, + CATEGORY_ID INTEGER, + CONSTRAINT BOARD_PKEY PRIMARY KEY (BOARD_ID), + CONSTRAINT FK_BOARD_CATEGORY_ID FOREIGN KEY (CATEGORY_ID) REFERENCES ZFGBB.CATEGORY (CATEGORY_ID) NOT VALID +); + +ALTER TABLE IF EXISTS ZFGBB.BOARD OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.THREAD ( + THREAD_ID INTEGER DEFAULT NEXTVAL('zfgbb.thread_thread_id_seq'::REGCLASS) NOT NULL, + THREAD_NAME CHARACTER VARYING(64) NOT NULL, + LOCKED_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + PINNED_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + BOARD_ID INTEGER NOT NULL, + CREATED_USER_ID INTEGER NOT NULL, + CONSTRAINT THREAD_PKEY PRIMARY KEY (THREAD_ID), + CONSTRAINT FK_THREAD_BOARD_ID FOREIGN KEY (BOARD_ID) REFERENCES ZFGBB.BOARD (BOARD_ID) NOT VALID, + CONSTRAINT FK_THREAD_CREATED_USER_ID FOREIGN KEY (CREATED_USER_ID) REFERENCES ZFGBB.USER (USER_ID) NOT VALID +); + +ALTER TABLE IF EXISTS ZFGBB.THREAD OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.MESSAGE ( + MESSAGE_ID INTEGER DEFAULT NEXTVAL('zfgbb.message_message_id_seq'::REGCLASS) NOT NULL, + OWNER_ID INTEGER NOT NULL, + THREAD_ID INTEGER, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + POST_IN_THREAD INTEGER DEFAULT 0 NOT NULL, + CONSTRAINT MESSAGE_PKEY PRIMARY KEY (MESSAGE_ID), + CONSTRAINT FK_MESSAGE_THREAD_ID FOREIGN KEY (THREAD_ID) REFERENCES ZFGBB.THREAD (THREAD_ID) NOT VALID, + CONSTRAINT FK_MESSAGE_USER_ID FOREIGN KEY (OWNER_ID) REFERENCES ZFGBB.USER (USER_ID) NOT VALID +); + +ALTER TABLE IF EXISTS ZFGBB.MESSAGE OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.MESSAGE_HISTORY ( + MESSAGE_HISTORY_ID INTEGER DEFAULT NEXTVAL( + 'zfgbb.message_history_message_history_id_seq'::REGCLASS + ) NOT NULL, + MESSAGE_ID INTEGER NOT NULL, + MESSAGE_TEXT TEXT NOT NULL, + CURRENT_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + IP_ADDRESS_ID INTEGER NOT NULL, + CONSTRAINT MESSAGE_HISTORY_PKEY PRIMARY KEY (MESSAGE_ID), + CONSTRAINT FK_MESSAGE_HISTORY_IP_ADDRESS_ID FOREIGN KEY (IP_ADDRESS_ID) REFERENCES ZFGBB.IP_ADDRESS (IP_ADDRESS_ID) NOT VALID, + CONSTRAINT FK_MESSAGE_HISTORY_MESSAGE_ID FOREIGN KEY (MESSAGE_ID) REFERENCES ZFGBB.MESSAGE (MESSAGE_ID) NOT VALID +); + +ALTER TABLE IF EXISTS ZFGBB.MESSAGE_HISTORY OWNER TO ZFGCADMIN; + + +CREATE TABLE IF NOT EXISTS ZFGBB.EMAIL_ADDRESS ( + EMAIL_ADDRESS_ID INTEGER DEFAULT NEXTVAL( + 'zfgbb.email_address_email_address_id_seq'::REGCLASS + ) NOT NULL, + EMAIL_ADDRESS CHARACTER VARYING(32) NOT NULL, + CREATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + UPDATED_TS TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL, + SPAMMER_FLAG BOOLEAN DEFAULT FALSE NOT NULL, + USER_ID INTEGER, + CONSTRAINT EMAIL_ADDRESS_PKEY PRIMARY KEY (EMAIL_ADDRESS_ID), + CONSTRAINT UN_EMAIL_ADDRESS_USER_ID UNIQUE (USER_ID), + CONSTRAINT FK_EMAIL_ADDRESS_USER_ID FOREIGN KEY (USER_ID) REFERENCES ZFGBB.USER (USER_ID) NOT VALID +); + +ALTER TABLE IF EXISTS ZFGBB.EMAIL_ADDRESS OWNER TO ZFGCADMIN; + +CREATE TABLE IF NOT EXISTS ZFGBB.BR_BOARD_PERMISSION ( + BR_BOARD_PERMISSION_ID INTEGER DEFAULT NEXTVAL( + 'zfgbb.br_board_permission_br_board_permission_id_seq'::REGCLASS + ) NOT NULL, + BOARD_ID INTEGER NOT NULL, + PERMISSION_ID INTEGER NOT NULL, + CONSTRAINT BR_BOARD_PERMISSION_PKEY PRIMARY KEY (BR_BOARD_PERMISSION_ID), + CONSTRAINT UN_BOARD_PERMISSION UNIQUE (BOARD_ID, PERMISSION_ID), + CONSTRAINT FK_BOARD_PERMISSION_BOARD_ID FOREIGN KEY (BOARD_ID) REFERENCES ZFGBB.BOARD (BOARD_ID) NOT VALID, + CONSTRAINT FK_BOARD_PERMISSION_PERMISSION_ID FOREIGN KEY (PERMISSION_ID) REFERENCES ZFGBB.PERMISSION (PERMISSION_ID) NOT VALID +); + +ALTER TABLE IF EXISTS ZFGBB.BR_BOARD_PERMISSION OWNER TO ZFGCADMIN; + +CREATE OR REPLACE VIEW ZFGBB.BOARD_PERMISSION_VIEW AS +SELECT + B.BOARD_ID, + P.PERMISSION_ID, + P.PERMISSION_CODE, + P.PERMISSION_NAME +FROM + ( + ( + ZFGBB.BR_BOARD_PERMISSION BR + JOIN ZFGBB.PERMISSION P ON ((P.PERMISSION_ID = BR.PERMISSION_ID)) + ) + JOIN ZFGBB.BOARD B ON ((B.BOARD_ID = BR.BOARD_ID)) + ); + +CREATE TABLE IF NOT EXISTS ZFGBB.BR_USER_PERMISSION ( + BR_USER_PERMISSION_ID INTEGER DEFAULT NEXTVAL( + 'zfgbb.br_user_permission_br_user_permission_id_seq'::REGCLASS + ) NOT NULL, + USER_PERMISSION_ID INTEGER NOT NULL, + USER_ID INTEGER NOT NULL, + CONSTRAINT BR_USER_PERMISSION_PKEY PRIMARY KEY (BR_USER_PERMISSION_ID), + CONSTRAINT FK_BR_USER_PERMISSION_ID_USER_ID FOREIGN KEY (USER_ID) REFERENCES ZFGBB.USER (USER_ID) MATCH FULL NOT VALID, + CONSTRAINT FK_BR_USER_PERMISSION_PERMISSION_ID FOREIGN KEY (USER_PERMISSION_ID) REFERENCES ZFGBB.PERMISSION (PERMISSION_ID) MATCH FULL NOT VALID +); + +ALTER TABLE IF EXISTS ZFGBB.BR_USER_PERMISSION OWNER TO ZFGCADMIN; + +CREATE OR REPLACE VIEW ZFGBB.USER_PERMISSION_VIEW AS +SELECT + U.USER_ID, + P.PERMISSION_ID, + P.PERMISSION_CODE +FROM + ( + ZFGBB.BR_USER_PERMISSION U + JOIN ZFGBB.PERMISSION P ON ((P.PERMISSION_ID = U.USER_PERMISSION_ID)) + ); + +CREATE OR REPLACE VIEW ZFGBB.CURRENT_MESSAGE_VIEW AS +SELECT + M.MESSAGE_ID, + M.OWNER_ID, + M.THREAD_ID, + H.MESSAGE_TEXT, + H.MESSAGE_HISTORY_ID, + M.POST_IN_THREAD +FROM + ( + ZFGBB.MESSAGE M + JOIN ZFGBB.MESSAGE_HISTORY H ON ( + ( + (H.MESSAGE_ID = M.MESSAGE_ID) + AND (H.CURRENT_FLAG = TRUE) + ) + ) + ); \ No newline at end of file diff --git a/src/main/database/tables/BOARD.sql b/src/main/database/tables/BOARD.sql index 273e650..f10c87d 100644 --- a/src/main/database/tables/BOARD.sql +++ b/src/main/database/tables/BOARD.sql @@ -1,39 +1,39 @@ --- Table: zfgbb.board - --- DROP TABLE IF EXISTS zfgbb.board; - -CREATE TABLE IF NOT EXISTS zfgbb.board -( - board_id integer NOT NULL DEFAULT nextval('zfgbb.board_board_id_seq'::regclass), - board_name character varying(32) COLLATE pg_catalog."default" NOT NULL, - description character varying(64) COLLATE pg_catalog."default", - parent_id integer, - created_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, - updated_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, - category_id integer NOT NULL, - CONSTRAINT board_pkey PRIMARY KEY (board_id), - CONSTRAINT fk_board_category_id FOREIGN KEY (category_id) - REFERENCES zfgbb.category (category_id) MATCH SIMPLE - ON UPDATE NO ACTION - ON DELETE NO ACTION - NOT VALID, - CONSTRAINT fk_board_parent_id FOREIGN KEY (parent_id) - REFERENCES zfgbb.board (board_id) MATCH FULL - ON UPDATE NO ACTION - ON DELETE NO ACTION -) -WITH ( - OIDS = FALSE -) -TABLESPACE pg_default; - -ALTER TABLE IF EXISTS zfgbb.board - OWNER to zfgcadmin; --- Index: fki_fk_board_parent_id - --- DROP INDEX IF EXISTS zfgbb.fki_fk_board_parent_id; - -CREATE INDEX IF NOT EXISTS fki_fk_board_parent_id - ON zfgbb.board USING btree - (parent_id ASC NULLS LAST) +-- Table: zfgbb.board + +-- DROP TABLE IF EXISTS zfgbb.board; + +CREATE TABLE IF NOT EXISTS zfgbb.board +( + board_id integer NOT NULL DEFAULT nextval('zfgbb.board_board_id_seq'::regclass), + board_name character varying(32) COLLATE pg_catalog."default" NOT NULL, + description character varying(64) COLLATE pg_catalog."default", + parent_id integer, + created_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, + updated_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, + category_id integer NOT NULL, + CONSTRAINT board_pkey PRIMARY KEY (board_id), + CONSTRAINT fk_board_category_id FOREIGN KEY (category_id) + REFERENCES zfgbb.category (category_id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE NO ACTION + NOT VALID, + CONSTRAINT fk_board_parent_id FOREIGN KEY (parent_id) + REFERENCES zfgbb.board (board_id) MATCH FULL + ON UPDATE NO ACTION + ON DELETE NO ACTION +) +WITH ( + OIDS = FALSE +) +TABLESPACE pg_default; + +ALTER TABLE IF EXISTS zfgbb.board + OWNER to zfgcadmin; +-- Index: fki_fk_board_parent_id + +-- DROP INDEX IF EXISTS zfgbb.fki_fk_board_parent_id; + +CREATE INDEX IF NOT EXISTS fki_fk_board_parent_id + ON zfgbb.board USING btree + (parent_id ASC NULLS LAST) TABLESPACE pg_default; \ No newline at end of file diff --git a/src/main/database/tables/CATEGORY.sql b/src/main/database/tables/CATEGORY.sql index 0a8ff08..d355d90 100644 --- a/src/main/database/tables/CATEGORY.sql +++ b/src/main/database/tables/CATEGORY.sql @@ -1,20 +1,20 @@ --- Table: zfgbb.category - --- DROP TABLE IF EXISTS zfgbb.category; - -CREATE TABLE IF NOT EXISTS zfgbb.category -( - category_id integer NOT NULL DEFAULT nextval('zfgbb.forum_forum_id_seq'::regclass), - category_name character varying(32) COLLATE pg_catalog."default" NOT NULL, - descriptipn character varying(64) COLLATE pg_catalog."default", - created_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, - updated_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, - CONSTRAINT forum_pkey PRIMARY KEY (category_id) -) -WITH ( - OIDS = FALSE -) -TABLESPACE pg_default; - -ALTER TABLE IF EXISTS zfgbb.category +-- Table: zfgbb.category + +-- DROP TABLE IF EXISTS zfgbb.category; + +CREATE TABLE IF NOT EXISTS zfgbb.category +( + category_id integer NOT NULL DEFAULT nextval('zfgbb.forum_forum_id_seq'::regclass), + category_name character varying(32) COLLATE pg_catalog."default" NOT NULL, + descriptipn character varying(64) COLLATE pg_catalog."default", + created_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, + updated_ts timestamp with time zone DEFAULT CURRENT_TIMESTAMP, + CONSTRAINT forum_pkey PRIMARY KEY (category_id) +) +WITH ( + OIDS = FALSE +) +TABLESPACE pg_default; + +ALTER TABLE IF EXISTS zfgbb.category OWNER to zfgcdev; \ No newline at end of file diff --git a/src/main/database/views/BOARD_PERMISSION_VIEW.sql b/src/main/database/views/BOARD_PERMISSION_VIEW.sql index 6a7b30a..48e0829 100644 --- a/src/main/database/views/BOARD_PERMISSION_VIEW.sql +++ b/src/main/database/views/BOARD_PERMISSION_VIEW.sql @@ -1,8 +1,8 @@ -create or replace view board_permission_view as -select b.board_id, - p.permission_id, - p.permission_code, - p.permission_name -from zfgbb.br_board_permission br -join zfgbb.permission p on p.permission_id = br.permission_id +create or replace view board_permission_view as +select b.board_id, + p.permission_id, + p.permission_code, + p.permission_name +from zfgbb.br_board_permission br +join zfgbb.permission p on p.permission_id = br.permission_id join zfgbb.board b on b.board_id = br.board_id \ No newline at end of file diff --git a/src/main/database/views/CURRENT_MESSAGE_VIEW.sql b/src/main/database/views/CURRENT_MESSAGE_VIEW.sql index 6f79475..f419978 100644 --- a/src/main/database/views/CURRENT_MESSAGE_VIEW.sql +++ b/src/main/database/views/CURRENT_MESSAGE_VIEW.sql @@ -4,6 +4,7 @@ select m.message_id, m.thread_id, h.message_text, h.message_history_id, - m.post_in_thread + m.post_in_thread, + h.created_ts from zfgbb.message m join zfgbb.message_history h on h.message_id = m.message_id and h.current_flag = true diff --git a/src/main/database/views/USER_PERMISSION_VIEW.sql b/src/main/database/views/USER_PERMISSION_VIEW.sql index 6656482..465b8d3 100644 --- a/src/main/database/views/USER_PERMISSION_VIEW.sql +++ b/src/main/database/views/USER_PERMISSION_VIEW.sql @@ -1,5 +1,5 @@ -SELECT u.user_id, - p.permission_id, - p.permission_code -FROM zfgbb.br_user_permission u +SELECT u.user_id, + p.permission_id, + p.permission_code +FROM zfgbb.br_user_permission u JOIN zfgbb.permission p ON p.permission_id = u.user_permission_id \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/ServletInitializer.java b/src/main/java/com/zfgc/zfgbb/ServletInitializer.java index 0ec06ae..23b512f 100644 --- a/src/main/java/com/zfgc/zfgbb/ServletInitializer.java +++ b/src/main/java/com/zfgc/zfgbb/ServletInitializer.java @@ -1,13 +1,13 @@ -package com.zfgc.zfgbb; - -import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; - -public class ServletInitializer extends SpringBootServletInitializer { - - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { - return application.sources(ZfgbbApplication.class); - } - -} +package com.zfgc.zfgbb; + +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + +public class ServletInitializer extends SpringBootServletInitializer { + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(ZfgbbApplication.class); + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/ZfgbbApplication.java b/src/main/java/com/zfgc/zfgbb/ZfgbbApplication.java index 901c273..61381e4 100644 --- a/src/main/java/com/zfgc/zfgbb/ZfgbbApplication.java +++ b/src/main/java/com/zfgc/zfgbb/ZfgbbApplication.java @@ -12,13 +12,14 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; +import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @SpringBootApplication @MapperScan("com.zfgc.zfgbb.mappers") -@EnableGlobalMethodSecurity(prePostEnabled = true) +@EnableMethodSecurity(prePostEnabled = true) public class ZfgbbApplication { public static void main(String[] args) { diff --git a/src/main/java/com/zfgc/zfgbb/config/annotations/BbService.java b/src/main/java/com/zfgc/zfgbb/config/annotations/BbService.java index 86eb52e..4928301 100644 --- a/src/main/java/com/zfgc/zfgbb/config/annotations/BbService.java +++ b/src/main/java/com/zfgc/zfgbb/config/annotations/BbService.java @@ -1,10 +1,10 @@ -package com.zfgc.zfgbb.config.annotations; - -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -@Service -@Transactional -public @interface BbService { - -} +package com.zfgc.zfgbb.config.annotations; + +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +@Service +@Transactional +public @interface BbService { + +} diff --git a/src/main/java/com/zfgc/zfgbb/config/loadoption/BaseLoadOption.java b/src/main/java/com/zfgc/zfgbb/config/loadoption/BaseLoadOption.java new file mode 100644 index 0000000..4e20b61 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/config/loadoption/BaseLoadOption.java @@ -0,0 +1,6 @@ +package com.zfgc.zfgbb.config.loadoption; + + +public class BaseLoadOption { + +} diff --git a/src/main/java/com/zfgc/zfgbb/config/loadoption/user/BasicUserLoadOptions.java b/src/main/java/com/zfgc/zfgbb/config/loadoption/user/BasicUserLoadOptions.java new file mode 100644 index 0000000..2b1d7ab --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/config/loadoption/user/BasicUserLoadOptions.java @@ -0,0 +1,18 @@ +package com.zfgc.zfgbb.config.loadoption.user; + +import com.zfgc.zfgbb.config.loadoption.BaseLoadOption; + +public class BasicUserLoadOptions extends BaseLoadOption { + + public boolean loadAvatar() { + return true; + } + + public boolean loadBio() { + return true; + } + + public boolean loadPermissions() { + return false; + } +} diff --git a/src/main/java/com/zfgc/zfgbb/config/loadoption/user/FullUserLoadOptions.java b/src/main/java/com/zfgc/zfgbb/config/loadoption/user/FullUserLoadOptions.java new file mode 100644 index 0000000..3ce9529 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/config/loadoption/user/FullUserLoadOptions.java @@ -0,0 +1,13 @@ +package com.zfgc.zfgbb.config.loadoption.user; + +public class FullUserLoadOptions extends BasicUserLoadOptions { + @Override + public boolean loadBio() { + return true; + } + + @Override + public boolean loadPermissions() { + return true; + } +} diff --git a/src/main/java/com/zfgc/zfgbb/config/loadoption/user/LoggedInUserLoadOptions.java b/src/main/java/com/zfgc/zfgbb/config/loadoption/user/LoggedInUserLoadOptions.java new file mode 100644 index 0000000..d132c2d --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/config/loadoption/user/LoggedInUserLoadOptions.java @@ -0,0 +1,16 @@ +package com.zfgc.zfgbb.config.loadoption.user; + +public class LoggedInUserLoadOptions extends BasicUserLoadOptions { + + public boolean loadAvatar() { + return false; + } + + public boolean loadBio() { + return false; + } + + public boolean loadPermissions() { + return true; + } +} diff --git a/src/main/java/com/zfgc/zfgbb/config/security/Oauth2AuthorizationFilter.java b/src/main/java/com/zfgc/zfgbb/config/security/Oauth2AuthorizationFilter.java index a03bc1b..d6f213e 100644 --- a/src/main/java/com/zfgc/zfgbb/config/security/Oauth2AuthorizationFilter.java +++ b/src/main/java/com/zfgc/zfgbb/config/security/Oauth2AuthorizationFilter.java @@ -1,50 +1,50 @@ -package com.zfgc.zfgbb.config.security; - -import java.io.IOException; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; -import org.springframework.security.core.context.SecurityContext; -import org.springframework.security.core.context.SecurityContextHolder; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.security.oauth2.jwt.Jwt; -import org.springframework.web.filter.GenericFilterBean; - -import com.zfgc.zfgbb.util.ZfgcSecurityUtils; - -import jakarta.servlet.FilterChain; -import jakarta.servlet.ServletException; -import jakarta.servlet.ServletRequest; -import jakarta.servlet.ServletResponse; - -public class Oauth2AuthorizationFilter extends GenericFilterBean { - - @Autowired - private OauthUsersDetailsServiceImpl oauthUsersDetailsServiceImpl; - - public Oauth2AuthorizationFilter (OauthUsersDetailsServiceImpl userDetailsService) { - this.oauthUsersDetailsServiceImpl = userDetailsService; - } - - - @Override - public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) - throws IOException, ServletException { - - SecurityContext context = SecurityContextHolder.getContext(); - if(context.getAuthentication() != null && context.getAuthentication().getPrincipal() instanceof Jwt) { - - //check here what authority user came from and transform to an sso key here - //for now we only support clausius auth, but facebook and google are to come - //String ssoKey = "CLAUSIUS:" + ZfgcSecurityUtils.generateMd5(((Jwt)context.getAuthentication().getPrincipal()).getClaimAsString("user_name")); - String userName = ((Jwt)context.getAuthentication().getPrincipal()).getClaimAsString("user_name"); - - UserDetails user = oauthUsersDetailsServiceImpl.loadUserByUsername(userName); - UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(user, null, user.getAuthorities()); - context.setAuthentication(authentication); - } - - chain.doFilter(request, response); - } - +package com.zfgc.zfgbb.config.security; + +import java.io.IOException; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; +import org.springframework.security.core.context.SecurityContext; +import org.springframework.security.core.context.SecurityContextHolder; +import org.springframework.security.core.userdetails.UserDetails; +import org.springframework.security.oauth2.jwt.Jwt; +import org.springframework.web.filter.GenericFilterBean; + +import com.zfgc.zfgbb.util.ZfgcSecurityUtils; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; + +public class Oauth2AuthorizationFilter extends GenericFilterBean { + + @Autowired + private OauthUsersDetailsServiceImpl oauthUsersDetailsServiceImpl; + + public Oauth2AuthorizationFilter (OauthUsersDetailsServiceImpl userDetailsService) { + this.oauthUsersDetailsServiceImpl = userDetailsService; + } + + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException { + + SecurityContext context = SecurityContextHolder.getContext(); + if(context.getAuthentication() != null && context.getAuthentication().getPrincipal() instanceof Jwt) { + + //check here what authority user came from and transform to an sso key here + //for now we only support clausius auth, but facebook and google are to come + //String ssoKey = "CLAUSIUS:" + ZfgcSecurityUtils.generateMd5(((Jwt)context.getAuthentication().getPrincipal()).getClaimAsString("user_name")); + String userName = ((Jwt)context.getAuthentication().getPrincipal()).getClaimAsString("user_name"); + + UserDetails user = oauthUsersDetailsServiceImpl.loadUserByUsername(userName); + UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(user, null, user.getAuthorities()); + context.setAuthentication(authentication); + } + + chain.doFilter(request, response); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/config/security/OauthUsersDetailsServiceImpl.java b/src/main/java/com/zfgc/zfgbb/config/security/OauthUsersDetailsServiceImpl.java index 67e0501..2100038 100644 --- a/src/main/java/com/zfgc/zfgbb/config/security/OauthUsersDetailsServiceImpl.java +++ b/src/main/java/com/zfgc/zfgbb/config/security/OauthUsersDetailsServiceImpl.java @@ -1,65 +1,65 @@ -package com.zfgc.zfgbb.config.security; - -import java.util.ArrayList; -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.http.HttpEntity; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpMethod; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.security.core.userdetails.UserDetailsService; -import org.springframework.security.core.userdetails.UsernameNotFoundException; -import org.springframework.stereotype.Service; -import org.springframework.web.client.RestTemplate; - -import com.zfgc.zfgbb.dao.users.EmailAddressDao; -import com.zfgc.zfgbb.dao.users.UserDao; -import com.zfgc.zfgbb.dao.UserPermissionViewDao; -import com.zfgc.zfgbb.dataprovider.users.UserDataProvider; -import com.zfgc.zfgbb.dbo.EmailAddressDboExample; -import com.zfgc.zfgbb.dbo.UserDbo; -import com.zfgc.zfgbb.dbo.UserDboExample; -import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; -import com.zfgc.zfgbb.model.User; -import com.zfgc.zfgbb.model.users.AuthCredentials; - -@Service -public class OauthUsersDetailsServiceImpl implements UserDetailsService{ - - @Value("${clausius.client}") - private String clientId; - - @Value("${clausius.password}") - private String clientSecret; - - @Value("${clausius.authEndpoint}") - private String authEndpoint; - - @Autowired - private UserDataProvider userDataProvider; - - @Override - public UserDetails loadUserByUsername(String ssoKey) throws UsernameNotFoundException { - return userDataProvider.getUser(ssoKey); - } - - public String getLoginToken(AuthCredentials credentials) { - RestTemplate template = new RestTemplate(); - HttpHeaders headers = new HttpHeaders(); - headers.setBasicAuth(clientId, clientSecret); - headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED); - - //todo: move these paramters into the request body - HttpEntity ent = new HttpEntity("grant_type=password&scope=all&username=" + credentials.getUsername() + "&password=" + credentials.getPassword(), headers); - - ResponseEntity result = template.exchange(authEndpoint + "/oauth/token", HttpMethod.POST, ent, String.class); - return result.getBody(); - } - - - +package com.zfgc.zfgbb.config.security; + +import java.util.ArrayList; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.HttpEntity; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import org.springframework.security.core.userdetails.UserDetails; +import org.springframework.security.core.userdetails.UserDetailsService; +import org.springframework.security.core.userdetails.UsernameNotFoundException; +import org.springframework.stereotype.Service; +import org.springframework.web.client.RestTemplate; + +import com.zfgc.zfgbb.dao.users.EmailAddressDao; +import com.zfgc.zfgbb.dao.users.UserDao; +import com.zfgc.zfgbb.dao.UserPermissionViewDao; +import com.zfgc.zfgbb.dataprovider.users.UserDataProvider; +import com.zfgc.zfgbb.dbo.EmailAddressDboExample; +import com.zfgc.zfgbb.dbo.UserDbo; +import com.zfgc.zfgbb.dbo.UserDboExample; +import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; +import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.model.users.AuthCredentials; + +@Service +public class OauthUsersDetailsServiceImpl implements UserDetailsService{ + + @Value("${clausius.client}") + private String clientId; + + @Value("${clausius.password}") + private String clientSecret; + + @Value("${clausius.authEndpoint}") + private String authEndpoint; + + @Autowired + private UserDataProvider userDataProvider; + + @Override + public UserDetails loadUserByUsername(String ssoKey) throws UsernameNotFoundException { + return userDataProvider.getUser(ssoKey); + } + + public String getLoginToken(AuthCredentials credentials) { + RestTemplate template = new RestTemplate(); + HttpHeaders headers = new HttpHeaders(); + headers.setBasicAuth(clientId, clientSecret); + headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED); + + //todo: move these paramters into the request body + HttpEntity ent = new HttpEntity("grant_type=password&scope=all&username=" + credentials.getUsername() + "&password=" + credentials.getPassword(), headers); + + ResponseEntity result = template.exchange(authEndpoint + "/oauth/token", HttpMethod.POST, ent, String.class); + return result.getBody(); + } + + + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/config/security/SecurityConfig.java b/src/main/java/com/zfgc/zfgbb/config/security/SecurityConfig.java index 4d674fc..75ad3a1 100644 --- a/src/main/java/com/zfgc/zfgbb/config/security/SecurityConfig.java +++ b/src/main/java/com/zfgc/zfgbb/config/security/SecurityConfig.java @@ -1,56 +1,56 @@ -package com.zfgc.zfgbb.config.security; - -import javax.crypto.spec.SecretKeySpec; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.security.config.Customizer; -import org.springframework.security.config.annotation.web.builders.HttpSecurity; -import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; -import org.springframework.security.config.annotation.web.configurers.HttpBasicConfigurer; -import org.springframework.security.oauth2.jwt.NimbusJwtDecoder; -import org.springframework.security.web.SecurityFilterChain; -import org.springframework.security.web.authentication.switchuser.SwitchUserFilter; - -@Configuration -@EnableWebSecurity -public class SecurityConfig{ - - // userDetailsService bean - @Autowired - private OauthUsersDetailsServiceImpl oauthUsersDetailsServiceImpl; - - @Value("${clausius.auth.key}") - private String authKey; - - @Bean - public Oauth2AuthorizationFilter jwtAuthTokenFilterBean() throws Exception { - return new Oauth2AuthorizationFilter(oauthUsersDetailsServiceImpl); - } - - - - @Bean - public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { - //test key for now - SecretKeySpec key = new SecretKeySpec(authKey.getBytes(), "HMACSHA256"); - - http.httpBasic(httpBasic -> httpBasic.disable()) - .csrf(csrf -> csrf.disable()) - .authorizeHttpRequests(req -> req.requestMatchers("//*.map", "/**").permitAll()) - .authorizeHttpRequests(req -> req.anyRequest().authenticated()) - .oauth2ResourceServer(oauth -> oauth.jwt(jwt -> jwt.decoder(NimbusJwtDecoder.withSecretKey(key).build()))); - - /*http.httpBasic().disable().csrf().disable().authorizeRequests().requestMatchers("//*.map", - "/**").permitAll().and().authorizeRequests().anyRequest().authenticated().and() - .oauth2ResourceServer().jwt().decoder(NimbusJwtDecoder.withSecretKey(key).build());*/ - - http.addFilterAfter(jwtAuthTokenFilterBean(), SwitchUserFilter.class); - return http.build(); - - } - - +package com.zfgc.zfgbb.config.security; + +import javax.crypto.spec.SecretKeySpec; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.security.config.Customizer; +import org.springframework.security.config.annotation.web.builders.HttpSecurity; +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; +import org.springframework.security.config.annotation.web.configurers.HttpBasicConfigurer; +import org.springframework.security.oauth2.jwt.NimbusJwtDecoder; +import org.springframework.security.web.SecurityFilterChain; +import org.springframework.security.web.authentication.switchuser.SwitchUserFilter; + +@Configuration +@EnableWebSecurity +public class SecurityConfig{ + + // userDetailsService bean + @Autowired + private OauthUsersDetailsServiceImpl oauthUsersDetailsServiceImpl; + + @Value("${clausius.auth.key}") + private String authKey; + + @Bean + public Oauth2AuthorizationFilter jwtAuthTokenFilterBean() throws Exception { + return new Oauth2AuthorizationFilter(oauthUsersDetailsServiceImpl); + } + + + + @Bean + public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { + //test key for now + SecretKeySpec key = new SecretKeySpec(authKey.getBytes(), "HMACSHA256"); + + http.httpBasic(httpBasic -> httpBasic.disable()) + .csrf(csrf -> csrf.disable()) + .authorizeHttpRequests(req -> req.requestMatchers("//*.map", "/**").permitAll()) + .authorizeHttpRequests(req -> req.anyRequest().authenticated()) + .oauth2ResourceServer(oauth -> oauth.jwt(jwt -> jwt.decoder(NimbusJwtDecoder.withSecretKey(key).build()))); + + /*http.httpBasic().disable().csrf().disable().authorizeRequests().requestMatchers("//*.map", + "/**").permitAll().and().authorizeRequests().anyRequest().authenticated().and() + .oauth2ResourceServer().jwt().decoder(NimbusJwtDecoder.withSecretKey(key).build());*/ + + http.addFilterAfter(jwtAuthTokenFilterBean(), SwitchUserFilter.class); + return http.build(); + + } + + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/controller/BaseController.java b/src/main/java/com/zfgc/zfgbb/controller/BaseController.java index 4c448d0..6407716 100644 --- a/src/main/java/com/zfgc/zfgbb/controller/BaseController.java +++ b/src/main/java/com/zfgc/zfgbb/controller/BaseController.java @@ -33,6 +33,7 @@ private User createGuest() { guest.setUserId(-1); guestPerm.setId(2); guestPerm.setPermissionCode("ZFGC_GUEST"); + guest.getPermissions().add(guestPerm); return guest; diff --git a/src/main/java/com/zfgc/zfgbb/controller/ContentController.java b/src/main/java/com/zfgc/zfgbb/controller/ContentController.java new file mode 100644 index 0000000..72d0295 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/controller/ContentController.java @@ -0,0 +1,36 @@ +package com.zfgc.zfgbb.controller; + +import java.net.MalformedURLException; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.core.io.Resource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import com.zfgc.zfgbb.services.core.ContentService; + +@RestController +@RequestMapping("/content") +public class ContentController extends BaseController { + + @Autowired + private ContentService contentService; + + @GetMapping("image/{resourceId}") + public ResponseEntity getImageResource(@PathVariable("resourceId") Integer resourceId) throws MalformedURLException { + return prepareResource(contentService.getImageResource(resourceId)); + } + + private ResponseEntity prepareResource(Resource resource) { + return ResponseEntity.ok() + .contentType(MediaType.IMAGE_GIF) + .header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + resource.getFilename() + "\"") + .body(resource); + } + +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/controller/TestController.java b/src/main/java/com/zfgc/zfgbb/controller/TestController.java index ab2663d..3d96273 100644 --- a/src/main/java/com/zfgc/zfgbb/controller/TestController.java +++ b/src/main/java/com/zfgc/zfgbb/controller/TestController.java @@ -1,17 +1,17 @@ -package com.zfgc.zfgbb.controller; - -import org.springframework.http.ResponseEntity; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; - -@RestController -public class TestController extends BaseController { - - @GetMapping("/") - public ResponseEntity test() { - zfgcUser(); - return ResponseEntity.ok().build(); - } - +package com.zfgc.zfgbb.controller; + +import org.springframework.http.ResponseEntity; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController extends BaseController { + + @GetMapping("/") + public ResponseEntity test() { + zfgcUser(); + return ResponseEntity.ok().build(); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/controller/UserController.java b/src/main/java/com/zfgc/zfgbb/controller/UserController.java index aacefb7..4e73f54 100644 --- a/src/main/java/com/zfgc/zfgbb/controller/UserController.java +++ b/src/main/java/com/zfgc/zfgbb/controller/UserController.java @@ -1,48 +1,48 @@ -package com.zfgc.zfgbb.controller; - -import java.util.Base64; - -import org.apache.commons.lang3.StringUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.bind.annotation.RestController; - -import com.zfgc.zfgbb.config.security.OauthUsersDetailsServiceImpl; -import com.zfgc.zfgbb.model.User; -import com.zfgc.zfgbb.model.users.AuthCredentials; -import com.zfgc.zfgbb.services.core.UserService; - -@RestController -@RequestMapping("/users") -public class UserController extends BaseController { - - @Autowired - private OauthUsersDetailsServiceImpl oauthService; - - @Autowired - private UserService userService; - - @GetMapping("/loggedInUser") - public ResponseEntity getLoggedInUser() { - return ResponseEntity.ok(zfgcUser()); - } - - @PostMapping("auth/login") - public ResponseEntity login(@RequestBody AuthCredentials credentials) { - String result = oauthService.getLoginToken(credentials); - return ResponseEntity.status(HttpStatus.OK).body(result); - - } - - @PostMapping("/register") - public ResponseEntity registerNewUser(@RequestBody User user) { - return ResponseEntity.status(HttpStatus.OK).body(userService.createNewUser(user)); - } +package com.zfgc.zfgbb.controller; + +import java.util.Base64; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; + +import com.zfgc.zfgbb.config.security.OauthUsersDetailsServiceImpl; +import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.model.users.AuthCredentials; +import com.zfgc.zfgbb.services.core.UserService; + +@RestController +@RequestMapping("/users") +public class UserController extends BaseController { + + @Autowired + private OauthUsersDetailsServiceImpl oauthService; + + @Autowired + private UserService userService; + + @GetMapping("/loggedInUser") + public ResponseEntity getLoggedInUser() { + return ResponseEntity.ok(zfgcUser()); + } + + @PostMapping("auth/login") + public ResponseEntity login(@RequestBody AuthCredentials credentials) { + String result = oauthService.getLoginToken(credentials); + return ResponseEntity.status(HttpStatus.OK).body(result); + + } + + @PostMapping("/register") + public ResponseEntity registerNewUser(@RequestBody User user) { + return ResponseEntity.status(HttpStatus.OK).body(userService.createNewUser(user)); + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/controller/forum/BoardController.java b/src/main/java/com/zfgc/zfgbb/controller/forum/BoardController.java index 65f423f..ccae342 100644 --- a/src/main/java/com/zfgc/zfgbb/controller/forum/BoardController.java +++ b/src/main/java/com/zfgc/zfgbb/controller/forum/BoardController.java @@ -6,6 +6,7 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.zfgc.zfgbb.controller.BaseController; @@ -20,7 +21,12 @@ public class BoardController extends BaseController { private ForumService forumService; @GetMapping("/{boardId}") - public ResponseEntity getBoard(@PathVariable("boardId") Integer boardId) { - return ResponseEntity.ok(forumService.getForum(boardId, super.zfgcUser())); + public ResponseEntity getBoard(@PathVariable("boardId") Integer boardId, @RequestParam(name="pageNo",required=false) Integer pageNo) { + return ResponseEntity.ok(forumService.getBoard(boardId, pageNo, super.zfgcUser())); + } + + @GetMapping("/forum") + public ResponseEntity getForum() { + return ResponseEntity.ok(forumService.getForum(super.zfgcUser())); } } diff --git a/src/main/java/com/zfgc/zfgbb/controller/forum/MessageController.java b/src/main/java/com/zfgc/zfgbb/controller/forum/MessageController.java index cebbf3b..dba13a6 100644 --- a/src/main/java/com/zfgc/zfgbb/controller/forum/MessageController.java +++ b/src/main/java/com/zfgc/zfgbb/controller/forum/MessageController.java @@ -1,39 +1,39 @@ -package com.zfgc.zfgbb.controller.forum; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.ResponseEntity; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -import com.zfgc.zfgbb.controller.BaseController; -import com.zfgc.zfgbb.model.forum.Message; -import com.zfgc.zfgbb.model.forum.Thread; -import com.zfgc.zfgbb.services.forum.ForumService; - -@RestController -@RequestMapping("/message") -public class MessageController extends BaseController { - - @Autowired - private ForumService forumService; - - @GetMapping("/template") - //@PreAuthorize("hasRole('ROLE_ZFGC_THREAD_CREATOR')") - public ResponseEntity getMessageTemplate(@RequestParam("threadId") Integer threadId, Thread thread) { - Message template = forumService.getMessageTemplate(thread.getBoardId(), thread.getThreadId(), null, super.zfgcUser()); - return ResponseEntity.ok(template); - } - - @PostMapping("/{threadId}") - //@PreAuthorize("hasRole('ROLE_ZFGC_THREAD_POSTER')") - public ResponseEntity addMessageToThread(@PathVariable("threadId") Integer threadId, @RequestBody Message message) { - return ResponseEntity.ok(forumService.saveMessage(message, super.zfgcUser())); - } - +package com.zfgc.zfgbb.controller.forum; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import com.zfgc.zfgbb.controller.BaseController; +import com.zfgc.zfgbb.model.forum.Message; +import com.zfgc.zfgbb.model.forum.Thread; +import com.zfgc.zfgbb.services.forum.ForumService; + +@RestController +@RequestMapping("/message") +public class MessageController extends BaseController { + + @Autowired + private ForumService forumService; + + @GetMapping("/template") + //@PreAuthorize("hasRole('ROLE_ZFGC_THREAD_CREATOR')") + public ResponseEntity getMessageTemplate(@RequestParam("threadId") Integer threadId, Thread thread) { + Message template = forumService.getMessageTemplate(thread.getBoardId(), thread.getThreadId(), null, super.zfgcUser()); + return ResponseEntity.ok(template); + } + + @PostMapping("/{threadId}") + //@PreAuthorize("hasRole('ROLE_ZFGC_THREAD_POSTER')") + public ResponseEntity addMessageToThread(@PathVariable("threadId") Integer threadId, @RequestBody Message message) { + return ResponseEntity.ok(forumService.saveMessage(message, super.zfgcUser())); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/controller/forum/ThreadController.java b/src/main/java/com/zfgc/zfgbb/controller/forum/ThreadController.java index b2023b7..8df2b70 100644 --- a/src/main/java/com/zfgc/zfgbb/controller/forum/ThreadController.java +++ b/src/main/java/com/zfgc/zfgbb/controller/forum/ThreadController.java @@ -1,81 +1,81 @@ -package com.zfgc.zfgbb.controller.forum; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.ResponseEntity; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -import com.zfgc.zfgbb.model.forum.Message; -import com.zfgc.zfgbb.model.forum.Thread; -import com.zfgc.zfgbb.model.forum.ThreadSplit; -import com.zfgc.zfgbb.controller.BaseController; -import com.zfgc.zfgbb.services.forum.ForumService; - -@RestController -@RequestMapping("/thread") -public class ThreadController extends BaseController { - - @Autowired - private ForumService forumService; - - @GetMapping("/template") - public ResponseEntity getThreadTemplate(@RequestParam("boardId") Integer boardId) { - Thread template = forumService.getThreadTemplate(boardId, super.zfgcUser()); - return ResponseEntity.ok(template); - } - - @PostMapping - public ResponseEntity saveThread(@RequestParam("boardId") Integer boardId, Thread thread) { - Thread saved = forumService.saveThread(thread, super.zfgcUser()); - return ResponseEntity.ok(saved); - } - - @GetMapping("/{threadId}") - public ResponseEntity getThread(@PathVariable("threadId") Integer threadId, @RequestParam("numPerPage") Integer numPerPage, @RequestParam("pageNo") Integer pageNo) { - return ResponseEntity.ok(forumService.getThread(threadId, pageNo, numPerPage, super.zfgcUser())); - } - - @DeleteMapping("/{threadId}") - @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_DELETER')") - public ResponseEntity deleteThread(@PathVariable("threadId") Integer threadId) { - forumService.deleteThread(threadId, super.zfgcUser()); - return ResponseEntity.ok().build(); - } - - @PutMapping("/{threadId}/move/{boardId}") - @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") - public ResponseEntity moveThread(@PathVariable("threadId") Integer threadId, @PathVariable("boardId") Integer boardId) { - return ResponseEntity.ok(forumService.moveThread(threadId, boardId, super.zfgcUser())); - } - - @PutMapping("/{threadId}/lockToggle") - @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") - public ResponseEntity lockToggleThread(@PathVariable("threadId") Integer threadId) { - return ResponseEntity.ok(forumService.toggleLocked(threadId, super.zfgcUser())); - } - - @PutMapping("/{threadId}/stickyToggle") - @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") - public ResponseEntity stickyToggleThread(@PathVariable("threadId") Integer threadId) { - return ResponseEntity.ok(forumService.toggleSticky(threadId, super.zfgcUser())); - } - - @GetMapping("/{threadId}/split") - @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") - public ResponseEntity getThreadSplitTemplate(@PathVariable("threadId") Integer threadId) { - return ResponseEntity.ok(forumService.getSplitTemplate(threadId, super.zfgcUser())); - } - - @PostMapping("/{threadId}/split") - @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") - public ResponseEntity splitThread(@PathVariable("threadId") Integer threadId, ThreadSplit threadSplit) { - return ResponseEntity.ok(forumService.splitThread(threadSplit, super.zfgcUser())); - } +package com.zfgc.zfgbb.controller.forum; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import com.zfgc.zfgbb.model.forum.Message; +import com.zfgc.zfgbb.model.forum.Thread; +import com.zfgc.zfgbb.model.forum.ThreadSplit; +import com.zfgc.zfgbb.controller.BaseController; +import com.zfgc.zfgbb.services.forum.ForumService; + +@RestController +@RequestMapping("/thread") +public class ThreadController extends BaseController { + + @Autowired + private ForumService forumService; + + @GetMapping("/template") + public ResponseEntity getThreadTemplate(@RequestParam("boardId") Integer boardId) { + Thread template = forumService.getThreadTemplate(boardId, super.zfgcUser()); + return ResponseEntity.ok(template); + } + + @PostMapping + public ResponseEntity saveThread(@RequestParam("boardId") Integer boardId, Thread thread) { + Thread saved = forumService.saveThread(thread, super.zfgcUser()); + return ResponseEntity.ok(saved); + } + + @GetMapping("/{threadId}") + public ResponseEntity getThread(@PathVariable("threadId") Integer threadId, @RequestParam("numPerPage") Integer numPerPage, @RequestParam("pageNo") Integer pageNo) { + return ResponseEntity.ok(forumService.getThread(threadId, pageNo, numPerPage, super.zfgcUser())); + } + + @DeleteMapping("/{threadId}") + @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_DELETER')") + public ResponseEntity deleteThread(@PathVariable("threadId") Integer threadId) { + forumService.deleteThread(threadId, super.zfgcUser()); + return ResponseEntity.ok().build(); + } + + @PutMapping("/{threadId}/move/{boardId}") + @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") + public ResponseEntity moveThread(@PathVariable("threadId") Integer threadId, @PathVariable("boardId") Integer boardId) { + return ResponseEntity.ok(forumService.moveThread(threadId, boardId, super.zfgcUser())); + } + + @PutMapping("/{threadId}/lockToggle") + @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") + public ResponseEntity lockToggleThread(@PathVariable("threadId") Integer threadId) { + return ResponseEntity.ok(forumService.toggleLocked(threadId, super.zfgcUser())); + } + + @PutMapping("/{threadId}/stickyToggle") + @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") + public ResponseEntity stickyToggleThread(@PathVariable("threadId") Integer threadId) { + return ResponseEntity.ok(forumService.toggleSticky(threadId, super.zfgcUser())); + } + + @GetMapping("/{threadId}/split") + @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") + public ResponseEntity getThreadSplitTemplate(@PathVariable("threadId") Integer threadId) { + return ResponseEntity.ok(forumService.getSplitTemplate(threadId, super.zfgcUser())); + } + + @PostMapping("/{threadId}/split") + @PreAuthorize("hasRole('ROLE_ZFGC_THREAD_EDITOR')") + public ResponseEntity splitThread(@PathVariable("threadId") Integer threadId, ThreadSplit threadSplit) { + return ResponseEntity.ok(forumService.splitThread(threadSplit, super.zfgcUser())); + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/controller/forum/UserProfileController.java b/src/main/java/com/zfgc/zfgbb/controller/forum/UserProfileController.java index 692e62e..b9f2239 100644 --- a/src/main/java/com/zfgc/zfgbb/controller/forum/UserProfileController.java +++ b/src/main/java/com/zfgc/zfgbb/controller/forum/UserProfileController.java @@ -1,27 +1,36 @@ -package com.zfgc.zfgbb.controller.forum; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.ResponseEntity; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import com.zfgc.zfgbb.controller.BaseController; -import com.zfgc.zfgbb.services.core.UserService; - -@RestController -@RequestMapping("/user-profile") -public class UserProfileController extends BaseController { - - @Autowired - private UserService userService; - - @GetMapping("/{userId}") - @PreAuthorize("hasRole('ROLE_ZFGC_PROFILE_VIEWER')") - public ResponseEntity getUserProfile(@PathVariable("userId") Integer userId) { - return ResponseEntity.ok(userService.loadUser(userId)); - } - +package com.zfgc.zfgbb.controller.forum; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import com.zfgc.zfgbb.controller.BaseController; +import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.services.core.UserService; + +@RestController +@RequestMapping("/user-profile") +public class UserProfileController extends BaseController { + + @Autowired + private UserService userService; + + @GetMapping("/{userId}") + //@PreAuthorize("hasAnyRole('ROLE_ZFGC_PROFILE_VIEWER','ROLE_ZFGC_PROFILE_EDITOR','ROLE_ZFGC_PROFILE_ADMIN')") + public ResponseEntity getUserProfile(@PathVariable("userId") Integer userId) { + return ResponseEntity.ok(userService.loadUser(userId)); + } + + @PostMapping("/{userId}") + @PreAuthorize("hasAnyRole('ROLE_ZFGC_PROFILE_EDITOR','ROLE_ZFGC_PROFILE_ADMIN')") + public ResponseEntity saveUserProfile(@PathVariable("userId") Integer userId, @RequestBody User user) { + return ResponseEntity.ok(userService.saveUserProfile(user, zfgcUser())); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/AbstractDao.java b/src/main/java/com/zfgc/zfgbb/dao/AbstractDao.java index 91776e9..9b67b5a 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/AbstractDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/AbstractDao.java @@ -1,48 +1,48 @@ -package com.zfgc.zfgbb.dao; - -import java.util.ConcurrentModificationException; -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; - -import com.zfgc.zfgbb.dbo.AbstractDbo; - -public abstract class AbstractDao { - - protected DbMapper mapper; - public abstract Dbo get(Integer id); - public abstract List get(DbExample ex); - - public AbstractDao(DbMapper mapper) { - this.mapper = mapper; - } - - public Dbo save(Dbo toSave) { - - if(toSave.getPkId() == null) { - create(toSave); - } - else { - //get record from database - Dbo existing = get(toSave.getPkId()); - if(existing.getUpdatedTime().isAfter(toSave.getUpdatedTime())) { - //concurrency problem, get this garbo outta here - throw new ConcurrentModificationException(); - } - - update(toSave); - } - - //return the most up to date version of the record - return get(toSave.getPkId()); - } - - public DbMapper getMapper() { - return mapper; - } - - protected abstract void update(Dbo toSave); - protected abstract void create(Dbo toCreate); - public void delete(DbExample id) { throw new RuntimeException("delete not supported"); } - +package com.zfgc.zfgbb.dao; + +import java.util.ConcurrentModificationException; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + +import com.zfgc.zfgbb.dbo.AbstractDbo; + +public abstract class AbstractDao { + + protected DbMapper mapper; + public abstract Dbo get(Integer id); + public abstract List get(DbExample ex); + + public AbstractDao(DbMapper mapper) { + this.mapper = mapper; + } + + public Dbo save(Dbo toSave) { + + if(toSave.getPkId() == null) { + create(toSave); + } + else { + //get record from database + Dbo existing = get(toSave.getPkId()); + if(existing.getUpdatedTime().isAfter(toSave.getUpdatedTime())) { + //concurrency problem, get this garbo outta here + throw new ConcurrentModificationException(); + } + + update(toSave); + } + + //return the most up to date version of the record + return get(toSave.getPkId()); + } + + public DbMapper getMapper() { + return mapper; + } + + protected abstract void update(Dbo toSave); + protected abstract void create(Dbo toCreate); + public void delete(DbExample id) { throw new RuntimeException("delete not supported"); } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/BoardDao.java b/src/main/java/com/zfgc/zfgbb/dao/BoardDao.java index 9a64541..1172a30 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/BoardDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/BoardDao.java @@ -1,42 +1,42 @@ -package com.zfgc.zfgbb.dao; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.BoardDbo; -import com.zfgc.zfgbb.dbo.BoardDboExample; -import com.zfgc.zfgbb.mappers.BBCodeAttributeModeDboMapper; -import com.zfgc.zfgbb.mappers.BoardDboMapper; - -@Repository -public class BoardDao extends AbstractDao{ - - @Autowired - public BoardDao(BoardDboMapper mapper) { - super(mapper); - } - - @Override - public BoardDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - protected void update(BoardDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(BoardDbo toCreate) { - mapper.insert(toCreate); - } - - @Override - public List get(BoardDboExample ex) { - return mapper.selectByExample(ex); - } - +package com.zfgc.zfgbb.dao; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.BoardDbo; +import com.zfgc.zfgbb.dbo.BoardDboExample; +import com.zfgc.zfgbb.mappers.BBCodeAttributeModeDboMapper; +import com.zfgc.zfgbb.mappers.BoardDboMapper; + +@Repository +public class BoardDao extends AbstractDao{ + + @Autowired + public BoardDao(BoardDboMapper mapper) { + super(mapper); + } + + @Override + public BoardDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + protected void update(BoardDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(BoardDbo toCreate) { + mapper.insert(toCreate); + } + + @Override + public List get(BoardDboExample ex) { + return mapper.selectByExample(ex); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/BoardPermissionViewDao.java b/src/main/java/com/zfgc/zfgbb/dao/BoardPermissionViewDao.java index a716a13..319c96c 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/BoardPermissionViewDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/BoardPermissionViewDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.BoardPermissionViewDbo; -import com.zfgc.zfgbb.dbo.BoardPermissionViewDboExample; -import com.zfgc.zfgbb.mappers.BoardPermissionViewDboMapper; - -@Repository -public class BoardPermissionViewDao extends AbstractDao{ - - @Autowired - public BoardPermissionViewDao(BoardPermissionViewDboMapper mapper) { - super(mapper); - } - - @Override - public BoardPermissionViewDbo get(Integer id) { - return null; - } - - @Override - public List get(BoardPermissionViewDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(BoardPermissionViewDbo toSave) { - - } - - @Override - protected void create(BoardPermissionViewDbo toCreate) { - - } - +package com.zfgc.zfgbb.dao; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.BoardPermissionViewDbo; +import com.zfgc.zfgbb.dbo.BoardPermissionViewDboExample; +import com.zfgc.zfgbb.mappers.BoardPermissionViewDboMapper; + +@Repository +public class BoardPermissionViewDao extends AbstractDao{ + + @Autowired + public BoardPermissionViewDao(BoardPermissionViewDboMapper mapper) { + super(mapper); + } + + @Override + public BoardPermissionViewDbo get(Integer id) { + return null; + } + + @Override + public List get(BoardPermissionViewDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(BoardPermissionViewDbo toSave) { + + } + + @Override + protected void create(BoardPermissionViewDbo toCreate) { + + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/CategoryDao.java b/src/main/java/com/zfgc/zfgbb/dao/CategoryDao.java index 5ce2608..1e26b38 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/CategoryDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/CategoryDao.java @@ -1,42 +1,42 @@ -package com.zfgc.zfgbb.dao; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.CategoryDbo; -import com.zfgc.zfgbb.dbo.CategoryDboExample; -import com.zfgc.zfgbb.mappers.BBCodeAttributeModeDboMapper; -import com.zfgc.zfgbb.mappers.CategoryDboMapper; - -@Repository -public class CategoryDao extends AbstractDao{ - - @Autowired - public CategoryDao(CategoryDboMapper mapper) { - super(mapper); - } - - @Override - public CategoryDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(CategoryDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(CategoryDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(CategoryDbo toCreate) { - mapper.insert(toCreate); - } - -} +package com.zfgc.zfgbb.dao; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.CategoryDbo; +import com.zfgc.zfgbb.dbo.CategoryDboExample; +import com.zfgc.zfgbb.mappers.BBCodeAttributeModeDboMapper; +import com.zfgc.zfgbb.mappers.CategoryDboMapper; + +@Repository +public class CategoryDao extends AbstractDao{ + + @Autowired + public CategoryDao(CategoryDboMapper mapper) { + super(mapper); + } + + @Override + public CategoryDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(CategoryDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(CategoryDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(CategoryDbo toCreate) { + mapper.insert(toCreate); + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/dao/ThreadDao.java b/src/main/java/com/zfgc/zfgbb/dao/ThreadDao.java index f6c73ba..6480f8f 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/ThreadDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/ThreadDao.java @@ -26,7 +26,7 @@ public ThreadDbo get(Integer id) { @Override public List get(ThreadDboExample ex) { - return mapper.selectByExample(ex); + return mapper.selectByExampleWithRange(ex); } @Override diff --git a/src/main/java/com/zfgc/zfgbb/dao/UserPermissionViewDao.java b/src/main/java/com/zfgc/zfgbb/dao/UserPermissionViewDao.java index d077ec7..1e4d78a 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/UserPermissionViewDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/UserPermissionViewDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.UserPermissionViewDbo; -import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; -import com.zfgc.zfgbb.mappers.UserPermissionViewDboMapper; - -@Repository -public class UserPermissionViewDao extends AbstractDao{ - - @Autowired - public UserPermissionViewDao(UserPermissionViewDboMapper mapper) { - super(mapper); - } - - @Override - public UserPermissionViewDbo get(Integer id) { - return null; - } - - @Override - public List get(UserPermissionViewDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(UserPermissionViewDbo toSave) { - - } - - @Override - protected void create(UserPermissionViewDbo toCreate) { - - } - +package com.zfgc.zfgbb.dao; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.UserPermissionViewDbo; +import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; +import com.zfgc.zfgbb.mappers.UserPermissionViewDboMapper; + +@Repository +public class UserPermissionViewDao extends AbstractDao{ + + @Autowired + public UserPermissionViewDao(UserPermissionViewDboMapper mapper) { + super(mapper); + } + + @Override + public UserPermissionViewDbo get(Integer id) { + return null; + } + + @Override + public List get(UserPermissionViewDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(UserPermissionViewDbo toSave) { + + } + + @Override + protected void create(UserPermissionViewDbo toCreate) { + + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/bbcode/AttributeDataTypeDao.java b/src/main/java/com/zfgc/zfgbb/dao/bbcode/AttributeDataTypeDao.java index 1edd0b5..f3c6841 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/bbcode/AttributeDataTypeDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/bbcode/AttributeDataTypeDao.java @@ -1,40 +1,40 @@ -package com.zfgc.zfgbb.dao.bbcode; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.AttributeDataTypeDbo; -import com.zfgc.zfgbb.dbo.AttributeDataTypeDboExample; -import com.zfgc.zfgbb.mappers.AttributeDataTypeDboMapper; - -@Repository -public class AttributeDataTypeDao extends AbstractDao { - - @Autowired - public AttributeDataTypeDao(AttributeDataTypeDboMapper mapper) { - super(mapper); - } - - @Override - public AttributeDataTypeDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(AttributeDataTypeDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(AttributeDataTypeDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(AttributeDataTypeDbo toCreate) { - mapper.insert(toCreate); - } -} +package com.zfgc.zfgbb.dao.bbcode; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.AttributeDataTypeDbo; +import com.zfgc.zfgbb.dbo.AttributeDataTypeDboExample; +import com.zfgc.zfgbb.mappers.AttributeDataTypeDboMapper; + +@Repository +public class AttributeDataTypeDao extends AbstractDao { + + @Autowired + public AttributeDataTypeDao(AttributeDataTypeDboMapper mapper) { + super(mapper); + } + + @Override + public AttributeDataTypeDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(AttributeDataTypeDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(AttributeDataTypeDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(AttributeDataTypeDbo toCreate) { + mapper.insert(toCreate); + } +} diff --git a/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeDao.java b/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeDao.java index b1bf1f1..817823c 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeDao.java @@ -1,42 +1,42 @@ -package com.zfgc.zfgbb.dao.bbcode; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.BBCodeAttributeDbo; -import com.zfgc.zfgbb.dbo.BBCodeAttributeDboExample; -import com.zfgc.zfgbb.mappers.AttributeDataTypeDboMapper; -import com.zfgc.zfgbb.mappers.BBCodeAttributeDboMapper; - -@Repository -public class BBCodeAttributeDao extends AbstractDao { - - @Autowired - public BBCodeAttributeDao(BBCodeAttributeDboMapper mapper) { - super(mapper); - } - - @Override - public BBCodeAttributeDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(BBCodeAttributeDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(BBCodeAttributeDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(BBCodeAttributeDbo toCreate) { - mapper.insert(toCreate); - } - -} +package com.zfgc.zfgbb.dao.bbcode; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.BBCodeAttributeDbo; +import com.zfgc.zfgbb.dbo.BBCodeAttributeDboExample; +import com.zfgc.zfgbb.mappers.AttributeDataTypeDboMapper; +import com.zfgc.zfgbb.mappers.BBCodeAttributeDboMapper; + +@Repository +public class BBCodeAttributeDao extends AbstractDao { + + @Autowired + public BBCodeAttributeDao(BBCodeAttributeDboMapper mapper) { + super(mapper); + } + + @Override + public BBCodeAttributeDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(BBCodeAttributeDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(BBCodeAttributeDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(BBCodeAttributeDbo toCreate) { + mapper.insert(toCreate); + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeModeDao.java b/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeModeDao.java index fa0dffb..690f67e 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeModeDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeAttributeModeDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao.bbcode; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDbo; -import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDboExample; -import com.zfgc.zfgbb.mappers.BBCodeAttributeDboMapper; -import com.zfgc.zfgbb.mappers.BBCodeAttributeModeDboMapper; - -@Repository -public class BBCodeAttributeModeDao extends AbstractDao { - - @Autowired - public BBCodeAttributeModeDao(BBCodeAttributeModeDboMapper mapper) { - super(mapper); - } - - @Override - public BBCodeAttributeModeDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(BBCodeAttributeModeDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(BBCodeAttributeModeDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(BBCodeAttributeModeDbo toCreate) { - mapper.insert(toCreate); - } -} +package com.zfgc.zfgbb.dao.bbcode; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDbo; +import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDboExample; +import com.zfgc.zfgbb.mappers.BBCodeAttributeDboMapper; +import com.zfgc.zfgbb.mappers.BBCodeAttributeModeDboMapper; + +@Repository +public class BBCodeAttributeModeDao extends AbstractDao { + + @Autowired + public BBCodeAttributeModeDao(BBCodeAttributeModeDboMapper mapper) { + super(mapper); + } + + @Override + public BBCodeAttributeModeDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(BBCodeAttributeModeDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(BBCodeAttributeModeDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(BBCodeAttributeModeDbo toCreate) { + mapper.insert(toCreate); + } +} diff --git a/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeConfigDao.java b/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeConfigDao.java index 77829db..46136da 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeConfigDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/bbcode/BBCodeConfigDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao.bbcode; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.BBCodeConfigDbo; -import com.zfgc.zfgbb.dbo.BBCodeConfigDboExample; -import com.zfgc.zfgbb.mappers.BBCodeConfigDboMapper; - -@Repository -public class BBCodeConfigDao extends AbstractDao { - - @Autowired - public BBCodeConfigDao(BBCodeConfigDboMapper mapper) { - super(mapper); - } - - @Override - public BBCodeConfigDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(BBCodeConfigDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(BBCodeConfigDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(BBCodeConfigDbo toCreate) { - mapper.insert(toCreate); - } - -} +package com.zfgc.zfgbb.dao.bbcode; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.BBCodeConfigDbo; +import com.zfgc.zfgbb.dbo.BBCodeConfigDboExample; +import com.zfgc.zfgbb.mappers.BBCodeConfigDboMapper; + +@Repository +public class BBCodeConfigDao extends AbstractDao { + + @Autowired + public BBCodeConfigDao(BBCodeConfigDboMapper mapper) { + super(mapper); + } + + @Override + public BBCodeConfigDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(BBCodeConfigDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(BBCodeConfigDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(BBCodeConfigDbo toCreate) { + mapper.insert(toCreate); + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/dao/core/ContentResourceDao.java b/src/main/java/com/zfgc/zfgbb/dao/core/ContentResourceDao.java new file mode 100644 index 0000000..d757f23 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dao/core/ContentResourceDao.java @@ -0,0 +1,41 @@ +package com.zfgc.zfgbb.dao.core; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.ContentResourceDbo; +import com.zfgc.zfgbb.dbo.ContentResourceDboExample; +import com.zfgc.zfgbb.mappers.ContentResourceDboMapper; + +@Repository +public class ContentResourceDao extends AbstractDao{ + + @Autowired + public ContentResourceDao(ContentResourceDboMapper mapper) { + super(mapper); + } + + @Override + public ContentResourceDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(ContentResourceDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(ContentResourceDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(ContentResourceDbo toCreate) { + mapper.insert(toCreate); + } + +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/core/IpAddressDao.java b/src/main/java/com/zfgc/zfgbb/dao/core/IpAddressDao.java index 16b5038..cce1bd2 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/core/IpAddressDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/core/IpAddressDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao.core; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.IpAddressDbo; -import com.zfgc.zfgbb.dbo.IpAddressDboExample; -import com.zfgc.zfgbb.mappers.IpAddressDboMapper; - -@Repository -public class IpAddressDao extends AbstractDao { - - @Autowired - public IpAddressDao(IpAddressDboMapper mapper) { - super(mapper); - } - - @Override - public IpAddressDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(IpAddressDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(IpAddressDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(IpAddressDbo toCreate) { - mapper.insert(toCreate); - } - -} +package com.zfgc.zfgbb.dao.core; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.IpAddressDbo; +import com.zfgc.zfgbb.dbo.IpAddressDboExample; +import com.zfgc.zfgbb.mappers.IpAddressDboMapper; + +@Repository +public class IpAddressDao extends AbstractDao { + + @Autowired + public IpAddressDao(IpAddressDboMapper mapper) { + super(mapper); + } + + @Override + public IpAddressDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(IpAddressDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(IpAddressDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(IpAddressDbo toCreate) { + mapper.insert(toCreate); + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/dao/forum/CurrentMessageDao.java b/src/main/java/com/zfgc/zfgbb/dao/forum/CurrentMessageDao.java index 6a4cc6f..73d360a 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/forum/CurrentMessageDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/forum/CurrentMessageDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao.forum; - -import java.util.List; - -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.CurrentMessageDbo; -import com.zfgc.zfgbb.dbo.CurrentMessageDboExample; -import com.zfgc.zfgbb.dbo.MessageDbo; -import com.zfgc.zfgbb.dbo.MessageDboExample; -import com.zfgc.zfgbb.mappers.CurrentMessageDboMapper; - -@Repository -public class CurrentMessageDao extends AbstractDao{ - - public CurrentMessageDao(CurrentMessageDboMapper mapper) { - super(mapper); - } - - @Override - public CurrentMessageDbo get(Integer id) { - throw new UnsupportedOperationException(); - } - - @Override - public List get(CurrentMessageDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(CurrentMessageDbo toSave) { - throw new UnsupportedOperationException(); - } - - @Override - protected void create(CurrentMessageDbo toCreate) { - throw new UnsupportedOperationException(); - } - +package com.zfgc.zfgbb.dao.forum; + +import java.util.List; + +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.CurrentMessageDbo; +import com.zfgc.zfgbb.dbo.CurrentMessageDboExample; +import com.zfgc.zfgbb.dbo.MessageDbo; +import com.zfgc.zfgbb.dbo.MessageDboExample; +import com.zfgc.zfgbb.mappers.CurrentMessageDboMapper; + +@Repository +public class CurrentMessageDao extends AbstractDao{ + + public CurrentMessageDao(CurrentMessageDboMapper mapper) { + super(mapper); + } + + @Override + public CurrentMessageDbo get(Integer id) { + throw new UnsupportedOperationException(); + } + + @Override + public List get(CurrentMessageDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(CurrentMessageDbo toSave) { + throw new UnsupportedOperationException(); + } + + @Override + protected void create(CurrentMessageDbo toCreate) { + throw new UnsupportedOperationException(); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/forum/FileAttachmentsDao.java b/src/main/java/com/zfgc/zfgbb/dao/forum/FileAttachmentsDao.java new file mode 100644 index 0000000..b2864b8 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dao/forum/FileAttachmentsDao.java @@ -0,0 +1,42 @@ +package com.zfgc.zfgbb.dao.forum; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.FileAttachmentDbo; +import com.zfgc.zfgbb.dbo.FileAttachmentDboExample; +import com.zfgc.zfgbb.mappers.FileAttachmentDboMapper; + +@Repository +public class FileAttachmentsDao extends AbstractDao{ + + @Autowired + public FileAttachmentsDao(FileAttachmentDboMapper mapper) { + super(mapper); + // TODO Auto-generated constructor stub + } + + @Override + public FileAttachmentDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(FileAttachmentDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(FileAttachmentDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(FileAttachmentDbo toCreate) { + mapper.insert(toCreate); + } + +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/forum/MessageDao.java b/src/main/java/com/zfgc/zfgbb/dao/forum/MessageDao.java index 84f9ae0..7987213 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/forum/MessageDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/forum/MessageDao.java @@ -1,53 +1,53 @@ -package com.zfgc.zfgbb.dao.forum; - -import java.time.LocalDateTime; -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.BoardDbo; -import com.zfgc.zfgbb.dbo.BoardDboExample; -import com.zfgc.zfgbb.dbo.MessageDbo; -import com.zfgc.zfgbb.dbo.MessageDboExample; -import com.zfgc.zfgbb.mappers.BoardDboMapper; -import com.zfgc.zfgbb.mappers.MessageDboMapper; - -@Repository -public class MessageDao extends AbstractDao{ - - @Autowired - public MessageDao(MessageDboMapper mapper) { - super(mapper); - } - - @Override - public MessageDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - protected void update(MessageDbo toSave) { - toSave.setUpdatedTs(LocalDateTime.now()); - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(MessageDbo toCreate) { - toCreate.setCreatedTs(LocalDateTime.now()); - toCreate.setUpdatedTs(LocalDateTime.now()); - mapper.insert(toCreate); - } - - @Override - public List get(MessageDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - public void delete(MessageDboExample ex) { - mapper.deleteByExample(ex); - } - +package com.zfgc.zfgbb.dao.forum; + +import java.time.LocalDateTime; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.BoardDbo; +import com.zfgc.zfgbb.dbo.BoardDboExample; +import com.zfgc.zfgbb.dbo.MessageDbo; +import com.zfgc.zfgbb.dbo.MessageDboExample; +import com.zfgc.zfgbb.mappers.BoardDboMapper; +import com.zfgc.zfgbb.mappers.MessageDboMapper; + +@Repository +public class MessageDao extends AbstractDao{ + + @Autowired + public MessageDao(MessageDboMapper mapper) { + super(mapper); + } + + @Override + public MessageDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + protected void update(MessageDbo toSave) { + toSave.setUpdatedTs(LocalDateTime.now()); + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(MessageDbo toCreate) { + toCreate.setCreatedTs(LocalDateTime.now()); + toCreate.setUpdatedTs(LocalDateTime.now()); + mapper.insert(toCreate); + } + + @Override + public List get(MessageDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + public void delete(MessageDboExample ex) { + mapper.deleteByExample(ex); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/forum/MessageHistoryDao.java b/src/main/java/com/zfgc/zfgbb/dao/forum/MessageHistoryDao.java index c3e02b8..2dd60d6 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/forum/MessageHistoryDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/forum/MessageHistoryDao.java @@ -1,43 +1,43 @@ -package com.zfgc.zfgbb.dao.forum; - -import java.util.List; - -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.MessageHistoryDbo; -import com.zfgc.zfgbb.dbo.MessageHistoryDboExample; -import com.zfgc.zfgbb.mappers.MessageHistoryDboMapper; - -@Repository -public class MessageHistoryDao extends AbstractDao { - - public MessageHistoryDao(MessageHistoryDboMapper mapper) { - super(mapper); - } - - @Override - public MessageHistoryDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(MessageHistoryDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(MessageHistoryDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(MessageHistoryDbo toCreate) { - mapper.insert(toCreate); - } - - @Override - public void delete(MessageHistoryDboExample ex) { - mapper.deleteByExample(ex); - } +package com.zfgc.zfgbb.dao.forum; + +import java.util.List; + +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.MessageHistoryDbo; +import com.zfgc.zfgbb.dbo.MessageHistoryDboExample; +import com.zfgc.zfgbb.mappers.MessageHistoryDboMapper; + +@Repository +public class MessageHistoryDao extends AbstractDao { + + public MessageHistoryDao(MessageHistoryDboMapper mapper) { + super(mapper); + } + + @Override + public MessageHistoryDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(MessageHistoryDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(MessageHistoryDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(MessageHistoryDbo toCreate) { + mapper.insert(toCreate); + } + + @Override + public void delete(MessageHistoryDboExample ex) { + mapper.deleteByExample(ex); + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/forum/PollDao.java b/src/main/java/com/zfgc/zfgbb/dao/forum/PollDao.java index 6015213..f9bf259 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/forum/PollDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/forum/PollDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao.forum; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.PollDbo; -import com.zfgc.zfgbb.dbo.PollDboExample; -import com.zfgc.zfgbb.mappers.PollDboMapper; - -@Repository -public class PollDao extends AbstractDao { - - @Autowired - public PollDao(PollDboMapper mapper) { - super(mapper); - } - - @Override - public PollDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(PollDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(PollDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(PollDbo toCreate) { - mapper.insert(toCreate); - } - -} +package com.zfgc.zfgbb.dao.forum; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.PollDbo; +import com.zfgc.zfgbb.dbo.PollDboExample; +import com.zfgc.zfgbb.mappers.PollDboMapper; + +@Repository +public class PollDao extends AbstractDao { + + @Autowired + public PollDao(PollDboMapper mapper) { + super(mapper); + } + + @Override + public PollDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(PollDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(PollDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(PollDbo toCreate) { + mapper.insert(toCreate); + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/dao/forum/PollQuestionDao.java b/src/main/java/com/zfgc/zfgbb/dao/forum/PollQuestionDao.java index 3e4bdbc..957c472 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/forum/PollQuestionDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/forum/PollQuestionDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao.forum; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.PollQuestionDbo; -import com.zfgc.zfgbb.dbo.PollQuestionDboExample; -import com.zfgc.zfgbb.mappers.PollQuestionDboMapper; - -@Repository -public class PollQuestionDao extends AbstractDao { - - @Autowired - public PollQuestionDao(PollQuestionDboMapper mapper) { - super(mapper); - } - - @Override - public PollQuestionDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(PollQuestionDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(PollQuestionDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(PollQuestionDbo toCreate) { - mapper.insert(toCreate); - } - +package com.zfgc.zfgbb.dao.forum; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.PollQuestionDbo; +import com.zfgc.zfgbb.dbo.PollQuestionDboExample; +import com.zfgc.zfgbb.mappers.PollQuestionDboMapper; + +@Repository +public class PollQuestionDao extends AbstractDao { + + @Autowired + public PollQuestionDao(PollQuestionDboMapper mapper) { + super(mapper); + } + + @Override + public PollQuestionDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(PollQuestionDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(PollQuestionDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(PollQuestionDbo toCreate) { + mapper.insert(toCreate); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/users/AvatarDao.java b/src/main/java/com/zfgc/zfgbb/dao/users/AvatarDao.java new file mode 100644 index 0000000..872d3a4 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dao/users/AvatarDao.java @@ -0,0 +1,42 @@ +package com.zfgc.zfgbb.dao.users; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.AvatarDbo; +import com.zfgc.zfgbb.dbo.AvatarDboExample; +import com.zfgc.zfgbb.mappers.AvatarDboMapper; + +@Repository +public class AvatarDao extends AbstractDao { + + @Autowired + public AvatarDao(AvatarDboMapper mapper) { + super(mapper); + } + + @Override + public AvatarDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(AvatarDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(AvatarDbo toSave) { + mapper.updateByPrimaryKey(toSave); + + } + + @Override + protected void create(AvatarDbo toCreate) { + mapper.insert(toCreate); + } + +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/users/EmailAddressDao.java b/src/main/java/com/zfgc/zfgbb/dao/users/EmailAddressDao.java index a641110..d149074 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/users/EmailAddressDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/users/EmailAddressDao.java @@ -1,44 +1,44 @@ -package com.zfgc.zfgbb.dao.users; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.EmailAddressDbo; -import com.zfgc.zfgbb.dbo.EmailAddressDboExample; -import com.zfgc.zfgbb.dbo.UserDbo; -import com.zfgc.zfgbb.dbo.UserDboExample; -import com.zfgc.zfgbb.mappers.EmailAddressDboMapper; -import com.zfgc.zfgbb.mappers.UserDboMapper; - -@Repository -public class EmailAddressDao extends AbstractDao{ - - @Autowired - public EmailAddressDao(EmailAddressDboMapper mapper) { - super(mapper); - } - - @Override - public EmailAddressDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(EmailAddressDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(EmailAddressDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(EmailAddressDbo toCreate) { - mapper.insert(toCreate); - } - +package com.zfgc.zfgbb.dao.users; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.EmailAddressDbo; +import com.zfgc.zfgbb.dbo.EmailAddressDboExample; +import com.zfgc.zfgbb.dbo.UserDbo; +import com.zfgc.zfgbb.dbo.UserDboExample; +import com.zfgc.zfgbb.mappers.EmailAddressDboMapper; +import com.zfgc.zfgbb.mappers.UserDboMapper; + +@Repository +public class EmailAddressDao extends AbstractDao{ + + @Autowired + public EmailAddressDao(EmailAddressDboMapper mapper) { + super(mapper); + } + + @Override + public EmailAddressDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(EmailAddressDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(EmailAddressDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(EmailAddressDbo toCreate) { + mapper.insert(toCreate); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/users/UserBioInfoDao.java b/src/main/java/com/zfgc/zfgbb/dao/users/UserBioInfoDao.java index 794a584..b2a2d91 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/users/UserBioInfoDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/users/UserBioInfoDao.java @@ -1,42 +1,42 @@ -package com.zfgc.zfgbb.dao.users; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.UserBioInfoDbo; -import com.zfgc.zfgbb.dbo.UserBioInfoDboExample; -import com.zfgc.zfgbb.mappers.UserBioInfoDboMapper; - -@Repository -public class UserBioInfoDao extends AbstractDao { - - @Autowired - public UserBioInfoDao(UserBioInfoDboMapper mapper) { - super(mapper); - } - - @Override - public UserBioInfoDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(UserBioInfoDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(UserBioInfoDbo toSave) { - mapper.updateByPrimaryKey(toSave); - - } - - @Override - protected void create(UserBioInfoDbo toCreate) { - mapper.insert(toCreate); - } - +package com.zfgc.zfgbb.dao.users; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.UserBioInfoDbo; +import com.zfgc.zfgbb.dbo.UserBioInfoDboExample; +import com.zfgc.zfgbb.mappers.UserBioInfoDboMapper; + +@Repository +public class UserBioInfoDao extends AbstractDao { + + @Autowired + public UserBioInfoDao(UserBioInfoDboMapper mapper) { + super(mapper); + } + + @Override + public UserBioInfoDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(UserBioInfoDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(UserBioInfoDbo toSave) { + mapper.updateByPrimaryKey(toSave); + + } + + @Override + protected void create(UserBioInfoDbo toCreate) { + mapper.insert(toCreate); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dao/users/UserDao.java b/src/main/java/com/zfgc/zfgbb/dao/users/UserDao.java index 52eb8aa..3a006c2 100644 --- a/src/main/java/com/zfgc/zfgbb/dao/users/UserDao.java +++ b/src/main/java/com/zfgc/zfgbb/dao/users/UserDao.java @@ -1,41 +1,41 @@ -package com.zfgc.zfgbb.dao.users; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.UserDbo; -import com.zfgc.zfgbb.dbo.UserDboExample; -import com.zfgc.zfgbb.mappers.UserDboMapper; - -@Repository -public class UserDao extends AbstractDao{ - - @Autowired - public UserDao(UserDboMapper mapper) { - super(mapper); - } - - @Override - public UserDbo get(Integer id) { - return mapper.selectByPrimaryKey(id); - } - - @Override - public List get(UserDboExample ex) { - return mapper.selectByExample(ex); - } - - @Override - protected void update(UserDbo toSave) { - mapper.updateByPrimaryKey(toSave); - } - - @Override - protected void create(UserDbo toCreate) { - mapper.insert(toCreate); - } - +package com.zfgc.zfgbb.dao.users; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.UserDbo; +import com.zfgc.zfgbb.dbo.UserDboExample; +import com.zfgc.zfgbb.mappers.UserDboMapper; + +@Repository +public class UserDao extends AbstractDao{ + + @Autowired + public UserDao(UserDboMapper mapper) { + super(mapper); + } + + @Override + public UserDbo get(Integer id) { + return mapper.selectByPrimaryKey(id); + } + + @Override + public List get(UserDboExample ex) { + return mapper.selectByExample(ex); + } + + @Override + protected void update(UserDbo toSave) { + mapper.updateByPrimaryKey(toSave); + } + + @Override + protected void create(UserDbo toCreate) { + mapper.insert(toCreate); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/AbstractDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/AbstractDataProvider.java index 08159a1..b4a8445 100644 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/AbstractDataProvider.java +++ b/src/main/java/com/zfgc/zfgbb/dataprovider/AbstractDataProvider.java @@ -1,21 +1,21 @@ -package com.zfgc.zfgbb.dataprovider; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -import org.modelmapper.ModelMapper; -import org.springframework.beans.factory.annotation.Autowired; - -public class AbstractDataProvider { - @Autowired - protected ModelMapper mapper; - - public List convertDboListToModel(List input, Class type){ - if(input != null) { - return input.stream().map(x -> mapper.map(x, type)).collect(Collectors.toList()); - } - - return new ArrayList(); - } +package com.zfgc.zfgbb.dataprovider; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +import org.modelmapper.ModelMapper; +import org.springframework.beans.factory.annotation.Autowired; + +public class AbstractDataProvider { + @Autowired + protected ModelMapper mapper; + + public List convertDboListToModel(List input, Class type){ + if(input != null) { + return input.stream().map(x -> mapper.map(x, type)).collect(Collectors.toList()); + } + + return new ArrayList(); + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/core/IpDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/core/IpDataProvider.java index 3ea91eb..854bd20 100644 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/core/IpDataProvider.java +++ b/src/main/java/com/zfgc/zfgbb/dataprovider/core/IpDataProvider.java @@ -1,35 +1,35 @@ -package com.zfgc.zfgbb.dataprovider.core; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.core.IpAddressDao; -import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; -import com.zfgc.zfgbb.dbo.IpAddressDbo; -import com.zfgc.zfgbb.dbo.IpAddressDboExample; -import com.zfgc.zfgbb.model.meta.IpAddress; - -@Repository -public class IpDataProvider extends AbstractDataProvider { - @Autowired - private IpAddressDao ipDao; - - public IpAddress createOrRetrieveIp(String ip) { - IpAddressDboExample ex = new IpAddressDboExample(); - ex.createCriteria().andIpEqualTo(ip); - - IpAddressDbo result = ipDao.get(ex).stream().findFirst().orElse(null); - - if(result == null) { - result = new IpAddressDbo(); - result.setIp(ip); - //todo: add a regex for this - result.setIpV6Flag(false); - //todo: add stopforum spam for this - result.setIsSpammerFlag(false); - ipDao.save(result); - } - - return mapper.map(result, IpAddress.class); - } -} +package com.zfgc.zfgbb.dataprovider.core; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.core.IpAddressDao; +import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; +import com.zfgc.zfgbb.dbo.IpAddressDbo; +import com.zfgc.zfgbb.dbo.IpAddressDboExample; +import com.zfgc.zfgbb.model.meta.IpAddress; + +@Repository +public class IpDataProvider extends AbstractDataProvider { + @Autowired + private IpAddressDao ipDao; + + public IpAddress createOrRetrieveIp(String ip) { + IpAddressDboExample ex = new IpAddressDboExample(); + ex.createCriteria().andIpEqualTo(ip); + + IpAddressDbo result = ipDao.get(ex).stream().findFirst().orElse(null); + + if(result == null) { + result = new IpAddressDbo(); + result.setIp(ip); + //todo: add a regex for this + result.setIpV6Flag(false); + //todo: add stopforum spam for this + result.setIsSpammerFlag(false); + ipDao.save(result); + } + + return mapper.map(result, IpAddress.class); + } +} diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/BBCodeDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/BBCodeDataProvider.java index b360410..ee608dc 100644 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/BBCodeDataProvider.java +++ b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/BBCodeDataProvider.java @@ -1,102 +1,102 @@ -package com.zfgc.zfgbb.dataprovider.forum; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.bbcode.BBCodeAttributeDao; -import com.zfgc.zfgbb.dao.bbcode.BBCodeAttributeModeDao; -import com.zfgc.zfgbb.dao.bbcode.BBCodeConfigDao; -import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; -import com.zfgc.zfgbb.dbo.BBCodeAttributeDbo; -import com.zfgc.zfgbb.dbo.BBCodeAttributeDboExample; -import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDbo; -import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDboExample; -import com.zfgc.zfgbb.dbo.BBCodeConfigDbo; -import com.zfgc.zfgbb.dbo.BBCodeConfigDboExample; -import com.zfgc.zfgbb.model.forum.AttributeDataType; -import com.zfgc.zfgbb.model.forum.BBCodeAttribute; -import com.zfgc.zfgbb.model.forum.BBCodeAttributeMode; -import com.zfgc.zfgbb.model.forum.BBCodeConfig; - -@Repository -public class BBCodeDataProvider extends AbstractDataProvider { - - @Autowired - private BBCodeConfigDao bbCodeConfigDao; - - @Autowired - private BBCodeAttributeModeDao bbCodeAttributeModeDao; - - @Autowired - private BBCodeAttributeDao bbCodeAttributeDao; - - public List getValidBbCodes() { - BBCodeConfigDboExample ex = new BBCodeConfigDboExample(); - List results = bbCodeConfigDao.get(ex); - - return super.convertDboListToModel(results, BBCodeConfig.class); - } - - public List getAttributeModesByBbCode(Integer bbCodeId) { - BBCodeAttributeModeDboExample ex = new BBCodeAttributeModeDboExample(); - ex.createCriteria().andBbCodeConfigIdEqualTo(bbCodeId); - List results = bbCodeAttributeModeDao.get(ex); - - return super.convertDboListToModel(results, BBCodeAttributeMode.class); - } - - public List getAttributesByMode(Integer modeId){ - BBCodeAttributeDboExample ex = new BBCodeAttributeDboExample(); - ex.createCriteria().andBbCodeAttributeModeIdEqualTo(modeId); - List results = bbCodeAttributeDao.get(ex); - - return super.convertDboListToModel(results, BBCodeAttribute.class); - } - - public Map getBbCodeConfig(){ - Map result = new HashMap<>(); - - List bbCodes = getValidBbCodes(); - StringBuilder attString = null; - for(BBCodeConfig bbCode : bbCodes){ - attString = new StringBuilder(); - //LOGGER.info("Loading Config for " + config.getCode() + "..."); - List modesDb = getAttributeModesByBbCode(bbCode.getBbCodeConfigId()); - List modes = new ArrayList<>(); - for(BBCodeAttributeMode mode : modesDb){ - modes.add(mode); - StringBuilder modeString = new StringBuilder(); - List attributeDb = getAttributesByMode(mode.getBbCodeAttributeModeId()); - List attributes = new ArrayList<>(); - - for(BBCodeAttribute attribute : attributeDb){ - attribute.setDataType(AttributeDataType.values()[attribute.getAttributeDataType()]); - attribute.setAttributeIndex("{{" + Integer.parseInt(attribute.getAttributeIndex()) + "}}"); - attribute.setName(attribute.getName().equals("NAMELESS") ? "=" : attribute.getName() + "="); - attributes.add(attribute); - modeString.append(attribute.getName().equals("NAMELESS") ? "=" : attribute.getName() + "="); - - if(attString.indexOf(attribute.getName()) == -1 || attString.length() == 0){ - if(attString.length() > 0){ - attString.append(","); - } - - attString.append(attribute.getName().equals("NAMELESS") ? "=" : attribute.getName() + "="); - } - } - - mode.setAttributes(attributes); - bbCode.getAttributeConfig().put(modeString.toString(), mode); - } - bbCode.setAllAttributeNamesAsString(attString.toString()); - result.put(bbCode.getCode(), bbCode); - } - - return result; - } +package com.zfgc.zfgbb.dataprovider.forum; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.bbcode.BBCodeAttributeDao; +import com.zfgc.zfgbb.dao.bbcode.BBCodeAttributeModeDao; +import com.zfgc.zfgbb.dao.bbcode.BBCodeConfigDao; +import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; +import com.zfgc.zfgbb.dbo.BBCodeAttributeDbo; +import com.zfgc.zfgbb.dbo.BBCodeAttributeDboExample; +import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDbo; +import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDboExample; +import com.zfgc.zfgbb.dbo.BBCodeConfigDbo; +import com.zfgc.zfgbb.dbo.BBCodeConfigDboExample; +import com.zfgc.zfgbb.model.forum.AttributeDataType; +import com.zfgc.zfgbb.model.forum.BBCodeAttribute; +import com.zfgc.zfgbb.model.forum.BBCodeAttributeMode; +import com.zfgc.zfgbb.model.forum.BBCodeConfig; + +@Repository +public class BBCodeDataProvider extends AbstractDataProvider { + + @Autowired + private BBCodeConfigDao bbCodeConfigDao; + + @Autowired + private BBCodeAttributeModeDao bbCodeAttributeModeDao; + + @Autowired + private BBCodeAttributeDao bbCodeAttributeDao; + + public List getValidBbCodes() { + BBCodeConfigDboExample ex = new BBCodeConfigDboExample(); + List results = bbCodeConfigDao.get(ex); + + return super.convertDboListToModel(results, BBCodeConfig.class); + } + + public List getAttributeModesByBbCode(Integer bbCodeId) { + BBCodeAttributeModeDboExample ex = new BBCodeAttributeModeDboExample(); + ex.createCriteria().andBbCodeConfigIdEqualTo(bbCodeId); + List results = bbCodeAttributeModeDao.get(ex); + + return super.convertDboListToModel(results, BBCodeAttributeMode.class); + } + + public List getAttributesByMode(Integer modeId){ + BBCodeAttributeDboExample ex = new BBCodeAttributeDboExample(); + ex.createCriteria().andBbCodeAttributeModeIdEqualTo(modeId); + List results = bbCodeAttributeDao.get(ex); + + return super.convertDboListToModel(results, BBCodeAttribute.class); + } + + public Map getBbCodeConfig(){ + Map result = new HashMap<>(); + + List bbCodes = getValidBbCodes(); + StringBuilder attString = null; + for(BBCodeConfig bbCode : bbCodes){ + attString = new StringBuilder(); + //LOGGER.info("Loading Config for " + config.getCode() + "..."); + List modesDb = getAttributeModesByBbCode(bbCode.getBbCodeConfigId()); + List modes = new ArrayList<>(); + for(BBCodeAttributeMode mode : modesDb){ + modes.add(mode); + StringBuilder modeString = new StringBuilder(); + List attributeDb = getAttributesByMode(mode.getBbCodeAttributeModeId()); + List attributes = new ArrayList<>(); + + for(BBCodeAttribute attribute : attributeDb){ + attribute.setDataType(AttributeDataType.values()[attribute.getAttributeDataType()]); + attribute.setAttributeIndex("{{" + Integer.parseInt(attribute.getAttributeIndex()) + "}}"); + attribute.setName(attribute.getName().equals("NAMELESS") ? "=" : attribute.getName() + "="); + attributes.add(attribute); + modeString.append(attribute.getName().equals("NAMELESS") ? "=" : attribute.getName() + "="); + + if(attString.indexOf(attribute.getName()) == -1 || attString.length() == 0){ + if(attString.length() > 0){ + attString.append(","); + } + + attString.append(attribute.getName().equals("NAMELESS") ? "=" : attribute.getName() + "="); + } + } + + mode.setAttributes(attributes); + bbCode.getAttributeConfig().put(modeString.toString(), mode); + } + bbCode.setAllAttributeNamesAsString(attString.toString()); + result.put(bbCode.getCode(), bbCode); + } + + return result; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/CategoryDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/CategoryDataProvider.java deleted file mode 100644 index d91568e..0000000 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/CategoryDataProvider.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.zfgc.zfgbb.dataprovider.forum; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.BoardDao; -import com.zfgc.zfgbb.dao.CategoryDao; -import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; -import com.zfgc.zfgbb.dbo.BoardDboExample; -import com.zfgc.zfgbb.dbo.CategoryDboExample; -import com.zfgc.zfgbb.model.forum.Board; -import com.zfgc.zfgbb.model.forum.Category; - -@Repository -public class CategoryDataProvider extends AbstractDataProvider { - - @Autowired - private CategoryDao categoryDao; - - @Autowired - private BoardDao boardDao; - - public List getCategories(CategoryDboExample exC){ - List categories = super.convertDboListToModel(categoryDao.get(exC), Category.class); - - categories.forEach(cat ->{ - BoardDboExample ex = new BoardDboExample(); - ex.createCriteria().andCategoryIdEqualTo(cat.getCategoryId()); - cat.setBoards(convertDboListToModel(boardDao.get(ex), Board.class)); - }); - - return categories; - } - -} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ForumDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ForumDataProvider.java index 7ee4b7d..852af19 100644 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ForumDataProvider.java +++ b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ForumDataProvider.java @@ -1,6 +1,9 @@ package com.zfgc.zfgbb.dataprovider.forum; +import java.util.Arrays; import java.util.List; +import java.util.Map; +import java.util.function.Function; import java.util.stream.Collectors; import org.springframework.beans.factory.annotation.Autowired; @@ -10,31 +13,23 @@ import com.zfgc.zfgbb.dao.BoardPermissionViewDao; import com.zfgc.zfgbb.dao.CategoryDao; import com.zfgc.zfgbb.dao.ThreadDao; -import com.zfgc.zfgbb.dao.forum.CurrentMessageDao; -import com.zfgc.zfgbb.dao.forum.MessageDao; -import com.zfgc.zfgbb.dao.forum.MessageHistoryDao; import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; import com.zfgc.zfgbb.dbo.BoardDbo; import com.zfgc.zfgbb.dbo.BoardDboExample; import com.zfgc.zfgbb.dbo.BoardPermissionViewDboExample; -import com.zfgc.zfgbb.dbo.CategoryDbo; +import com.zfgc.zfgbb.dbo.BoardSummaryViewDboExample; import com.zfgc.zfgbb.dbo.CategoryDboExample; -import com.zfgc.zfgbb.dbo.CurrentMessageDboExample; -import com.zfgc.zfgbb.dbo.MessageDbo; -import com.zfgc.zfgbb.dbo.MessageDboExample; -import com.zfgc.zfgbb.dbo.MessageHistoryDbo; -import com.zfgc.zfgbb.dbo.MessageHistoryDboExample; -import com.zfgc.zfgbb.dbo.ThreadDbo; +import com.zfgc.zfgbb.dbo.ChildBoardViewDboExample; import com.zfgc.zfgbb.dbo.ThreadDboExample; +import com.zfgc.zfgbb.mappers.BoardSummaryViewDboMapper; +import com.zfgc.zfgbb.mappers.ChildBoardViewDboMapper; import com.zfgc.zfgbb.model.forum.Board; +import com.zfgc.zfgbb.model.forum.BoardSummary; import com.zfgc.zfgbb.model.forum.Category; +import com.zfgc.zfgbb.model.forum.ChildBoard; import com.zfgc.zfgbb.model.forum.Forum; -import com.zfgc.zfgbb.model.forum.Message; -import com.zfgc.zfgbb.model.forum.MessageHistory; import com.zfgc.zfgbb.model.forum.Thread; import com.zfgc.zfgbb.model.users.Permission; -import com.google.common.base.Preconditions; -import com.google.common.collect.Streams; @Repository public class ForumDataProvider extends AbstractDataProvider { @@ -43,7 +38,7 @@ public class ForumDataProvider extends AbstractDataProvider { private BoardDao boardDao; @Autowired - private CategoryDataProvider categoryDataProvider; + private CategoryDao categoryDao; @Autowired private ThreadDao threadDao; @@ -54,40 +49,129 @@ public class ForumDataProvider extends AbstractDataProvider { @Autowired private BoardPermissionViewDao boardPermissionDao; - public Forum getForum(Integer boardId) { + @Autowired + private BoardSummaryViewDboMapper boardSummaryMapper; + + @Autowired + private ChildBoardViewDboMapper childBoardMapper; + + public Board getBoard(Integer boardId, Integer pageNo, Integer threadsPerPage) { + BoardDbo boardDbo = boardDao.get(boardId); + Board board = mapper.map(boardDbo, Board.class); + + List unstickyThreads = threadDataProvider.getThreadsByBoardId(boardId, pageNo, threadsPerPage, false); + List stickyThreads = threadDataProvider.getThreadsByBoardId(boardId, null, null, true); + + board.setStickyThreads(stickyThreads); + board.setUnStickyThreads(unstickyThreads); + + ThreadDboExample threadEx = new ThreadDboExample(); + threadEx.createCriteria().andBoardIdEqualTo(boardId).andPinnedFlagEqualTo(false); + Long threadCount = threadDao.getMapper().countByExample(threadEx); + board.setThreadCount(threadCount); + + board.setChildBoards(getBoardSummaries(board.getBoardId())); + + return board; + } + + private List getBoardSummaries(Integer parentBoardId){ + return getBoardSummaries(Arrays.asList(parentBoardId)); + } + + private List getBoardSummaries(List parentBoardId){ + BoardSummaryViewDboExample bEx = new BoardSummaryViewDboExample(); + bEx.createCriteria().andParentBoardIdIn(parentBoardId); + List result = (boardSummaryMapper.selectByExample(bEx).stream().map(b -> mapper.map(b, BoardSummary.class)).collect(Collectors.toList())); + + ChildBoardViewDboExample cEx = new ChildBoardViewDboExample(); + cEx.createCriteria().andParentBoardIdIn(parentBoardId); + + Map> childBoards = childBoardMapper.selectByExample(cEx).stream() + .map(c -> mapper.map(c, ChildBoard.class)) + .collect(Collectors.groupingBy(ChildBoard::getParentBoardId)); + + result.forEach(bs -> { + bs.setChildBoards(childBoards.get(bs.getBoardId())); + }); + + + return result; + } + + private List getBoardSummariesByCategory(List categoryId){ + BoardSummaryViewDboExample bEx = new BoardSummaryViewDboExample(); + bEx.createCriteria().andCategoryIdIn(categoryId); + List result = (boardSummaryMapper.selectByExample(bEx).stream().map(b -> mapper.map(b, BoardSummary.class)).collect(Collectors.toList())); + + if(!result.isEmpty()) { + ChildBoardViewDboExample cEx = new ChildBoardViewDboExample(); + cEx.createCriteria().andParentBoardIdIn(result.stream().map(BoardSummary::getBoardId).collect(Collectors.toList())); + + Map> childBoards = childBoardMapper.selectByExample(cEx).stream() + .map(c -> mapper.map(c, ChildBoard.class)) + .collect(Collectors.groupingBy(ChildBoard::getParentBoardId)); + + result.forEach(bs -> { + bs.setChildBoards(childBoards.get(bs.getBoardId())); + }); + } + + + return result; + } + + public Forum getForum() { Forum forum = new Forum(); - BoardDbo boardDbo = boardDao.get(boardId); + BoardDbo boardDbo = boardDao.get(0); forum.setBoardName(boardDbo.getBoardName()); CategoryDboExample exC = new CategoryDboExample(); - exC.createCriteria().andParentBoardIdEqualTo(boardId); - List categories = categoryDataProvider.getCategories(exC); + exC.createCriteria().andParentBoardIdEqualTo(0); + List categories = getCategories(exC); - List unstickyThreads = threadDataProvider.getThreadsByBoardId(boardId, false); - List stickyThreads = threadDataProvider.getThreadsByBoardId(boardId, true); - - forum.setThreads(unstickyThreads); - forum.setStickyThreads(stickyThreads); forum.setCategories(categories); - forum.setCategoryId(boardDbo.getCategoryId()); //load up permissions for the board - forum.setBoardPermissions(getBoardPermissions(boardId)); - - ThreadDboExample threadEx = new ThreadDboExample(); - threadEx.createCriteria().andBoardIdEqualTo(boardId).andPinnedFlagEqualTo(false); - Long threadCount = threadDao.getMapper().countByExample(threadEx); - forum.setThreadCount(threadCount); + forum.setBoardPermissions(getBoardPermissions(0)); - return forum; } + public List getCategories(CategoryDboExample exC){ + List categories = super.convertDboListToModel(categoryDao.get(exC), Category.class); + List categoryIds = categories.stream().map(Category::getCategoryId).collect(Collectors.toList()); + + Map> summaries = getBoardSummariesByCategory(categoryIds).stream().collect(Collectors.groupingBy(BoardSummary::getCategoryId)); + + categories.forEach(cat ->{ + cat.setBoards(summaries.get(cat.getCategoryId())); + }); + + return categories; + } + public List getBoardPermissions(Integer boardId){ BoardPermissionViewDboExample bEx = new BoardPermissionViewDboExample(); bEx.createCriteria().andBoardIdEqualTo(boardId); return super.convertDboListToModel(boardPermissionDao.get(bEx), Permission.class); } + public List getBoardsByParent(Integer parentBoardId){ + BoardDboExample bEx = new BoardDboExample(); + bEx.createCriteria().andParentBoardIdEqualTo(parentBoardId); + + List result = super.convertDboListToModel(boardDao.get(bEx), Board.class); + result.forEach(b -> { + ThreadDboExample tEx = new ThreadDboExample(); + tEx.createCriteria().andBoardIdEqualTo(b.getBoardId()); + + b.setThreadCount(threadDao.getMapper().countByExample(tEx)); + }); + + return result; + + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/MessageDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/MessageDataProvider.java index 1e9f4cf..878b628 100644 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/MessageDataProvider.java +++ b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/MessageDataProvider.java @@ -1,145 +1,154 @@ -package com.zfgc.zfgbb.dataprovider.forum; - -import java.util.List; -import java.util.stream.Collectors; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.google.common.base.Preconditions; -import com.google.common.collect.Streams; -import com.zfgc.zfgbb.dao.forum.CurrentMessageDao; -import com.zfgc.zfgbb.dao.forum.MessageDao; -import com.zfgc.zfgbb.dao.forum.MessageHistoryDao; -import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; -import com.zfgc.zfgbb.dbo.CurrentMessageDboExample; -import com.zfgc.zfgbb.dbo.MessageDbo; -import com.zfgc.zfgbb.dbo.MessageDboExample; -import com.zfgc.zfgbb.dbo.MessageHistoryDbo; -import com.zfgc.zfgbb.dbo.MessageHistoryDboExample; -import com.zfgc.zfgbb.model.forum.Message; -import com.zfgc.zfgbb.model.forum.MessageHistory; - -@Repository -public class MessageDataProvider extends AbstractDataProvider { - @Autowired - private MessageDao messageDao; - - @Autowired - private MessageHistoryDao messageHistoryDao; - - @Autowired - private CurrentMessageDao currentMessageDao; - - public Message getMessage(Integer messageId) { - Message message = mapper.map(messageDao.get(messageId), Message.class); - MessageHistoryDboExample ex = new MessageHistoryDboExample(); - ex.createCriteria().andMessageIdEqualTo(messageId).andCurrentFlagEqualTo(true); - List history = super.convertDboListToModel(messageHistoryDao.get(ex), MessageHistory.class); - message.setCurrentMessage(history.get(0)); - - return message; - } - - public Message saveMessage(Message message) { - MessageDbo messageDbo = mapper.map(message, MessageDbo.class); - - messageDbo = messageDao.save(messageDbo); - - MessageHistory history = message.getCurrentMessage(); - history.setMessageId(messageDbo.getMessageId()); - MessageHistoryDbo historyDbo = mapper.map(history, MessageHistoryDbo.class); - historyDbo.setMessageText(history.getUnparsedText()); - historyDbo = messageHistoryDao.save(historyDbo); - - Message result = mapper.map(messageDbo, Message.class); - result.setCurrentMessage(mapper.map(historyDbo, MessageHistory.class)); - - return result; - } - - public List getMessagesForThread(Integer threadId, Integer page, Integer count){ - Integer start = ((page - 1)*count) + 1; - CurrentMessageDboExample ex = new CurrentMessageDboExample(); - ex.createCriteria().andThreadIdEqualTo(threadId) - .andPostInThreadBetween(start, start + count); - - - - List messages = currentMessageDao.get(ex) - .stream() - .map(message -> { - Message msg = mapper.map(message, Message.class); - MessageHistory hist = mapper.map(message, MessageHistory.class); - hist.setUnparsedText(hist.getMessageText()); - msg.setCurrentMessage(hist); - return msg; - }).collect(Collectors.toList()); - - - - return super.convertDboListToModel(messages, Message.class); - } - - public Message postMessageToThread(Integer threadId, Message message) { - Preconditions.checkNotNull(message, "message cannot be null."); - Preconditions.checkNotNull(message.getCurrentMessage(), "message history cannot be null."); - Preconditions.checkNotNull(threadId, "threadId cannot be null."); - //ensure we have the right thread set - message.setThreadId(threadId); - MessageDbo db = mapper.map(message, MessageDbo.class); - - //insert a message history record - MessageHistoryDbo histDb = mapper.map(message.getCurrentMessage(), - MessageHistoryDbo.class); - - histDb = messageHistoryDao.save(histDb); - - Message result = mapper.map(messageDao.save(db), Message.class); - result.setCurrentMessage(mapper.map(histDb, MessageHistory.class)); - - return result; - } - - public Message editMessage(Message message) { - Preconditions.checkNotNull(message, "message cannot be null."); - Preconditions.checkNotNull(message.getCurrentMessage(), "message history cannot be null."); - - MessageHistoryDbo histDb = mapper.map(message, MessageHistoryDbo.class); - messageHistoryDao.save(histDb); - - return getMessage(message.getMessageId()); - } - - public void deleteMessagesForThread(Integer threadId) { - MessageDboExample ex = new MessageDboExample(); - ex.createCriteria().andThreadIdEqualTo(threadId); - - List messages = messageDao.get(ex); - List messageIds = messages.stream().map(MessageDbo::getPkId).collect(Collectors.toList()); - MessageHistoryDboExample hEx = new MessageHistoryDboExample(); - hEx.createCriteria().andMessageIdIn(messageIds); - - messageHistoryDao.delete(hEx); - messageDao.delete(ex); - } - - public void moveMessagesToNewThread(List messageIds, Integer newThreadId) { - MessageDboExample ex = new MessageDboExample(); - ex.createCriteria().andMessageIdIn(messageIds); - - List messages = messageDao.get(ex); - messages.forEach(msg -> { - msg.setThreadId(newThreadId); - messageDao.save(msg); - }); - } - - public Long getTotalPostsInThread(Integer threadId) { - MessageDboExample ex = new MessageDboExample(); - ex.createCriteria().andThreadIdEqualTo(threadId); - Long count = messageDao.getMapper().countByExample(ex); - - return count; - } +package com.zfgc.zfgbb.dataprovider.forum; + +import java.util.List; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.google.common.base.Preconditions; +import com.google.common.collect.Streams; +import com.zfgc.zfgbb.dao.forum.CurrentMessageDao; +import com.zfgc.zfgbb.dao.forum.MessageDao; +import com.zfgc.zfgbb.dao.forum.MessageHistoryDao; +import com.zfgc.zfgbb.dao.users.UserDao; +import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; +import com.zfgc.zfgbb.dataprovider.users.UserDataProvider; +import com.zfgc.zfgbb.dbo.CurrentMessageDboExample; +import com.zfgc.zfgbb.dbo.MessageDbo; +import com.zfgc.zfgbb.dbo.MessageDboExample; +import com.zfgc.zfgbb.dbo.MessageHistoryDbo; +import com.zfgc.zfgbb.dbo.MessageHistoryDboExample; +import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.model.forum.Message; +import com.zfgc.zfgbb.model.forum.MessageHistory; + +@Repository +public class MessageDataProvider extends AbstractDataProvider { + @Autowired + private MessageDao messageDao; + + @Autowired + private MessageHistoryDao messageHistoryDao; + + @Autowired + private CurrentMessageDao currentMessageDao; + + @Autowired + private UserDataProvider userDataProvider; + + public Message getMessage(Integer messageId) { + Message message = mapper.map(messageDao.get(messageId), Message.class); + MessageHistoryDboExample ex = new MessageHistoryDboExample(); + ex.createCriteria().andMessageIdEqualTo(messageId).andCurrentFlagEqualTo(true); + List history = super.convertDboListToModel(messageHistoryDao.get(ex), MessageHistory.class); + message.setCurrentMessage(history.get(0)); + + return message; + } + + public Message saveMessage(Message message) { + MessageDbo messageDbo = mapper.map(message, MessageDbo.class); + + messageDbo = messageDao.save(messageDbo); + + MessageHistory history = message.getCurrentMessage(); + history.setMessageId(messageDbo.getMessageId()); + MessageHistoryDbo historyDbo = mapper.map(history, MessageHistoryDbo.class); + historyDbo.setMessageText(history.getUnparsedText()); + historyDbo = messageHistoryDao.save(historyDbo); + + Message result = mapper.map(messageDbo, Message.class); + result.setCurrentMessage(mapper.map(historyDbo, MessageHistory.class)); + + return result; + } + + public List getMessagesForThread(Integer threadId, Integer page, Integer count){ + Integer start = ((page - 1)*count) + 1; + CurrentMessageDboExample ex = new CurrentMessageDboExample(); + ex.createCriteria().andThreadIdEqualTo(threadId) + .andPostInThreadBetween(start, start + count); + + + + List messages = currentMessageDao.get(ex) + .stream() + .map(message -> { + Message msg = mapper.map(message, Message.class); + MessageHistory hist = mapper.map(message, MessageHistory.class); + hist.setUnparsedText(hist.getMessageText()); + msg.setCurrentMessage(hist); + + msg.setCreatedUser(userDataProvider.getUser(msg.getOwnerId(), null)); + + return msg; + }).collect(Collectors.toList()); + + + + return super.convertDboListToModel(messages, Message.class); + } + + public Message postMessageToThread(Integer threadId, Message message) { + Preconditions.checkNotNull(message, "message cannot be null."); + Preconditions.checkNotNull(message.getCurrentMessage(), "message history cannot be null."); + Preconditions.checkNotNull(threadId, "threadId cannot be null."); + //ensure we have the right thread set + message.setThreadId(threadId); + MessageDbo db = mapper.map(message, MessageDbo.class); + + //insert a message history record + MessageHistoryDbo histDb = mapper.map(message.getCurrentMessage(), + MessageHistoryDbo.class); + + histDb = messageHistoryDao.save(histDb); + + Message result = mapper.map(messageDao.save(db), Message.class); + result.setCurrentMessage(mapper.map(histDb, MessageHistory.class)); + + return result; + } + + public Message editMessage(Message message) { + Preconditions.checkNotNull(message, "message cannot be null."); + Preconditions.checkNotNull(message.getCurrentMessage(), "message history cannot be null."); + + MessageHistoryDbo histDb = mapper.map(message, MessageHistoryDbo.class); + messageHistoryDao.save(histDb); + + return getMessage(message.getMessageId()); + } + + public void deleteMessagesForThread(Integer threadId) { + MessageDboExample ex = new MessageDboExample(); + ex.createCriteria().andThreadIdEqualTo(threadId); + + List messages = messageDao.get(ex); + List messageIds = messages.stream().map(MessageDbo::getPkId).collect(Collectors.toList()); + MessageHistoryDboExample hEx = new MessageHistoryDboExample(); + hEx.createCriteria().andMessageIdIn(messageIds); + + messageHistoryDao.delete(hEx); + messageDao.delete(ex); + } + + public void moveMessagesToNewThread(List messageIds, Integer newThreadId) { + MessageDboExample ex = new MessageDboExample(); + ex.createCriteria().andMessageIdIn(messageIds); + + List messages = messageDao.get(ex); + messages.forEach(msg -> { + msg.setThreadId(newThreadId); + messageDao.save(msg); + }); + } + + public Long getTotalPostsInThread(Integer threadId) { + MessageDboExample ex = new MessageDboExample(); + ex.createCriteria().andThreadIdEqualTo(threadId); + Long count = messageDao.getMapper().countByExample(ex); + + return count; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ThreadDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ThreadDataProvider.java index 1327ec3..74c18e8 100644 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ThreadDataProvider.java +++ b/src/main/java/com/zfgc/zfgbb/dataprovider/forum/ThreadDataProvider.java @@ -19,6 +19,8 @@ import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; import com.zfgc.zfgbb.dbo.BoardPermissionViewDboExample; import com.zfgc.zfgbb.dbo.CurrentMessageDboExample; +import com.zfgc.zfgbb.dbo.LatestMessageInThreadViewDbo; +import com.zfgc.zfgbb.dbo.LatestMessageInThreadViewDboExample; import com.zfgc.zfgbb.dbo.MessageDbo; import com.zfgc.zfgbb.dbo.MessageDboExample; import com.zfgc.zfgbb.dbo.MessageHistoryDbo; @@ -30,7 +32,9 @@ import com.zfgc.zfgbb.dbo.ThreadDbo; import com.zfgc.zfgbb.dbo.ThreadDboExample; import com.zfgc.zfgbb.dbo.UserDboExample; +import com.zfgc.zfgbb.mappers.LatestMessageInThreadViewDboMapper; import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.model.forum.LatestMessage; import com.zfgc.zfgbb.model.forum.Message; import com.zfgc.zfgbb.model.forum.MessageHistory; import com.zfgc.zfgbb.model.forum.Poll; @@ -60,6 +64,9 @@ public class ThreadDataProvider extends AbstractDataProvider { @Autowired private UserDao userDao; + @Autowired + private LatestMessageInThreadViewDboMapper latestMessageMapper; + public Thread getThread(Integer threadId, Integer page, Integer count) { ThreadDbo threadDb = threadDao.get(threadId); Thread result = null; @@ -96,14 +103,26 @@ public Poll getPollInfo(Integer threadId) { return result; } - public List getThreadsByBoardId(Integer boardId, Boolean sticky){ + public List getThreadsByBoardId(Integer boardId, Integer pageNo, Integer threadsPerPage, Boolean sticky){ ThreadDboExample exT = new ThreadDboExample(); + if(pageNo != null && threadsPerPage != null) { + exT.setLimit(threadsPerPage); + exT.setOffset((pageNo - 1) * threadsPerPage); + } exT.createCriteria().andBoardIdEqualTo(boardId).andPinnedFlagEqualTo(sticky); List result = super.convertDboListToModel(threadDao.get(exT), Thread.class); result.forEach(th -> { th.setCreatedUser(super.mapper.map(userDao.get(th.getCreatedUserId()), User.class)); + th.setPostCount(messageDataProvider.getTotalPostsInThread(th.getThreadId()).intValue()); + + LatestMessageInThreadViewDboExample ex = new LatestMessageInThreadViewDboExample(); + ex.createCriteria().andThreadIdEqualTo(th.getThreadId()); + LatestMessageInThreadViewDbo latestDbo = latestMessageMapper.selectByExample(ex).stream().findFirst().orElse(null); + if(latestDbo != null) { + th.setLatestMessage(mapper.map(latestDbo, LatestMessage.class)); + } }); return result; diff --git a/src/main/java/com/zfgc/zfgbb/dataprovider/users/UserDataProvider.java b/src/main/java/com/zfgc/zfgbb/dataprovider/users/UserDataProvider.java index d0386db..e3da264 100644 --- a/src/main/java/com/zfgc/zfgbb/dataprovider/users/UserDataProvider.java +++ b/src/main/java/com/zfgc/zfgbb/dataprovider/users/UserDataProvider.java @@ -1,90 +1,131 @@ -package com.zfgc.zfgbb.dataprovider.users; - -import java.util.ArrayList; -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - -import com.zfgc.zfgbb.dao.users.EmailAddressDao; -import com.zfgc.zfgbb.dao.users.UserBioInfoDao; -import com.zfgc.zfgbb.dao.users.UserDao; -import com.zfgc.zfgbb.dao.UserPermissionViewDao; -import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; -import com.zfgc.zfgbb.dbo.EmailAddressDbo; -import com.zfgc.zfgbb.dbo.UserBioInfoDbo; -import com.zfgc.zfgbb.dbo.UserDbo; -import com.zfgc.zfgbb.dbo.UserDboExample; -import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; -import com.zfgc.zfgbb.model.User; -import com.zfgc.zfgbb.model.users.Permission; -import com.zfgc.zfgbb.model.users.UserBioInfo; - -@Repository -public class UserDataProvider extends AbstractDataProvider { - - @Autowired - private UserDao userDao; - - @Autowired - private UserPermissionViewDao userPermissionDao; - - @Autowired - private EmailAddressDao emailDao; - - @Autowired - private UserBioInfoDao bioInfoDao; - - public User getUser(String userName) { - UserDboExample ex = new UserDboExample(); - ex.createCriteria().andUserNameEqualTo(userName).andActiveFlagEqualTo(true); - UserDbo userDb = userDao.get(ex).stream().findFirst().orElse(createGuest()); - - return getUser(userDb.getPkId()); - } - - public User getUser(Integer userId) { - UserDboExample ex = new UserDboExample(); - ex.createCriteria().andUserIdEqualTo(userId).andActiveFlagEqualTo(true); - UserDbo userDb = userDao.get(ex).stream().findFirst().orElse(createGuest()); - - User user = mapper.map(userDb, User.class); - - //todo: setup guest permissions - UserPermissionViewDboExample upEx = new UserPermissionViewDboExample(); - upEx.createCriteria().andUserIdEqualTo(user.getUserId()); - List permissions = convertDboListToModel(userPermissionDao.get(upEx), Permission.class); - - user.setPermissions(permissions); - - UserBioInfoDbo bioInfoDbo = bioInfoDao.get(userId); - user.setBioInfo(mapper.map(bioInfoDbo, UserBioInfo.class)); - - return user; - } - - public User createUser(User user) { - UserDbo userDbo = mapper.map(user, UserDbo.class); - userDao.save(userDbo); - - //create bio info - UserBioInfoDbo bioInfo = mapper.map(user.getBioInfo(), UserBioInfoDbo.class); - bioInfo.setUserId(userDbo.getPkId()); - bioInfoDao.save(bioInfo); - - EmailAddressDbo emailDbo = mapper.map(user.getEmail(), EmailAddressDbo.class); - emailDbo.setUserId(userDbo.getPkId()); - emailDao.save(emailDbo); - - return getUser(userDbo.getPkId()); - } - - public UserDbo createGuest() { - UserDbo user = new UserDbo(); - user.setUserId(-1); - user.setDisplayName("Guest"); - - return user; - } - +package com.zfgc.zfgbb.dataprovider.users; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import com.zfgc.zfgbb.dao.users.AvatarDao; +import com.zfgc.zfgbb.dao.users.EmailAddressDao; +import com.zfgc.zfgbb.dao.users.UserBioInfoDao; +import com.zfgc.zfgbb.dao.users.UserDao; +import com.zfgc.zfgbb.config.loadoption.user.BasicUserLoadOptions; +import com.zfgc.zfgbb.config.loadoption.user.FullUserLoadOptions; +import com.zfgc.zfgbb.config.loadoption.user.LoggedInUserLoadOptions; +import com.zfgc.zfgbb.dao.UserPermissionViewDao; +import com.zfgc.zfgbb.dataprovider.AbstractDataProvider; +import com.zfgc.zfgbb.dbo.AvatarDbo; +import com.zfgc.zfgbb.dbo.AvatarDboExample; +import com.zfgc.zfgbb.dbo.EmailAddressDbo; +import com.zfgc.zfgbb.dbo.UserBioInfoDbo; +import com.zfgc.zfgbb.dbo.UserDbo; +import com.zfgc.zfgbb.dbo.UserDboExample; +import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; +import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.model.users.Avatar; +import com.zfgc.zfgbb.model.users.Permission; +import com.zfgc.zfgbb.model.users.UserBioInfo; + +@Repository +public class UserDataProvider extends AbstractDataProvider { + + @Autowired + private UserDao userDao; + + @Autowired + private UserPermissionViewDao userPermissionDao; + + @Autowired + private EmailAddressDao emailDao; + + @Autowired + private UserBioInfoDao bioInfoDao; + + @Autowired + private AvatarDao avatarDao; + + public User getUser(String userName) { + UserDboExample ex = new UserDboExample(); + ex.createCriteria().andUserNameEqualTo(userName).andActiveFlagEqualTo(true); + UserDbo userDb = userDao.get(ex).stream().findFirst().orElse(createGuest()); + + return getUser(userDb.getPkId(), new LoggedInUserLoadOptions()); + } + + public User getUser(Integer userId, BasicUserLoadOptions loadOptions) { + if(loadOptions == null) { + loadOptions = new BasicUserLoadOptions(); + } + + UserDboExample ex = new UserDboExample(); + ex.createCriteria().andUserIdEqualTo(userId).andActiveFlagEqualTo(true); + UserDbo userDb = userDao.get(ex).stream().findFirst().orElse(createGuest()); + + User user = mapper.map(userDb, User.class); + + //todo: setup guest permissions + if(Boolean.TRUE.equals(loadOptions.loadPermissions())){ + UserPermissionViewDboExample upEx = new UserPermissionViewDboExample(); + upEx.createCriteria().andUserIdEqualTo(user.getUserId()); + List permissions = convertDboListToModel(userPermissionDao.get(upEx), Permission.class); + + user.setPermissions(permissions); + } + + if(Boolean.TRUE.equals(loadOptions.loadBio())) { + UserBioInfoDbo bioInfoDbo = bioInfoDao.get(userId); + user.setBioInfo(mapper.map(bioInfoDbo, UserBioInfo.class)); + } + + if(Boolean.TRUE.equals(loadOptions.loadAvatar())) { + AvatarDboExample avatarEx = new AvatarDboExample(); + avatarEx.createCriteria().andUserIdEqualTo(userId) + .andActiveFlagEqualTo(true); + + Optional avDb = avatarDao.get(avatarEx).stream().findFirst(); + Avatar av = avDb.map((a) -> mapper.map(a, Avatar.class)).orElse(null); + user.setAvatar(av); + } + + return user; + } + + public User createUser(User user) { + UserDbo userDbo = mapper.map(user, UserDbo.class); + userDao.save(userDbo); + + //create bio info + UserBioInfoDbo bioInfo = mapper.map(user.getBioInfo(), UserBioInfoDbo.class); + bioInfo.setUserId(userDbo.getPkId()); + bioInfoDao.save(bioInfo); + + EmailAddressDbo emailDbo = mapper.map(user.getEmail(), EmailAddressDbo.class); + emailDbo.setUserId(userDbo.getPkId()); + emailDao.save(emailDbo); + + return getUser(userDbo.getPkId(), new FullUserLoadOptions()); + } + + public UserDbo createGuest() { + UserDbo user = new UserDbo(); + user.setUserId(-1); + user.setDisplayName("Guest"); + + return user; + } + + public User saveUserProfile(User user) { + UserDbo userDbo = mapper.map(user, UserDbo.class); + userDbo = userDao.save(userDbo); + + if(user.getBioInfo() != null) { + UserBioInfoDbo bioInfoDbo = mapper.map(user.getBioInfo(), UserBioInfoDbo.class); + bioInfoDao.save(bioInfoDbo); + } + + return getUser(userDbo.getUserId(), null); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/AbstractDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/AbstractDbo.java index 2fc8c88..98e9d68 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/AbstractDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/AbstractDbo.java @@ -1,11 +1,11 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; - -public abstract class AbstractDbo { - - public abstract Integer getPkId(); - public abstract LocalDateTime getUpdatedTime(); - public abstract LocalDateTime getCreatedTime(); - +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public abstract class AbstractDbo { + + public abstract Integer getPkId(); + public abstract LocalDateTime getUpdatedTime(); + public abstract LocalDateTime getCreatedTime(); + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDbo.java index d9b4311..e98dc90 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDbo.java @@ -1,116 +1,116 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDateTime; - -public class AttributeDataTypeDbo extends AbstractDbo { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.attribute_data_type_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer attributeDataTypeId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.type_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String typeName; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.attribute_data_type_id - * @return the value of zfgbb.attribute_data_type.attribute_data_type_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getAttributeDataTypeId() { - return attributeDataTypeId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.attribute_data_type_id - * @param attributeDataTypeId the value for zfgbb.attribute_data_type.attribute_data_type_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setAttributeDataTypeId(Integer attributeDataTypeId) { - this.attributeDataTypeId = attributeDataTypeId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.type_name - * @return the value of zfgbb.attribute_data_type.type_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getTypeName() { - return typeName; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.type_name - * @param typeName the value for zfgbb.attribute_data_type.type_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setTypeName(String typeName) { - this.typeName = typeName; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.created_ts - * @return the value of zfgbb.attribute_data_type.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.created_ts - * @param createdTs the value for zfgbb.attribute_data_type.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.updated_ts - * @return the value of zfgbb.attribute_data_type.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.updated_ts - * @param updatedTs the value for zfgbb.attribute_data_type.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return attributeDataTypeId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDateTime; + +public class AttributeDataTypeDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.attribute_data_type_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer attributeDataTypeId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.type_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String typeName; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.attribute_data_type.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.attribute_data_type_id + * @return the value of zfgbb.attribute_data_type.attribute_data_type_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getAttributeDataTypeId() { + return attributeDataTypeId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.attribute_data_type_id + * @param attributeDataTypeId the value for zfgbb.attribute_data_type.attribute_data_type_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setAttributeDataTypeId(Integer attributeDataTypeId) { + this.attributeDataTypeId = attributeDataTypeId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.type_name + * @return the value of zfgbb.attribute_data_type.type_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getTypeName() { + return typeName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.type_name + * @param typeName the value for zfgbb.attribute_data_type.type_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setTypeName(String typeName) { + this.typeName = typeName; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.created_ts + * @return the value of zfgbb.attribute_data_type.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.created_ts + * @param createdTs the value for zfgbb.attribute_data_type.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.attribute_data_type.updated_ts + * @return the value of zfgbb.attribute_data_type.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.attribute_data_type.updated_ts + * @param updatedTs the value for zfgbb.attribute_data_type.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return attributeDataTypeId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDboExample.java index bd9cf31..79e43e4 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/AttributeDataTypeDboExample.java @@ -1,512 +1,512 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class AttributeDataTypeDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public AttributeDataTypeDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andAttributeDataTypeIdIsNull() { - addCriterion("attribute_data_type_id is null"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdIsNotNull() { - addCriterion("attribute_data_type_id is not null"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdEqualTo(Integer value) { - addCriterion("attribute_data_type_id =", value, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdNotEqualTo(Integer value) { - addCriterion("attribute_data_type_id <>", value, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdGreaterThan(Integer value) { - addCriterion("attribute_data_type_id >", value, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdGreaterThanOrEqualTo(Integer value) { - addCriterion("attribute_data_type_id >=", value, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdLessThan(Integer value) { - addCriterion("attribute_data_type_id <", value, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdLessThanOrEqualTo(Integer value) { - addCriterion("attribute_data_type_id <=", value, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdIn(List values) { - addCriterion("attribute_data_type_id in", values, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdNotIn(List values) { - addCriterion("attribute_data_type_id not in", values, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdBetween(Integer value1, Integer value2) { - addCriterion("attribute_data_type_id between", value1, value2, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIdNotBetween(Integer value1, Integer value2) { - addCriterion("attribute_data_type_id not between", value1, value2, "attributeDataTypeId"); - return (Criteria) this; - } - - public Criteria andTypeNameIsNull() { - addCriterion("type_name is null"); - return (Criteria) this; - } - - public Criteria andTypeNameIsNotNull() { - addCriterion("type_name is not null"); - return (Criteria) this; - } - - public Criteria andTypeNameEqualTo(String value) { - addCriterion("type_name =", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameNotEqualTo(String value) { - addCriterion("type_name <>", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameGreaterThan(String value) { - addCriterion("type_name >", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameGreaterThanOrEqualTo(String value) { - addCriterion("type_name >=", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameLessThan(String value) { - addCriterion("type_name <", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameLessThanOrEqualTo(String value) { - addCriterion("type_name <=", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameLike(String value) { - addCriterion("type_name like", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameNotLike(String value) { - addCriterion("type_name not like", value, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameIn(List values) { - addCriterion("type_name in", values, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameNotIn(List values) { - addCriterion("type_name not in", values, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameBetween(String value1, String value2) { - addCriterion("type_name between", value1, value2, "typeName"); - return (Criteria) this; - } - - public Criteria andTypeNameNotBetween(String value1, String value2) { - addCriterion("type_name not between", value1, value2, "typeName"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.attribute_data_type - * - * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class AttributeDataTypeDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public AttributeDataTypeDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andAttributeDataTypeIdIsNull() { + addCriterion("attribute_data_type_id is null"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdIsNotNull() { + addCriterion("attribute_data_type_id is not null"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdEqualTo(Integer value) { + addCriterion("attribute_data_type_id =", value, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdNotEqualTo(Integer value) { + addCriterion("attribute_data_type_id <>", value, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdGreaterThan(Integer value) { + addCriterion("attribute_data_type_id >", value, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdGreaterThanOrEqualTo(Integer value) { + addCriterion("attribute_data_type_id >=", value, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdLessThan(Integer value) { + addCriterion("attribute_data_type_id <", value, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdLessThanOrEqualTo(Integer value) { + addCriterion("attribute_data_type_id <=", value, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdIn(List values) { + addCriterion("attribute_data_type_id in", values, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdNotIn(List values) { + addCriterion("attribute_data_type_id not in", values, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdBetween(Integer value1, Integer value2) { + addCriterion("attribute_data_type_id between", value1, value2, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIdNotBetween(Integer value1, Integer value2) { + addCriterion("attribute_data_type_id not between", value1, value2, "attributeDataTypeId"); + return (Criteria) this; + } + + public Criteria andTypeNameIsNull() { + addCriterion("type_name is null"); + return (Criteria) this; + } + + public Criteria andTypeNameIsNotNull() { + addCriterion("type_name is not null"); + return (Criteria) this; + } + + public Criteria andTypeNameEqualTo(String value) { + addCriterion("type_name =", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameNotEqualTo(String value) { + addCriterion("type_name <>", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameGreaterThan(String value) { + addCriterion("type_name >", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameGreaterThanOrEqualTo(String value) { + addCriterion("type_name >=", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameLessThan(String value) { + addCriterion("type_name <", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameLessThanOrEqualTo(String value) { + addCriterion("type_name <=", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameLike(String value) { + addCriterion("type_name like", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameNotLike(String value) { + addCriterion("type_name not like", value, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameIn(List values) { + addCriterion("type_name in", values, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameNotIn(List values) { + addCriterion("type_name not in", values, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameBetween(String value1, String value2) { + addCriterion("type_name between", value1, value2, "typeName"); + return (Criteria) this; + } + + public Criteria andTypeNameNotBetween(String value1, String value2) { + addCriterion("type_name not between", value1, value2, "typeName"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.attribute_data_type + * + * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/AvatarDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/AvatarDbo.java new file mode 100644 index 0000000..202515e --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/AvatarDbo.java @@ -0,0 +1,160 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class AvatarDbo extends AbstractDbo { + + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.avatar.avatar_id + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + private Integer avatarId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.avatar.url + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + private String url; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.avatar.user_id + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + private Integer userId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.avatar.active_flag + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + private Boolean activeFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.avatar.created_ts + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.avatar.updated_ts + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.avatar.avatar_id + * @return the value of zfgbb.avatar.avatar_id + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public Integer getAvatarId() { + return avatarId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.avatar.avatar_id + * @param avatarId the value for zfgbb.avatar.avatar_id + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setAvatarId(Integer avatarId) { + this.avatarId = avatarId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.avatar.url + * @return the value of zfgbb.avatar.url + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public String getUrl() { + return url; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.avatar.url + * @param url the value for zfgbb.avatar.url + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setUrl(String url) { + this.url = url; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.avatar.user_id + * @return the value of zfgbb.avatar.user_id + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public Integer getUserId() { + return userId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.avatar.user_id + * @param userId the value for zfgbb.avatar.user_id + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setUserId(Integer userId) { + this.userId = userId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.avatar.active_flag + * @return the value of zfgbb.avatar.active_flag + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public Boolean getActiveFlag() { + return activeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.avatar.active_flag + * @param activeFlag the value for zfgbb.avatar.active_flag + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setActiveFlag(Boolean activeFlag) { + this.activeFlag = activeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.avatar.created_ts + * @return the value of zfgbb.avatar.created_ts + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.avatar.created_ts + * @param createdTs the value for zfgbb.avatar.created_ts + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.avatar.updated_ts + * @return the value of zfgbb.avatar.updated_ts + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.avatar.updated_ts + * @param updatedTs the value for zfgbb.avatar.updated_ts + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return avatarId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/AvatarDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/AvatarDboExample.java new file mode 100644 index 0000000..754ab43 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/AvatarDboExample.java @@ -0,0 +1,631 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class AvatarDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public AvatarDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andAvatarIdIsNull() { + addCriterion("avatar_id is null"); + return (Criteria) this; + } + + public Criteria andAvatarIdIsNotNull() { + addCriterion("avatar_id is not null"); + return (Criteria) this; + } + + public Criteria andAvatarIdEqualTo(Integer value) { + addCriterion("avatar_id =", value, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdNotEqualTo(Integer value) { + addCriterion("avatar_id <>", value, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdGreaterThan(Integer value) { + addCriterion("avatar_id >", value, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdGreaterThanOrEqualTo(Integer value) { + addCriterion("avatar_id >=", value, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdLessThan(Integer value) { + addCriterion("avatar_id <", value, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdLessThanOrEqualTo(Integer value) { + addCriterion("avatar_id <=", value, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdIn(List values) { + addCriterion("avatar_id in", values, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdNotIn(List values) { + addCriterion("avatar_id not in", values, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdBetween(Integer value1, Integer value2) { + addCriterion("avatar_id between", value1, value2, "avatarId"); + return (Criteria) this; + } + + public Criteria andAvatarIdNotBetween(Integer value1, Integer value2) { + addCriterion("avatar_id not between", value1, value2, "avatarId"); + 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 values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List 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 Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Integer value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Integer value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Integer value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Integer value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Integer value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Integer value1, Integer value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andActiveFlagIsNull() { + addCriterion("active_flag is null"); + return (Criteria) this; + } + + public Criteria andActiveFlagIsNotNull() { + addCriterion("active_flag is not null"); + return (Criteria) this; + } + + public Criteria andActiveFlagEqualTo(Boolean value) { + addCriterion("active_flag =", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotEqualTo(Boolean value) { + addCriterion("active_flag <>", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagGreaterThan(Boolean value) { + addCriterion("active_flag >", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("active_flag >=", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagLessThan(Boolean value) { + addCriterion("active_flag <", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagLessThanOrEqualTo(Boolean value) { + addCriterion("active_flag <=", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagIn(List values) { + addCriterion("active_flag in", values, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotIn(List values) { + addCriterion("active_flag not in", values, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagBetween(Boolean value1, Boolean value2) { + addCriterion("active_flag between", value1, value2, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("active_flag not between", value1, value2, "activeFlag"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.avatar + * + * @mbg.generated do_not_delete_during_merge Sun Sep 29 14:50:53 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDbo.java index 88aaa6c..b091615 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDbo.java @@ -1,185 +1,185 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDateTime; - -public class BBCodeAttributeDbo extends AbstractDbo{ - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.bb_code_attribute_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer bbCodeAttributeId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer attributeDataType; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.attribute_index - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer attributeIndex; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.bb_code_attribute_mode_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer bbCodeAttributeModeId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String name; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_id - * @return the value of zfgbb.bb_code_attribute.bb_code_attribute_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getBbCodeAttributeId() { - return bbCodeAttributeId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_id - * @param bbCodeAttributeId the value for zfgbb.bb_code_attribute.bb_code_attribute_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setBbCodeAttributeId(Integer bbCodeAttributeId) { - this.bbCodeAttributeId = bbCodeAttributeId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.attribute_data_type - * @return the value of zfgbb.bb_code_attribute.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getAttributeDataType() { - return attributeDataType; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.attribute_data_type - * @param attributeDataType the value for zfgbb.bb_code_attribute.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setAttributeDataType(Integer attributeDataType) { - this.attributeDataType = attributeDataType; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.attribute_index - * @return the value of zfgbb.bb_code_attribute.attribute_index - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getAttributeIndex() { - return attributeIndex; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.attribute_index - * @param attributeIndex the value for zfgbb.bb_code_attribute.attribute_index - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setAttributeIndex(Integer attributeIndex) { - this.attributeIndex = attributeIndex; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_mode_id - * @return the value of zfgbb.bb_code_attribute.bb_code_attribute_mode_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getBbCodeAttributeModeId() { - return bbCodeAttributeModeId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_mode_id - * @param bbCodeAttributeModeId the value for zfgbb.bb_code_attribute.bb_code_attribute_mode_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setBbCodeAttributeModeId(Integer bbCodeAttributeModeId) { - this.bbCodeAttributeModeId = bbCodeAttributeModeId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.name - * @return the value of zfgbb.bb_code_attribute.name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getName() { - return name; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.name - * @param name the value for zfgbb.bb_code_attribute.name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setName(String name) { - this.name = name; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.created_ts - * @return the value of zfgbb.bb_code_attribute.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.created_ts - * @param createdTs the value for zfgbb.bb_code_attribute.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.updated_ts - * @return the value of zfgbb.bb_code_attribute.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.updated_ts - * @param updatedTs the value for zfgbb.bb_code_attribute.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return bbCodeAttributeId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDateTime; + +public class BBCodeAttributeDbo extends AbstractDbo{ + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.bb_code_attribute_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer bbCodeAttributeId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer attributeDataType; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.attribute_index + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer attributeIndex; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.bb_code_attribute_mode_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer bbCodeAttributeModeId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String name; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_id + * @return the value of zfgbb.bb_code_attribute.bb_code_attribute_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getBbCodeAttributeId() { + return bbCodeAttributeId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_id + * @param bbCodeAttributeId the value for zfgbb.bb_code_attribute.bb_code_attribute_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setBbCodeAttributeId(Integer bbCodeAttributeId) { + this.bbCodeAttributeId = bbCodeAttributeId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.attribute_data_type + * @return the value of zfgbb.bb_code_attribute.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getAttributeDataType() { + return attributeDataType; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.attribute_data_type + * @param attributeDataType the value for zfgbb.bb_code_attribute.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setAttributeDataType(Integer attributeDataType) { + this.attributeDataType = attributeDataType; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.attribute_index + * @return the value of zfgbb.bb_code_attribute.attribute_index + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getAttributeIndex() { + return attributeIndex; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.attribute_index + * @param attributeIndex the value for zfgbb.bb_code_attribute.attribute_index + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setAttributeIndex(Integer attributeIndex) { + this.attributeIndex = attributeIndex; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_mode_id + * @return the value of zfgbb.bb_code_attribute.bb_code_attribute_mode_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getBbCodeAttributeModeId() { + return bbCodeAttributeModeId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.bb_code_attribute_mode_id + * @param bbCodeAttributeModeId the value for zfgbb.bb_code_attribute.bb_code_attribute_mode_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setBbCodeAttributeModeId(Integer bbCodeAttributeModeId) { + this.bbCodeAttributeModeId = bbCodeAttributeModeId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.name + * @return the value of zfgbb.bb_code_attribute.name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getName() { + return name; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.name + * @param name the value for zfgbb.bb_code_attribute.name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setName(String name) { + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.created_ts + * @return the value of zfgbb.bb_code_attribute.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.created_ts + * @param createdTs the value for zfgbb.bb_code_attribute.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute.updated_ts + * @return the value of zfgbb.bb_code_attribute.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute.updated_ts + * @param updatedTs the value for zfgbb.bb_code_attribute.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return bbCodeAttributeId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDboExample.java index 1404479..f7a4fcc 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeDboExample.java @@ -1,692 +1,692 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class BBCodeAttributeDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public BBCodeAttributeDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andBbCodeAttributeIdIsNull() { - addCriterion("bb_code_attribute_id is null"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdIsNotNull() { - addCriterion("bb_code_attribute_id is not null"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdEqualTo(Integer value) { - addCriterion("bb_code_attribute_id =", value, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdNotEqualTo(Integer value) { - addCriterion("bb_code_attribute_id <>", value, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdGreaterThan(Integer value) { - addCriterion("bb_code_attribute_id >", value, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdGreaterThanOrEqualTo(Integer value) { - addCriterion("bb_code_attribute_id >=", value, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdLessThan(Integer value) { - addCriterion("bb_code_attribute_id <", value, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdLessThanOrEqualTo(Integer value) { - addCriterion("bb_code_attribute_id <=", value, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdIn(List values) { - addCriterion("bb_code_attribute_id in", values, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdNotIn(List values) { - addCriterion("bb_code_attribute_id not in", values, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdBetween(Integer value1, Integer value2) { - addCriterion("bb_code_attribute_id between", value1, value2, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeIdNotBetween(Integer value1, Integer value2) { - addCriterion("bb_code_attribute_id not between", value1, value2, "bbCodeAttributeId"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIsNull() { - addCriterion("attribute_data_type is null"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIsNotNull() { - addCriterion("attribute_data_type is not null"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeEqualTo(Integer value) { - addCriterion("attribute_data_type =", value, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeNotEqualTo(Integer value) { - addCriterion("attribute_data_type <>", value, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeGreaterThan(Integer value) { - addCriterion("attribute_data_type >", value, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeGreaterThanOrEqualTo(Integer value) { - addCriterion("attribute_data_type >=", value, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeLessThan(Integer value) { - addCriterion("attribute_data_type <", value, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeLessThanOrEqualTo(Integer value) { - addCriterion("attribute_data_type <=", value, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeIn(List values) { - addCriterion("attribute_data_type in", values, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeNotIn(List values) { - addCriterion("attribute_data_type not in", values, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeBetween(Integer value1, Integer value2) { - addCriterion("attribute_data_type between", value1, value2, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeDataTypeNotBetween(Integer value1, Integer value2) { - addCriterion("attribute_data_type not between", value1, value2, "attributeDataType"); - return (Criteria) this; - } - - public Criteria andAttributeIndexIsNull() { - addCriterion("attribute_index is null"); - return (Criteria) this; - } - - public Criteria andAttributeIndexIsNotNull() { - addCriterion("attribute_index is not null"); - return (Criteria) this; - } - - public Criteria andAttributeIndexEqualTo(Integer value) { - addCriterion("attribute_index =", value, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexNotEqualTo(Integer value) { - addCriterion("attribute_index <>", value, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexGreaterThan(Integer value) { - addCriterion("attribute_index >", value, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexGreaterThanOrEqualTo(Integer value) { - addCriterion("attribute_index >=", value, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexLessThan(Integer value) { - addCriterion("attribute_index <", value, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexLessThanOrEqualTo(Integer value) { - addCriterion("attribute_index <=", value, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexIn(List values) { - addCriterion("attribute_index in", values, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexNotIn(List values) { - addCriterion("attribute_index not in", values, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexBetween(Integer value1, Integer value2) { - addCriterion("attribute_index between", value1, value2, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andAttributeIndexNotBetween(Integer value1, Integer value2) { - addCriterion("attribute_index not between", value1, value2, "attributeIndex"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdIsNull() { - addCriterion("bb_code_attribute_mode_id is null"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdIsNotNull() { - addCriterion("bb_code_attribute_mode_id is not null"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id =", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdNotEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id <>", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdGreaterThan(Integer value) { - addCriterion("bb_code_attribute_mode_id >", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdGreaterThanOrEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id >=", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdLessThan(Integer value) { - addCriterion("bb_code_attribute_mode_id <", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdLessThanOrEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id <=", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdIn(List values) { - addCriterion("bb_code_attribute_mode_id in", values, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdNotIn(List values) { - addCriterion("bb_code_attribute_mode_id not in", values, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdBetween(Integer value1, Integer value2) { - addCriterion("bb_code_attribute_mode_id between", value1, value2, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdNotBetween(Integer value1, Integer value2) { - addCriterion("bb_code_attribute_mode_id not between", value1, value2, "bbCodeAttributeModeId"); - 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 values) { - addCriterion("name in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List 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 andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.bb_code_attribute - * - * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class BBCodeAttributeDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public BBCodeAttributeDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andBbCodeAttributeIdIsNull() { + addCriterion("bb_code_attribute_id is null"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdIsNotNull() { + addCriterion("bb_code_attribute_id is not null"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdEqualTo(Integer value) { + addCriterion("bb_code_attribute_id =", value, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdNotEqualTo(Integer value) { + addCriterion("bb_code_attribute_id <>", value, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdGreaterThan(Integer value) { + addCriterion("bb_code_attribute_id >", value, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdGreaterThanOrEqualTo(Integer value) { + addCriterion("bb_code_attribute_id >=", value, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdLessThan(Integer value) { + addCriterion("bb_code_attribute_id <", value, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdLessThanOrEqualTo(Integer value) { + addCriterion("bb_code_attribute_id <=", value, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdIn(List values) { + addCriterion("bb_code_attribute_id in", values, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdNotIn(List values) { + addCriterion("bb_code_attribute_id not in", values, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdBetween(Integer value1, Integer value2) { + addCriterion("bb_code_attribute_id between", value1, value2, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeIdNotBetween(Integer value1, Integer value2) { + addCriterion("bb_code_attribute_id not between", value1, value2, "bbCodeAttributeId"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIsNull() { + addCriterion("attribute_data_type is null"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIsNotNull() { + addCriterion("attribute_data_type is not null"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeEqualTo(Integer value) { + addCriterion("attribute_data_type =", value, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeNotEqualTo(Integer value) { + addCriterion("attribute_data_type <>", value, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeGreaterThan(Integer value) { + addCriterion("attribute_data_type >", value, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("attribute_data_type >=", value, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeLessThan(Integer value) { + addCriterion("attribute_data_type <", value, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeLessThanOrEqualTo(Integer value) { + addCriterion("attribute_data_type <=", value, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeIn(List values) { + addCriterion("attribute_data_type in", values, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeNotIn(List values) { + addCriterion("attribute_data_type not in", values, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeBetween(Integer value1, Integer value2) { + addCriterion("attribute_data_type between", value1, value2, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeDataTypeNotBetween(Integer value1, Integer value2) { + addCriterion("attribute_data_type not between", value1, value2, "attributeDataType"); + return (Criteria) this; + } + + public Criteria andAttributeIndexIsNull() { + addCriterion("attribute_index is null"); + return (Criteria) this; + } + + public Criteria andAttributeIndexIsNotNull() { + addCriterion("attribute_index is not null"); + return (Criteria) this; + } + + public Criteria andAttributeIndexEqualTo(Integer value) { + addCriterion("attribute_index =", value, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexNotEqualTo(Integer value) { + addCriterion("attribute_index <>", value, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexGreaterThan(Integer value) { + addCriterion("attribute_index >", value, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexGreaterThanOrEqualTo(Integer value) { + addCriterion("attribute_index >=", value, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexLessThan(Integer value) { + addCriterion("attribute_index <", value, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexLessThanOrEqualTo(Integer value) { + addCriterion("attribute_index <=", value, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexIn(List values) { + addCriterion("attribute_index in", values, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexNotIn(List values) { + addCriterion("attribute_index not in", values, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexBetween(Integer value1, Integer value2) { + addCriterion("attribute_index between", value1, value2, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andAttributeIndexNotBetween(Integer value1, Integer value2) { + addCriterion("attribute_index not between", value1, value2, "attributeIndex"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdIsNull() { + addCriterion("bb_code_attribute_mode_id is null"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdIsNotNull() { + addCriterion("bb_code_attribute_mode_id is not null"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id =", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdNotEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id <>", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdGreaterThan(Integer value) { + addCriterion("bb_code_attribute_mode_id >", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdGreaterThanOrEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id >=", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdLessThan(Integer value) { + addCriterion("bb_code_attribute_mode_id <", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdLessThanOrEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id <=", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdIn(List values) { + addCriterion("bb_code_attribute_mode_id in", values, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdNotIn(List values) { + addCriterion("bb_code_attribute_mode_id not in", values, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdBetween(Integer value1, Integer value2) { + addCriterion("bb_code_attribute_mode_id between", value1, value2, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdNotBetween(Integer value1, Integer value2) { + addCriterion("bb_code_attribute_mode_id not between", value1, value2, "bbCodeAttributeModeId"); + 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.bb_code_attribute + * + * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDbo.java index 85ac3b0..cbb39f6 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDbo.java @@ -1,208 +1,208 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDateTime; - -public class BBCodeAttributeModeDbo extends AbstractDbo{ - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer bbCodeAttributeModeId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.bb_code_config_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer bbCodeConfigId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.content_is_attribute_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean contentIsAttributeFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.open_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String openTag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.close_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String closeTag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.output_content_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean outputContentFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id - * @return the value of zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getBbCodeAttributeModeId() { - return bbCodeAttributeModeId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id - * @param bbCodeAttributeModeId the value for zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setBbCodeAttributeModeId(Integer bbCodeAttributeModeId) { - this.bbCodeAttributeModeId = bbCodeAttributeModeId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.bb_code_config_id - * @return the value of zfgbb.bb_code_attribute_mode.bb_code_config_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getBbCodeConfigId() { - return bbCodeConfigId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.bb_code_config_id - * @param bbCodeConfigId the value for zfgbb.bb_code_attribute_mode.bb_code_config_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setBbCodeConfigId(Integer bbCodeConfigId) { - this.bbCodeConfigId = bbCodeConfigId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.content_is_attribute_flag - * @return the value of zfgbb.bb_code_attribute_mode.content_is_attribute_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getContentIsAttributeFlag() { - return contentIsAttributeFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.content_is_attribute_flag - * @param contentIsAttributeFlag the value for zfgbb.bb_code_attribute_mode.content_is_attribute_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setContentIsAttributeFlag(Boolean contentIsAttributeFlag) { - this.contentIsAttributeFlag = contentIsAttributeFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.open_tag - * @return the value of zfgbb.bb_code_attribute_mode.open_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOpenTag() { - return openTag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.open_tag - * @param openTag the value for zfgbb.bb_code_attribute_mode.open_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOpenTag(String openTag) { - this.openTag = openTag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.close_tag - * @return the value of zfgbb.bb_code_attribute_mode.close_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getCloseTag() { - return closeTag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.close_tag - * @param closeTag the value for zfgbb.bb_code_attribute_mode.close_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCloseTag(String closeTag) { - this.closeTag = closeTag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.output_content_flag - * @return the value of zfgbb.bb_code_attribute_mode.output_content_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getOutputContentFlag() { - return outputContentFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.output_content_flag - * @param outputContentFlag the value for zfgbb.bb_code_attribute_mode.output_content_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOutputContentFlag(Boolean outputContentFlag) { - this.outputContentFlag = outputContentFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.created_ts - * @return the value of zfgbb.bb_code_attribute_mode.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.created_ts - * @param createdTs the value for zfgbb.bb_code_attribute_mode.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.updated_ts - * @return the value of zfgbb.bb_code_attribute_mode.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.updated_ts - * @param updatedTs the value for zfgbb.bb_code_attribute_mode.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return bbCodeAttributeModeId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDateTime; + +public class BBCodeAttributeModeDbo extends AbstractDbo{ + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer bbCodeAttributeModeId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.bb_code_config_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer bbCodeConfigId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.content_is_attribute_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Boolean contentIsAttributeFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.open_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String openTag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.close_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String closeTag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.output_content_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Boolean outputContentFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_attribute_mode.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id + * @return the value of zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getBbCodeAttributeModeId() { + return bbCodeAttributeModeId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id + * @param bbCodeAttributeModeId the value for zfgbb.bb_code_attribute_mode.bb_code_attribute_mode_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setBbCodeAttributeModeId(Integer bbCodeAttributeModeId) { + this.bbCodeAttributeModeId = bbCodeAttributeModeId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.bb_code_config_id + * @return the value of zfgbb.bb_code_attribute_mode.bb_code_config_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getBbCodeConfigId() { + return bbCodeConfigId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.bb_code_config_id + * @param bbCodeConfigId the value for zfgbb.bb_code_attribute_mode.bb_code_config_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setBbCodeConfigId(Integer bbCodeConfigId) { + this.bbCodeConfigId = bbCodeConfigId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.content_is_attribute_flag + * @return the value of zfgbb.bb_code_attribute_mode.content_is_attribute_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Boolean getContentIsAttributeFlag() { + return contentIsAttributeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.content_is_attribute_flag + * @param contentIsAttributeFlag the value for zfgbb.bb_code_attribute_mode.content_is_attribute_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setContentIsAttributeFlag(Boolean contentIsAttributeFlag) { + this.contentIsAttributeFlag = contentIsAttributeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.open_tag + * @return the value of zfgbb.bb_code_attribute_mode.open_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOpenTag() { + return openTag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.open_tag + * @param openTag the value for zfgbb.bb_code_attribute_mode.open_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOpenTag(String openTag) { + this.openTag = openTag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.close_tag + * @return the value of zfgbb.bb_code_attribute_mode.close_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getCloseTag() { + return closeTag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.close_tag + * @param closeTag the value for zfgbb.bb_code_attribute_mode.close_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCloseTag(String closeTag) { + this.closeTag = closeTag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.output_content_flag + * @return the value of zfgbb.bb_code_attribute_mode.output_content_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Boolean getOutputContentFlag() { + return outputContentFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.output_content_flag + * @param outputContentFlag the value for zfgbb.bb_code_attribute_mode.output_content_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOutputContentFlag(Boolean outputContentFlag) { + this.outputContentFlag = outputContentFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.created_ts + * @return the value of zfgbb.bb_code_attribute_mode.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.created_ts + * @param createdTs the value for zfgbb.bb_code_attribute_mode.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_attribute_mode.updated_ts + * @return the value of zfgbb.bb_code_attribute_mode.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_attribute_mode.updated_ts + * @param updatedTs the value for zfgbb.bb_code_attribute_mode.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return bbCodeAttributeModeId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDboExample.java index 1fb3ccc..b8ad72a 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeAttributeModeDboExample.java @@ -1,763 +1,763 @@ -package com.zfgc.zfgbb.dbo; - - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class BBCodeAttributeModeDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public BBCodeAttributeModeDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andBbCodeAttributeModeIdIsNull() { - addCriterion("bb_code_attribute_mode_id is null"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdIsNotNull() { - addCriterion("bb_code_attribute_mode_id is not null"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id =", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdNotEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id <>", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdGreaterThan(Integer value) { - addCriterion("bb_code_attribute_mode_id >", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdGreaterThanOrEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id >=", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdLessThan(Integer value) { - addCriterion("bb_code_attribute_mode_id <", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdLessThanOrEqualTo(Integer value) { - addCriterion("bb_code_attribute_mode_id <=", value, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdIn(List values) { - addCriterion("bb_code_attribute_mode_id in", values, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdNotIn(List values) { - addCriterion("bb_code_attribute_mode_id not in", values, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdBetween(Integer value1, Integer value2) { - addCriterion("bb_code_attribute_mode_id between", value1, value2, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeAttributeModeIdNotBetween(Integer value1, Integer value2) { - addCriterion("bb_code_attribute_mode_id not between", value1, value2, "bbCodeAttributeModeId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdIsNull() { - addCriterion("bb_code_config_id is null"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdIsNotNull() { - addCriterion("bb_code_config_id is not null"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdEqualTo(Integer value) { - addCriterion("bb_code_config_id =", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdNotEqualTo(Integer value) { - addCriterion("bb_code_config_id <>", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdGreaterThan(Integer value) { - addCriterion("bb_code_config_id >", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdGreaterThanOrEqualTo(Integer value) { - addCriterion("bb_code_config_id >=", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdLessThan(Integer value) { - addCriterion("bb_code_config_id <", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdLessThanOrEqualTo(Integer value) { - addCriterion("bb_code_config_id <=", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdIn(List values) { - addCriterion("bb_code_config_id in", values, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdNotIn(List values) { - addCriterion("bb_code_config_id not in", values, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdBetween(Integer value1, Integer value2) { - addCriterion("bb_code_config_id between", value1, value2, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdNotBetween(Integer value1, Integer value2) { - addCriterion("bb_code_config_id not between", value1, value2, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagIsNull() { - addCriterion("content_is_attribute_flag is null"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagIsNotNull() { - addCriterion("content_is_attribute_flag is not null"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagEqualTo(Boolean value) { - addCriterion("content_is_attribute_flag =", value, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagNotEqualTo(Boolean value) { - addCriterion("content_is_attribute_flag <>", value, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagGreaterThan(Boolean value) { - addCriterion("content_is_attribute_flag >", value, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("content_is_attribute_flag >=", value, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagLessThan(Boolean value) { - addCriterion("content_is_attribute_flag <", value, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagLessThanOrEqualTo(Boolean value) { - addCriterion("content_is_attribute_flag <=", value, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagIn(List values) { - addCriterion("content_is_attribute_flag in", values, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagNotIn(List values) { - addCriterion("content_is_attribute_flag not in", values, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagBetween(Boolean value1, Boolean value2) { - addCriterion("content_is_attribute_flag between", value1, value2, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andContentIsAttributeFlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("content_is_attribute_flag not between", value1, value2, "contentIsAttributeFlag"); - return (Criteria) this; - } - - public Criteria andOpenTagIsNull() { - addCriterion("open_tag is null"); - return (Criteria) this; - } - - public Criteria andOpenTagIsNotNull() { - addCriterion("open_tag is not null"); - return (Criteria) this; - } - - public Criteria andOpenTagEqualTo(String value) { - addCriterion("open_tag =", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagNotEqualTo(String value) { - addCriterion("open_tag <>", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagGreaterThan(String value) { - addCriterion("open_tag >", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagGreaterThanOrEqualTo(String value) { - addCriterion("open_tag >=", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagLessThan(String value) { - addCriterion("open_tag <", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagLessThanOrEqualTo(String value) { - addCriterion("open_tag <=", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagLike(String value) { - addCriterion("open_tag like", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagNotLike(String value) { - addCriterion("open_tag not like", value, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagIn(List values) { - addCriterion("open_tag in", values, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagNotIn(List values) { - addCriterion("open_tag not in", values, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagBetween(String value1, String value2) { - addCriterion("open_tag between", value1, value2, "openTag"); - return (Criteria) this; - } - - public Criteria andOpenTagNotBetween(String value1, String value2) { - addCriterion("open_tag not between", value1, value2, "openTag"); - return (Criteria) this; - } - - public Criteria andCloseTagIsNull() { - addCriterion("close_tag is null"); - return (Criteria) this; - } - - public Criteria andCloseTagIsNotNull() { - addCriterion("close_tag is not null"); - return (Criteria) this; - } - - public Criteria andCloseTagEqualTo(String value) { - addCriterion("close_tag =", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagNotEqualTo(String value) { - addCriterion("close_tag <>", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagGreaterThan(String value) { - addCriterion("close_tag >", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagGreaterThanOrEqualTo(String value) { - addCriterion("close_tag >=", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagLessThan(String value) { - addCriterion("close_tag <", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagLessThanOrEqualTo(String value) { - addCriterion("close_tag <=", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagLike(String value) { - addCriterion("close_tag like", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagNotLike(String value) { - addCriterion("close_tag not like", value, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagIn(List values) { - addCriterion("close_tag in", values, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagNotIn(List values) { - addCriterion("close_tag not in", values, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagBetween(String value1, String value2) { - addCriterion("close_tag between", value1, value2, "closeTag"); - return (Criteria) this; - } - - public Criteria andCloseTagNotBetween(String value1, String value2) { - addCriterion("close_tag not between", value1, value2, "closeTag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagIsNull() { - addCriterion("output_content_flag is null"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagIsNotNull() { - addCriterion("output_content_flag is not null"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagEqualTo(Boolean value) { - addCriterion("output_content_flag =", value, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagNotEqualTo(Boolean value) { - addCriterion("output_content_flag <>", value, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagGreaterThan(Boolean value) { - addCriterion("output_content_flag >", value, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("output_content_flag >=", value, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagLessThan(Boolean value) { - addCriterion("output_content_flag <", value, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagLessThanOrEqualTo(Boolean value) { - addCriterion("output_content_flag <=", value, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagIn(List values) { - addCriterion("output_content_flag in", values, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagNotIn(List values) { - addCriterion("output_content_flag not in", values, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagBetween(Boolean value1, Boolean value2) { - addCriterion("output_content_flag between", value1, value2, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andOutputContentFlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("output_content_flag not between", value1, value2, "outputContentFlag"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.bb_code_attribute_mode - * - * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class BBCodeAttributeModeDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public BBCodeAttributeModeDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andBbCodeAttributeModeIdIsNull() { + addCriterion("bb_code_attribute_mode_id is null"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdIsNotNull() { + addCriterion("bb_code_attribute_mode_id is not null"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id =", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdNotEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id <>", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdGreaterThan(Integer value) { + addCriterion("bb_code_attribute_mode_id >", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdGreaterThanOrEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id >=", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdLessThan(Integer value) { + addCriterion("bb_code_attribute_mode_id <", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdLessThanOrEqualTo(Integer value) { + addCriterion("bb_code_attribute_mode_id <=", value, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdIn(List values) { + addCriterion("bb_code_attribute_mode_id in", values, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdNotIn(List values) { + addCriterion("bb_code_attribute_mode_id not in", values, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdBetween(Integer value1, Integer value2) { + addCriterion("bb_code_attribute_mode_id between", value1, value2, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeAttributeModeIdNotBetween(Integer value1, Integer value2) { + addCriterion("bb_code_attribute_mode_id not between", value1, value2, "bbCodeAttributeModeId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdIsNull() { + addCriterion("bb_code_config_id is null"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdIsNotNull() { + addCriterion("bb_code_config_id is not null"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdEqualTo(Integer value) { + addCriterion("bb_code_config_id =", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdNotEqualTo(Integer value) { + addCriterion("bb_code_config_id <>", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdGreaterThan(Integer value) { + addCriterion("bb_code_config_id >", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdGreaterThanOrEqualTo(Integer value) { + addCriterion("bb_code_config_id >=", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdLessThan(Integer value) { + addCriterion("bb_code_config_id <", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdLessThanOrEqualTo(Integer value) { + addCriterion("bb_code_config_id <=", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdIn(List values) { + addCriterion("bb_code_config_id in", values, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdNotIn(List values) { + addCriterion("bb_code_config_id not in", values, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdBetween(Integer value1, Integer value2) { + addCriterion("bb_code_config_id between", value1, value2, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdNotBetween(Integer value1, Integer value2) { + addCriterion("bb_code_config_id not between", value1, value2, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagIsNull() { + addCriterion("content_is_attribute_flag is null"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagIsNotNull() { + addCriterion("content_is_attribute_flag is not null"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagEqualTo(Boolean value) { + addCriterion("content_is_attribute_flag =", value, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagNotEqualTo(Boolean value) { + addCriterion("content_is_attribute_flag <>", value, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagGreaterThan(Boolean value) { + addCriterion("content_is_attribute_flag >", value, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("content_is_attribute_flag >=", value, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagLessThan(Boolean value) { + addCriterion("content_is_attribute_flag <", value, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagLessThanOrEqualTo(Boolean value) { + addCriterion("content_is_attribute_flag <=", value, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagIn(List values) { + addCriterion("content_is_attribute_flag in", values, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagNotIn(List values) { + addCriterion("content_is_attribute_flag not in", values, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagBetween(Boolean value1, Boolean value2) { + addCriterion("content_is_attribute_flag between", value1, value2, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andContentIsAttributeFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("content_is_attribute_flag not between", value1, value2, "contentIsAttributeFlag"); + return (Criteria) this; + } + + public Criteria andOpenTagIsNull() { + addCriterion("open_tag is null"); + return (Criteria) this; + } + + public Criteria andOpenTagIsNotNull() { + addCriterion("open_tag is not null"); + return (Criteria) this; + } + + public Criteria andOpenTagEqualTo(String value) { + addCriterion("open_tag =", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagNotEqualTo(String value) { + addCriterion("open_tag <>", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagGreaterThan(String value) { + addCriterion("open_tag >", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagGreaterThanOrEqualTo(String value) { + addCriterion("open_tag >=", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagLessThan(String value) { + addCriterion("open_tag <", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagLessThanOrEqualTo(String value) { + addCriterion("open_tag <=", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagLike(String value) { + addCriterion("open_tag like", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagNotLike(String value) { + addCriterion("open_tag not like", value, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagIn(List values) { + addCriterion("open_tag in", values, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagNotIn(List values) { + addCriterion("open_tag not in", values, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagBetween(String value1, String value2) { + addCriterion("open_tag between", value1, value2, "openTag"); + return (Criteria) this; + } + + public Criteria andOpenTagNotBetween(String value1, String value2) { + addCriterion("open_tag not between", value1, value2, "openTag"); + return (Criteria) this; + } + + public Criteria andCloseTagIsNull() { + addCriterion("close_tag is null"); + return (Criteria) this; + } + + public Criteria andCloseTagIsNotNull() { + addCriterion("close_tag is not null"); + return (Criteria) this; + } + + public Criteria andCloseTagEqualTo(String value) { + addCriterion("close_tag =", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagNotEqualTo(String value) { + addCriterion("close_tag <>", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagGreaterThan(String value) { + addCriterion("close_tag >", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagGreaterThanOrEqualTo(String value) { + addCriterion("close_tag >=", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagLessThan(String value) { + addCriterion("close_tag <", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagLessThanOrEqualTo(String value) { + addCriterion("close_tag <=", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagLike(String value) { + addCriterion("close_tag like", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagNotLike(String value) { + addCriterion("close_tag not like", value, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagIn(List values) { + addCriterion("close_tag in", values, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagNotIn(List values) { + addCriterion("close_tag not in", values, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagBetween(String value1, String value2) { + addCriterion("close_tag between", value1, value2, "closeTag"); + return (Criteria) this; + } + + public Criteria andCloseTagNotBetween(String value1, String value2) { + addCriterion("close_tag not between", value1, value2, "closeTag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagIsNull() { + addCriterion("output_content_flag is null"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagIsNotNull() { + addCriterion("output_content_flag is not null"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagEqualTo(Boolean value) { + addCriterion("output_content_flag =", value, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagNotEqualTo(Boolean value) { + addCriterion("output_content_flag <>", value, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagGreaterThan(Boolean value) { + addCriterion("output_content_flag >", value, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("output_content_flag >=", value, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagLessThan(Boolean value) { + addCriterion("output_content_flag <", value, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagLessThanOrEqualTo(Boolean value) { + addCriterion("output_content_flag <=", value, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagIn(List values) { + addCriterion("output_content_flag in", values, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagNotIn(List values) { + addCriterion("output_content_flag not in", values, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagBetween(Boolean value1, Boolean value2) { + addCriterion("output_content_flag between", value1, value2, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andOutputContentFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("output_content_flag not between", value1, value2, "outputContentFlag"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.bb_code_attribute_mode + * + * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDbo.java index 5bbf10f..fa0b32a 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDbo.java @@ -1,163 +1,163 @@ -package com.zfgc.zfgbb.dbo; - - -import java.time.LocalDate; - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDateTime; - -public class BBCodeConfigDbo extends AbstractDbo { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.bb_code_config_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer bbCodeConfigId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String code; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.end_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String endTag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.process_content_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean processContentFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.bb_code_config_id - * @return the value of zfgbb.bb_code_config.bb_code_config_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getBbCodeConfigId() { - return bbCodeConfigId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.bb_code_config_id - * @param bbCodeConfigId the value for zfgbb.bb_code_config.bb_code_config_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setBbCodeConfigId(Integer bbCodeConfigId) { - this.bbCodeConfigId = bbCodeConfigId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.code - * @return the value of zfgbb.bb_code_config.code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getCode() { - return code; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.code - * @param code the value for zfgbb.bb_code_config.code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCode(String code) { - this.code = code; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.end_tag - * @return the value of zfgbb.bb_code_config.end_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getEndTag() { - return endTag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.end_tag - * @param endTag the value for zfgbb.bb_code_config.end_tag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setEndTag(String endTag) { - this.endTag = endTag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.process_content_flag - * @return the value of zfgbb.bb_code_config.process_content_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getProcessContentFlag() { - return processContentFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.process_content_flag - * @param processContentFlag the value for zfgbb.bb_code_config.process_content_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setProcessContentFlag(Boolean processContentFlag) { - this.processContentFlag = processContentFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.created_ts - * @return the value of zfgbb.bb_code_config.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.created_ts - * @param createdTs the value for zfgbb.bb_code_config.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.updated_ts - * @return the value of zfgbb.bb_code_config.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.updated_ts - * @param updatedTs the value for zfgbb.bb_code_config.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return bbCodeConfigId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + + +import java.time.LocalDate; + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDateTime; + +public class BBCodeConfigDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.bb_code_config_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer bbCodeConfigId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String code; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.end_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String endTag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.process_content_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Boolean processContentFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.bb_code_config.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.bb_code_config_id + * @return the value of zfgbb.bb_code_config.bb_code_config_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getBbCodeConfigId() { + return bbCodeConfigId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.bb_code_config_id + * @param bbCodeConfigId the value for zfgbb.bb_code_config.bb_code_config_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setBbCodeConfigId(Integer bbCodeConfigId) { + this.bbCodeConfigId = bbCodeConfigId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.code + * @return the value of zfgbb.bb_code_config.code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getCode() { + return code; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.code + * @param code the value for zfgbb.bb_code_config.code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCode(String code) { + this.code = code; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.end_tag + * @return the value of zfgbb.bb_code_config.end_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getEndTag() { + return endTag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.end_tag + * @param endTag the value for zfgbb.bb_code_config.end_tag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setEndTag(String endTag) { + this.endTag = endTag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.process_content_flag + * @return the value of zfgbb.bb_code_config.process_content_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Boolean getProcessContentFlag() { + return processContentFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.process_content_flag + * @param processContentFlag the value for zfgbb.bb_code_config.process_content_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setProcessContentFlag(Boolean processContentFlag) { + this.processContentFlag = processContentFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.created_ts + * @return the value of zfgbb.bb_code_config.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.created_ts + * @param createdTs the value for zfgbb.bb_code_config.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.bb_code_config.updated_ts + * @return the value of zfgbb.bb_code_config.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.bb_code_config.updated_ts + * @param updatedTs the value for zfgbb.bb_code_config.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return bbCodeConfigId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDboExample.java index 3cfad76..fdb46d1 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BBCodeConfigDboExample.java @@ -1,643 +1,643 @@ -package com.zfgc.zfgbb.dbo; - - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class BBCodeConfigDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public BBCodeConfigDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andBbCodeConfigIdIsNull() { - addCriterion("bb_code_config_id is null"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdIsNotNull() { - addCriterion("bb_code_config_id is not null"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdEqualTo(Integer value) { - addCriterion("bb_code_config_id =", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdNotEqualTo(Integer value) { - addCriterion("bb_code_config_id <>", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdGreaterThan(Integer value) { - addCriterion("bb_code_config_id >", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdGreaterThanOrEqualTo(Integer value) { - addCriterion("bb_code_config_id >=", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdLessThan(Integer value) { - addCriterion("bb_code_config_id <", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdLessThanOrEqualTo(Integer value) { - addCriterion("bb_code_config_id <=", value, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdIn(List values) { - addCriterion("bb_code_config_id in", values, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdNotIn(List values) { - addCriterion("bb_code_config_id not in", values, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdBetween(Integer value1, Integer value2) { - addCriterion("bb_code_config_id between", value1, value2, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andBbCodeConfigIdNotBetween(Integer value1, Integer value2) { - addCriterion("bb_code_config_id not between", value1, value2, "bbCodeConfigId"); - return (Criteria) this; - } - - public Criteria andCodeIsNull() { - addCriterion("code is null"); - return (Criteria) this; - } - - public Criteria andCodeIsNotNull() { - addCriterion("code is not null"); - return (Criteria) this; - } - - public Criteria andCodeEqualTo(String value) { - addCriterion("code =", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotEqualTo(String value) { - addCriterion("code <>", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThan(String value) { - addCriterion("code >", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThanOrEqualTo(String value) { - addCriterion("code >=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThan(String value) { - addCriterion("code <", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThanOrEqualTo(String value) { - addCriterion("code <=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLike(String value) { - addCriterion("code like", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotLike(String value) { - addCriterion("code not like", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeIn(List values) { - addCriterion("code in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotIn(List values) { - addCriterion("code not in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeBetween(String value1, String value2) { - addCriterion("code between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotBetween(String value1, String value2) { - addCriterion("code not between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andEndTagIsNull() { - addCriterion("end_tag is null"); - return (Criteria) this; - } - - public Criteria andEndTagIsNotNull() { - addCriterion("end_tag is not null"); - return (Criteria) this; - } - - public Criteria andEndTagEqualTo(String value) { - addCriterion("end_tag =", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagNotEqualTo(String value) { - addCriterion("end_tag <>", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagGreaterThan(String value) { - addCriterion("end_tag >", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagGreaterThanOrEqualTo(String value) { - addCriterion("end_tag >=", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagLessThan(String value) { - addCriterion("end_tag <", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagLessThanOrEqualTo(String value) { - addCriterion("end_tag <=", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagLike(String value) { - addCriterion("end_tag like", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagNotLike(String value) { - addCriterion("end_tag not like", value, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagIn(List values) { - addCriterion("end_tag in", values, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagNotIn(List values) { - addCriterion("end_tag not in", values, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagBetween(String value1, String value2) { - addCriterion("end_tag between", value1, value2, "endTag"); - return (Criteria) this; - } - - public Criteria andEndTagNotBetween(String value1, String value2) { - addCriterion("end_tag not between", value1, value2, "endTag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagIsNull() { - addCriterion("process_content_flag is null"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagIsNotNull() { - addCriterion("process_content_flag is not null"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagEqualTo(Boolean value) { - addCriterion("process_content_flag =", value, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagNotEqualTo(Boolean value) { - addCriterion("process_content_flag <>", value, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagGreaterThan(Boolean value) { - addCriterion("process_content_flag >", value, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("process_content_flag >=", value, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagLessThan(Boolean value) { - addCriterion("process_content_flag <", value, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagLessThanOrEqualTo(Boolean value) { - addCriterion("process_content_flag <=", value, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagIn(List values) { - addCriterion("process_content_flag in", values, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagNotIn(List values) { - addCriterion("process_content_flag not in", values, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagBetween(Boolean value1, Boolean value2) { - addCriterion("process_content_flag between", value1, value2, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andProcessContentFlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("process_content_flag not between", value1, value2, "processContentFlag"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.bb_code_config - * - * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class BBCodeConfigDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public BBCodeConfigDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andBbCodeConfigIdIsNull() { + addCriterion("bb_code_config_id is null"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdIsNotNull() { + addCriterion("bb_code_config_id is not null"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdEqualTo(Integer value) { + addCriterion("bb_code_config_id =", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdNotEqualTo(Integer value) { + addCriterion("bb_code_config_id <>", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdGreaterThan(Integer value) { + addCriterion("bb_code_config_id >", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdGreaterThanOrEqualTo(Integer value) { + addCriterion("bb_code_config_id >=", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdLessThan(Integer value) { + addCriterion("bb_code_config_id <", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdLessThanOrEqualTo(Integer value) { + addCriterion("bb_code_config_id <=", value, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdIn(List values) { + addCriterion("bb_code_config_id in", values, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdNotIn(List values) { + addCriterion("bb_code_config_id not in", values, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdBetween(Integer value1, Integer value2) { + addCriterion("bb_code_config_id between", value1, value2, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andBbCodeConfigIdNotBetween(Integer value1, Integer value2) { + addCriterion("bb_code_config_id not between", value1, value2, "bbCodeConfigId"); + return (Criteria) this; + } + + public Criteria andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andEndTagIsNull() { + addCriterion("end_tag is null"); + return (Criteria) this; + } + + public Criteria andEndTagIsNotNull() { + addCriterion("end_tag is not null"); + return (Criteria) this; + } + + public Criteria andEndTagEqualTo(String value) { + addCriterion("end_tag =", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagNotEqualTo(String value) { + addCriterion("end_tag <>", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagGreaterThan(String value) { + addCriterion("end_tag >", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagGreaterThanOrEqualTo(String value) { + addCriterion("end_tag >=", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagLessThan(String value) { + addCriterion("end_tag <", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagLessThanOrEqualTo(String value) { + addCriterion("end_tag <=", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagLike(String value) { + addCriterion("end_tag like", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagNotLike(String value) { + addCriterion("end_tag not like", value, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagIn(List values) { + addCriterion("end_tag in", values, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagNotIn(List values) { + addCriterion("end_tag not in", values, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagBetween(String value1, String value2) { + addCriterion("end_tag between", value1, value2, "endTag"); + return (Criteria) this; + } + + public Criteria andEndTagNotBetween(String value1, String value2) { + addCriterion("end_tag not between", value1, value2, "endTag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagIsNull() { + addCriterion("process_content_flag is null"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagIsNotNull() { + addCriterion("process_content_flag is not null"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagEqualTo(Boolean value) { + addCriterion("process_content_flag =", value, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagNotEqualTo(Boolean value) { + addCriterion("process_content_flag <>", value, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagGreaterThan(Boolean value) { + addCriterion("process_content_flag >", value, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("process_content_flag >=", value, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagLessThan(Boolean value) { + addCriterion("process_content_flag <", value, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagLessThanOrEqualTo(Boolean value) { + addCriterion("process_content_flag <=", value, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagIn(List values) { + addCriterion("process_content_flag in", values, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagNotIn(List values) { + addCriterion("process_content_flag not in", values, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagBetween(Boolean value1, Boolean value2) { + addCriterion("process_content_flag between", value1, value2, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andProcessContentFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("process_content_flag not between", value1, value2, "processContentFlag"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.bb_code_config + * + * @mbg.generated do_not_delete_during_merge Fri Feb 25 00:15:45 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BoardDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/BoardDbo.java index ef80441..596da5e 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BoardDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BoardDbo.java @@ -1,49 +1,54 @@ package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; -import java.util.Date; - -import com.zfgc.zfgbb.dbo.AbstractDbo; import java.time.LocalDateTime; -public class BoardDbo extends AbstractDbo{ +public class BoardDbo extends AbstractDbo { /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ private Integer boardId; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.board_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ private String boardName; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.description - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ private String description; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ private LocalDateTime createdTs; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ private LocalDateTime updatedTs; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.category_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ private Integer categoryId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.seqno + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 + */ + private Integer seqno; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.parent_board_id + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 + */ + private Integer parentBoardId; /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.board_id * @return the value of zfgbb.board.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public Integer getBoardId() { return boardId; @@ -52,7 +57,7 @@ public Integer getBoardId() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.board_id * @param boardId the value for zfgbb.board.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setBoardId(Integer boardId) { this.boardId = boardId; @@ -61,7 +66,7 @@ public void setBoardId(Integer boardId) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.board_name * @return the value of zfgbb.board.board_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public String getBoardName() { return boardName; @@ -70,7 +75,7 @@ public String getBoardName() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.board_name * @param boardName the value for zfgbb.board.board_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setBoardName(String boardName) { this.boardName = boardName; @@ -79,7 +84,7 @@ public void setBoardName(String boardName) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.description * @return the value of zfgbb.board.description - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public String getDescription() { return description; @@ -88,7 +93,7 @@ public String getDescription() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.description * @param description the value for zfgbb.board.description - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setDescription(String description) { this.description = description; @@ -97,7 +102,7 @@ public void setDescription(String description) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.created_ts * @return the value of zfgbb.board.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public LocalDateTime getCreatedTs() { return createdTs; @@ -106,7 +111,7 @@ public LocalDateTime getCreatedTs() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.created_ts * @param createdTs the value for zfgbb.board.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setCreatedTs(LocalDateTime createdTs) { this.createdTs = createdTs; @@ -115,7 +120,7 @@ public void setCreatedTs(LocalDateTime createdTs) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.updated_ts * @return the value of zfgbb.board.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public LocalDateTime getUpdatedTs() { return updatedTs; @@ -124,7 +129,7 @@ public LocalDateTime getUpdatedTs() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.updated_ts * @param updatedTs the value for zfgbb.board.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setUpdatedTs(LocalDateTime updatedTs) { this.updatedTs = updatedTs; @@ -133,7 +138,7 @@ public void setUpdatedTs(LocalDateTime updatedTs) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.category_id * @return the value of zfgbb.board.category_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public Integer getCategoryId() { return categoryId; @@ -142,12 +147,48 @@ public Integer getCategoryId() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.category_id * @param categoryId the value for zfgbb.board.category_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setCategoryId(Integer categoryId) { this.categoryId = categoryId; } + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.seqno + * @return the value of zfgbb.board.seqno + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 + */ + public Integer getSeqno() { + return seqno; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.seqno + * @param seqno the value for zfgbb.board.seqno + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 + */ + public void setSeqno(Integer seqno) { + this.seqno = seqno; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.parent_board_id + * @return the value of zfgbb.board.parent_board_id + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 + */ + public Integer getParentBoardId() { + return parentBoardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.parent_board_id + * @param parentBoardId the value for zfgbb.board.parent_board_id + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 + */ + public void setParentBoardId(Integer parentBoardId) { + this.parentBoardId = parentBoardId; + } + @Override public Integer getPkId() { return boardId; diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BoardDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/BoardDboExample.java index 4dd0b4c..684c4c6 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BoardDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BoardDboExample.java @@ -9,23 +9,23 @@ public class BoardDboExample { /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ protected String orderByClause; /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ protected boolean distinct; /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ protected List oredCriteria; /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public BoardDboExample() { oredCriteria = new ArrayList<>(); @@ -33,7 +33,7 @@ public BoardDboExample() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; @@ -41,7 +41,7 @@ public void setOrderByClause(String orderByClause) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public String getOrderByClause() { return orderByClause; @@ -49,7 +49,7 @@ public String getOrderByClause() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void setDistinct(boolean distinct) { this.distinct = distinct; @@ -57,7 +57,7 @@ public void setDistinct(boolean distinct) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public boolean isDistinct() { return distinct; @@ -65,7 +65,7 @@ public boolean isDistinct() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public List getOredCriteria() { return oredCriteria; @@ -73,7 +73,7 @@ public List getOredCriteria() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void or(Criteria criteria) { oredCriteria.add(criteria); @@ -81,7 +81,7 @@ public void or(Criteria criteria) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public Criteria or() { Criteria criteria = createCriteriaInternal(); @@ -91,7 +91,7 @@ public Criteria or() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); @@ -103,7 +103,7 @@ public Criteria createCriteria() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); @@ -112,7 +112,7 @@ protected Criteria createCriteriaInternal() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public void clear() { oredCriteria.clear(); @@ -122,7 +122,7 @@ public void clear() { /** * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ protected abstract static class GeneratedCriteria { protected List criteria; @@ -544,11 +544,131 @@ public Criteria andCategoryIdNotBetween(Integer value1, Integer value2) { addCriterion("category_id not between", value1, value2, "categoryId"); return (Criteria) this; } + + public Criteria andSeqnoIsNull() { + addCriterion("seqno is null"); + return (Criteria) this; + } + + public Criteria andSeqnoIsNotNull() { + addCriterion("seqno is not null"); + return (Criteria) this; + } + + public Criteria andSeqnoEqualTo(Integer value) { + addCriterion("seqno =", value, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoNotEqualTo(Integer value) { + addCriterion("seqno <>", value, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoGreaterThan(Integer value) { + addCriterion("seqno >", value, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoGreaterThanOrEqualTo(Integer value) { + addCriterion("seqno >=", value, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoLessThan(Integer value) { + addCriterion("seqno <", value, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoLessThanOrEqualTo(Integer value) { + addCriterion("seqno <=", value, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoIn(List values) { + addCriterion("seqno in", values, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoNotIn(List values) { + addCriterion("seqno not in", values, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoBetween(Integer value1, Integer value2) { + addCriterion("seqno between", value1, value2, "seqno"); + return (Criteria) this; + } + + public Criteria andSeqnoNotBetween(Integer value1, Integer value2) { + addCriterion("seqno not between", value1, value2, "seqno"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNull() { + addCriterion("parent_board_id is null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNotNull() { + addCriterion("parent_board_id is not null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdEqualTo(Integer value) { + addCriterion("parent_board_id =", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotEqualTo(Integer value) { + addCriterion("parent_board_id <>", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThan(Integer value) { + addCriterion("parent_board_id >", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThanOrEqualTo(Integer value) { + addCriterion("parent_board_id >=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThan(Integer value) { + addCriterion("parent_board_id <", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThanOrEqualTo(Integer value) { + addCriterion("parent_board_id <=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIn(List values) { + addCriterion("parent_board_id in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotIn(List values) { + addCriterion("parent_board_id not in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id between", value1, value2, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id not between", value1, value2, "parentBoardId"); + return (Criteria) this; + } } /** * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ public static class Criterion { private String condition; diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDbo.java index d3829b3..4192665 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDbo.java @@ -1,119 +1,119 @@ -package com.zfgc.zfgbb.dbo; - - -import java.time.LocalDate; -import java.time.LocalDateTime; - -import com.zfgc.zfgbb.dbo.AbstractDbo; - -public class BoardPermissionViewDbo extends AbstractDbo { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer boardId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.permission_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer permissionId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.permission_code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String permissionCode; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.permission_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String permissionName; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.board_id - * @return the value of zfgbb.board_permission_view.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getBoardId() { - return boardId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.board_id - * @param boardId the value for zfgbb.board_permission_view.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setBoardId(Integer boardId) { - this.boardId = boardId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.permission_id - * @return the value of zfgbb.board_permission_view.permission_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getPermissionId() { - return permissionId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.permission_id - * @param permissionId the value for zfgbb.board_permission_view.permission_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setPermissionId(Integer permissionId) { - this.permissionId = permissionId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.permission_code - * @return the value of zfgbb.board_permission_view.permission_code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getPermissionCode() { - return permissionCode; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.permission_code - * @param permissionCode the value for zfgbb.board_permission_view.permission_code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setPermissionCode(String permissionCode) { - this.permissionCode = permissionCode; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.permission_name - * @return the value of zfgbb.board_permission_view.permission_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getPermissionName() { - return permissionName; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.permission_name - * @param permissionName the value for zfgbb.board_permission_view.permission_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setPermissionName(String permissionName) { - this.permissionName = permissionName; - } - - @Override - public Integer getPkId() { - // TODO Auto-generated method stub - return null; - } - - @Override - public LocalDateTime getUpdatedTime() { - // TODO Auto-generated method stub - return null; - } - - @Override - public LocalDateTime getCreatedTime() { - return null; - } +package com.zfgc.zfgbb.dbo; + + +import java.time.LocalDate; +import java.time.LocalDateTime; + +import com.zfgc.zfgbb.dbo.AbstractDbo; + +public class BoardPermissionViewDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.board_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer boardId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.permission_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer permissionId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.permission_code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String permissionCode; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_permission_view.permission_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String permissionName; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.board_id + * @return the value of zfgbb.board_permission_view.board_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getBoardId() { + return boardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.board_id + * @param boardId the value for zfgbb.board_permission_view.board_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.permission_id + * @return the value of zfgbb.board_permission_view.permission_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getPermissionId() { + return permissionId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.permission_id + * @param permissionId the value for zfgbb.board_permission_view.permission_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setPermissionId(Integer permissionId) { + this.permissionId = permissionId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.permission_code + * @return the value of zfgbb.board_permission_view.permission_code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getPermissionCode() { + return permissionCode; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.permission_code + * @param permissionCode the value for zfgbb.board_permission_view.permission_code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setPermissionCode(String permissionCode) { + this.permissionCode = permissionCode; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_permission_view.permission_name + * @return the value of zfgbb.board_permission_view.permission_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getPermissionName() { + return permissionName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_permission_view.permission_name + * @param permissionName the value for zfgbb.board_permission_view.permission_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setPermissionName(String permissionName) { + this.permissionName = permissionName; + } + + @Override + public Integer getPkId() { + // TODO Auto-generated method stub + return null; + } + + @Override + public LocalDateTime getUpdatedTime() { + // TODO Auto-generated method stub + return null; + } + + @Override + public LocalDateTime getCreatedTime() { + return null; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDboExample.java index 8b2aa60..6ce8756 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/BoardPermissionViewDboExample.java @@ -1,520 +1,520 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; - -public class BoardPermissionViewDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public BoardPermissionViewDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andBoardIdIsNull() { - addCriterion("board_id is null"); - return (Criteria) this; - } - - public Criteria andBoardIdIsNotNull() { - addCriterion("board_id is not null"); - return (Criteria) this; - } - - public Criteria andBoardIdEqualTo(Integer value) { - addCriterion("board_id =", value, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdNotEqualTo(Integer value) { - addCriterion("board_id <>", value, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdGreaterThan(Integer value) { - addCriterion("board_id >", value, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdGreaterThanOrEqualTo(Integer value) { - addCriterion("board_id >=", value, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdLessThan(Integer value) { - addCriterion("board_id <", value, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdLessThanOrEqualTo(Integer value) { - addCriterion("board_id <=", value, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdIn(List values) { - addCriterion("board_id in", values, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdNotIn(List values) { - addCriterion("board_id not in", values, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdBetween(Integer value1, Integer value2) { - addCriterion("board_id between", value1, value2, "boardId"); - return (Criteria) this; - } - - public Criteria andBoardIdNotBetween(Integer value1, Integer value2) { - addCriterion("board_id not between", value1, value2, "boardId"); - return (Criteria) this; - } - - public Criteria andPermissionIdIsNull() { - addCriterion("permission_id is null"); - return (Criteria) this; - } - - public Criteria andPermissionIdIsNotNull() { - addCriterion("permission_id is not null"); - return (Criteria) this; - } - - public Criteria andPermissionIdEqualTo(Integer value) { - addCriterion("permission_id =", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdNotEqualTo(Integer value) { - addCriterion("permission_id <>", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdGreaterThan(Integer value) { - addCriterion("permission_id >", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdGreaterThanOrEqualTo(Integer value) { - addCriterion("permission_id >=", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdLessThan(Integer value) { - addCriterion("permission_id <", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdLessThanOrEqualTo(Integer value) { - addCriterion("permission_id <=", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdIn(List values) { - addCriterion("permission_id in", values, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdNotIn(List values) { - addCriterion("permission_id not in", values, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdBetween(Integer value1, Integer value2) { - addCriterion("permission_id between", value1, value2, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdNotBetween(Integer value1, Integer value2) { - addCriterion("permission_id not between", value1, value2, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionCodeIsNull() { - addCriterion("permission_code is null"); - return (Criteria) this; - } - - public Criteria andPermissionCodeIsNotNull() { - addCriterion("permission_code is not null"); - return (Criteria) this; - } - - public Criteria andPermissionCodeEqualTo(String value) { - addCriterion("permission_code =", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotEqualTo(String value) { - addCriterion("permission_code <>", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeGreaterThan(String value) { - addCriterion("permission_code >", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeGreaterThanOrEqualTo(String value) { - addCriterion("permission_code >=", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeLessThan(String value) { - addCriterion("permission_code <", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeLessThanOrEqualTo(String value) { - addCriterion("permission_code <=", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeLike(String value) { - addCriterion("permission_code like", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotLike(String value) { - addCriterion("permission_code not like", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeIn(List values) { - addCriterion("permission_code in", values, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotIn(List values) { - addCriterion("permission_code not in", values, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeBetween(String value1, String value2) { - addCriterion("permission_code between", value1, value2, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotBetween(String value1, String value2) { - addCriterion("permission_code not between", value1, value2, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionNameIsNull() { - addCriterion("permission_name is null"); - return (Criteria) this; - } - - public Criteria andPermissionNameIsNotNull() { - addCriterion("permission_name is not null"); - return (Criteria) this; - } - - public Criteria andPermissionNameEqualTo(String value) { - addCriterion("permission_name =", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameNotEqualTo(String value) { - addCriterion("permission_name <>", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameGreaterThan(String value) { - addCriterion("permission_name >", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameGreaterThanOrEqualTo(String value) { - addCriterion("permission_name >=", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameLessThan(String value) { - addCriterion("permission_name <", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameLessThanOrEqualTo(String value) { - addCriterion("permission_name <=", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameLike(String value) { - addCriterion("permission_name like", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameNotLike(String value) { - addCriterion("permission_name not like", value, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameIn(List values) { - addCriterion("permission_name in", values, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameNotIn(List values) { - addCriterion("permission_name not in", values, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameBetween(String value1, String value2) { - addCriterion("permission_name between", value1, value2, "permissionName"); - return (Criteria) this; - } - - public Criteria andPermissionNameNotBetween(String value1, String value2) { - addCriterion("permission_name not between", value1, value2, "permissionName"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.board_permission_view - * - * @mbg.generated do_not_delete_during_merge Sun Feb 27 09:04:00 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; + +public class BoardPermissionViewDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public BoardPermissionViewDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andBoardIdIsNull() { + addCriterion("board_id is null"); + return (Criteria) this; + } + + public Criteria andBoardIdIsNotNull() { + addCriterion("board_id is not null"); + return (Criteria) this; + } + + public Criteria andBoardIdEqualTo(Integer value) { + addCriterion("board_id =", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotEqualTo(Integer value) { + addCriterion("board_id <>", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdGreaterThan(Integer value) { + addCriterion("board_id >", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdGreaterThanOrEqualTo(Integer value) { + addCriterion("board_id >=", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdLessThan(Integer value) { + addCriterion("board_id <", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdLessThanOrEqualTo(Integer value) { + addCriterion("board_id <=", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdIn(List values) { + addCriterion("board_id in", values, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotIn(List values) { + addCriterion("board_id not in", values, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdBetween(Integer value1, Integer value2) { + addCriterion("board_id between", value1, value2, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotBetween(Integer value1, Integer value2) { + addCriterion("board_id not between", value1, value2, "boardId"); + return (Criteria) this; + } + + public Criteria andPermissionIdIsNull() { + addCriterion("permission_id is null"); + return (Criteria) this; + } + + public Criteria andPermissionIdIsNotNull() { + addCriterion("permission_id is not null"); + return (Criteria) this; + } + + public Criteria andPermissionIdEqualTo(Integer value) { + addCriterion("permission_id =", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotEqualTo(Integer value) { + addCriterion("permission_id <>", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdGreaterThan(Integer value) { + addCriterion("permission_id >", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdGreaterThanOrEqualTo(Integer value) { + addCriterion("permission_id >=", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdLessThan(Integer value) { + addCriterion("permission_id <", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdLessThanOrEqualTo(Integer value) { + addCriterion("permission_id <=", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdIn(List values) { + addCriterion("permission_id in", values, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotIn(List values) { + addCriterion("permission_id not in", values, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdBetween(Integer value1, Integer value2) { + addCriterion("permission_id between", value1, value2, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotBetween(Integer value1, Integer value2) { + addCriterion("permission_id not between", value1, value2, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionCodeIsNull() { + addCriterion("permission_code is null"); + return (Criteria) this; + } + + public Criteria andPermissionCodeIsNotNull() { + addCriterion("permission_code is not null"); + return (Criteria) this; + } + + public Criteria andPermissionCodeEqualTo(String value) { + addCriterion("permission_code =", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotEqualTo(String value) { + addCriterion("permission_code <>", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeGreaterThan(String value) { + addCriterion("permission_code >", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeGreaterThanOrEqualTo(String value) { + addCriterion("permission_code >=", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeLessThan(String value) { + addCriterion("permission_code <", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeLessThanOrEqualTo(String value) { + addCriterion("permission_code <=", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeLike(String value) { + addCriterion("permission_code like", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotLike(String value) { + addCriterion("permission_code not like", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeIn(List values) { + addCriterion("permission_code in", values, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotIn(List values) { + addCriterion("permission_code not in", values, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeBetween(String value1, String value2) { + addCriterion("permission_code between", value1, value2, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotBetween(String value1, String value2) { + addCriterion("permission_code not between", value1, value2, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionNameIsNull() { + addCriterion("permission_name is null"); + return (Criteria) this; + } + + public Criteria andPermissionNameIsNotNull() { + addCriterion("permission_name is not null"); + return (Criteria) this; + } + + public Criteria andPermissionNameEqualTo(String value) { + addCriterion("permission_name =", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameNotEqualTo(String value) { + addCriterion("permission_name <>", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameGreaterThan(String value) { + addCriterion("permission_name >", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameGreaterThanOrEqualTo(String value) { + addCriterion("permission_name >=", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameLessThan(String value) { + addCriterion("permission_name <", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameLessThanOrEqualTo(String value) { + addCriterion("permission_name <=", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameLike(String value) { + addCriterion("permission_name like", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameNotLike(String value) { + addCriterion("permission_name not like", value, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameIn(List values) { + addCriterion("permission_name in", values, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameNotIn(List values) { + addCriterion("permission_name not in", values, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameBetween(String value1, String value2) { + addCriterion("permission_name between", value1, value2, "permissionName"); + return (Criteria) this; + } + + public Criteria andPermissionNameNotBetween(String value1, String value2) { + addCriterion("permission_name not between", value1, value2, "permissionName"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.board_permission_view + * + * @mbg.generated do_not_delete_during_merge Sun Feb 27 09:04:00 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BoardSummaryViewDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/BoardSummaryViewDbo.java new file mode 100644 index 0000000..b1a323e --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/BoardSummaryViewDbo.java @@ -0,0 +1,283 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class BoardSummaryViewDbo { + + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.board_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Integer boardId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.description + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private String description; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.board_name + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private String boardName; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.thread_count + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Long threadCount; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.post_count + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Long postCount; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.latest_message_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Integer latestMessageId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.latest_thread_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Integer latestThreadId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.latest_message_owner_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Integer latestMessageOwnerId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.latest_message_user_name + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private String latestMessageUserName; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.latest_message_created_ts + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private LocalDateTime latestMessageCreatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.category_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Integer categoryId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board_summary.parent_board_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + private Integer parentBoardId; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.board_id + * @return the value of zfgbb.board_summary.board_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Integer getBoardId() { + return boardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.board_id + * @param boardId the value for zfgbb.board_summary.board_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.description + * @return the value of zfgbb.board_summary.description + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public String getDescription() { + return description; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.description + * @param description the value for zfgbb.board_summary.description + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.board_name + * @return the value of zfgbb.board_summary.board_name + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public String getBoardName() { + return boardName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.board_name + * @param boardName the value for zfgbb.board_summary.board_name + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setBoardName(String boardName) { + this.boardName = boardName; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.thread_count + * @return the value of zfgbb.board_summary.thread_count + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Long getThreadCount() { + return threadCount; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.thread_count + * @param threadCount the value for zfgbb.board_summary.thread_count + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setThreadCount(Long threadCount) { + this.threadCount = threadCount; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.post_count + * @return the value of zfgbb.board_summary.post_count + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Long getPostCount() { + return postCount; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.post_count + * @param postCount the value for zfgbb.board_summary.post_count + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setPostCount(Long postCount) { + this.postCount = postCount; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.latest_message_id + * @return the value of zfgbb.board_summary.latest_message_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Integer getLatestMessageId() { + return latestMessageId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.latest_message_id + * @param latestMessageId the value for zfgbb.board_summary.latest_message_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setLatestMessageId(Integer latestMessageId) { + this.latestMessageId = latestMessageId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.latest_thread_id + * @return the value of zfgbb.board_summary.latest_thread_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Integer getLatestThreadId() { + return latestThreadId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.latest_thread_id + * @param latestThreadId the value for zfgbb.board_summary.latest_thread_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setLatestThreadId(Integer latestThreadId) { + this.latestThreadId = latestThreadId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.latest_message_owner_id + * @return the value of zfgbb.board_summary.latest_message_owner_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Integer getLatestMessageOwnerId() { + return latestMessageOwnerId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.latest_message_owner_id + * @param latestMessageOwnerId the value for zfgbb.board_summary.latest_message_owner_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setLatestMessageOwnerId(Integer latestMessageOwnerId) { + this.latestMessageOwnerId = latestMessageOwnerId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.latest_message_user_name + * @return the value of zfgbb.board_summary.latest_message_user_name + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public String getLatestMessageUserName() { + return latestMessageUserName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.latest_message_user_name + * @param latestMessageUserName the value for zfgbb.board_summary.latest_message_user_name + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setLatestMessageUserName(String latestMessageUserName) { + this.latestMessageUserName = latestMessageUserName; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.latest_message_created_ts + * @return the value of zfgbb.board_summary.latest_message_created_ts + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public LocalDateTime getLatestMessageCreatedTs() { + return latestMessageCreatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.latest_message_created_ts + * @param latestMessageCreatedTs the value for zfgbb.board_summary.latest_message_created_ts + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setLatestMessageCreatedTs(LocalDateTime latestMessageCreatedTs) { + this.latestMessageCreatedTs = latestMessageCreatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.category_id + * @return the value of zfgbb.board_summary.category_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Integer getCategoryId() { + return categoryId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.category_id + * @param categoryId the value for zfgbb.board_summary.category_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setCategoryId(Integer categoryId) { + this.categoryId = categoryId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board_summary.parent_board_id + * @return the value of zfgbb.board_summary.parent_board_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Integer getParentBoardId() { + return parentBoardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board_summary.parent_board_id + * @param parentBoardId the value for zfgbb.board_summary.parent_board_id + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setParentBoardId(Integer parentBoardId) { + this.parentBoardId = parentBoardId; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/BoardSummaryViewDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/BoardSummaryViewDboExample.java new file mode 100644 index 0000000..5af0134 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/BoardSummaryViewDboExample.java @@ -0,0 +1,1011 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class BoardSummaryViewDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public BoardSummaryViewDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andBoardIdIsNull() { + addCriterion("board_id is null"); + return (Criteria) this; + } + + public Criteria andBoardIdIsNotNull() { + addCriterion("board_id is not null"); + return (Criteria) this; + } + + public Criteria andBoardIdEqualTo(Integer value) { + addCriterion("board_id =", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotEqualTo(Integer value) { + addCriterion("board_id <>", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdGreaterThan(Integer value) { + addCriterion("board_id >", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdGreaterThanOrEqualTo(Integer value) { + addCriterion("board_id >=", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdLessThan(Integer value) { + addCriterion("board_id <", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdLessThanOrEqualTo(Integer value) { + addCriterion("board_id <=", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdIn(List values) { + addCriterion("board_id in", values, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotIn(List values) { + addCriterion("board_id not in", values, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdBetween(Integer value1, Integer value2) { + addCriterion("board_id between", value1, value2, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotBetween(Integer value1, Integer value2) { + addCriterion("board_id not between", value1, value2, "boardId"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andBoardNameIsNull() { + addCriterion("board_name is null"); + return (Criteria) this; + } + + public Criteria andBoardNameIsNotNull() { + addCriterion("board_name is not null"); + return (Criteria) this; + } + + public Criteria andBoardNameEqualTo(String value) { + addCriterion("board_name =", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotEqualTo(String value) { + addCriterion("board_name <>", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameGreaterThan(String value) { + addCriterion("board_name >", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameGreaterThanOrEqualTo(String value) { + addCriterion("board_name >=", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameLessThan(String value) { + addCriterion("board_name <", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameLessThanOrEqualTo(String value) { + addCriterion("board_name <=", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameLike(String value) { + addCriterion("board_name like", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotLike(String value) { + addCriterion("board_name not like", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameIn(List values) { + addCriterion("board_name in", values, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotIn(List values) { + addCriterion("board_name not in", values, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameBetween(String value1, String value2) { + addCriterion("board_name between", value1, value2, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotBetween(String value1, String value2) { + addCriterion("board_name not between", value1, value2, "boardName"); + return (Criteria) this; + } + + public Criteria andThreadCountIsNull() { + addCriterion("thread_count is null"); + return (Criteria) this; + } + + public Criteria andThreadCountIsNotNull() { + addCriterion("thread_count is not null"); + return (Criteria) this; + } + + public Criteria andThreadCountEqualTo(Long value) { + addCriterion("thread_count =", value, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountNotEqualTo(Long value) { + addCriterion("thread_count <>", value, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountGreaterThan(Long value) { + addCriterion("thread_count >", value, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountGreaterThanOrEqualTo(Long value) { + addCriterion("thread_count >=", value, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountLessThan(Long value) { + addCriterion("thread_count <", value, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountLessThanOrEqualTo(Long value) { + addCriterion("thread_count <=", value, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountIn(List values) { + addCriterion("thread_count in", values, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountNotIn(List values) { + addCriterion("thread_count not in", values, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountBetween(Long value1, Long value2) { + addCriterion("thread_count between", value1, value2, "threadCount"); + return (Criteria) this; + } + + public Criteria andThreadCountNotBetween(Long value1, Long value2) { + addCriterion("thread_count not between", value1, value2, "threadCount"); + return (Criteria) this; + } + + public Criteria andPostCountIsNull() { + addCriterion("post_count is null"); + return (Criteria) this; + } + + public Criteria andPostCountIsNotNull() { + addCriterion("post_count is not null"); + return (Criteria) this; + } + + public Criteria andPostCountEqualTo(Long value) { + addCriterion("post_count =", value, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountNotEqualTo(Long value) { + addCriterion("post_count <>", value, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountGreaterThan(Long value) { + addCriterion("post_count >", value, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountGreaterThanOrEqualTo(Long value) { + addCriterion("post_count >=", value, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountLessThan(Long value) { + addCriterion("post_count <", value, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountLessThanOrEqualTo(Long value) { + addCriterion("post_count <=", value, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountIn(List values) { + addCriterion("post_count in", values, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountNotIn(List values) { + addCriterion("post_count not in", values, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountBetween(Long value1, Long value2) { + addCriterion("post_count between", value1, value2, "postCount"); + return (Criteria) this; + } + + public Criteria andPostCountNotBetween(Long value1, Long value2) { + addCriterion("post_count not between", value1, value2, "postCount"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdIsNull() { + addCriterion("latest_message_id is null"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdIsNotNull() { + addCriterion("latest_message_id is not null"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdEqualTo(Integer value) { + addCriterion("latest_message_id =", value, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdNotEqualTo(Integer value) { + addCriterion("latest_message_id <>", value, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdGreaterThan(Integer value) { + addCriterion("latest_message_id >", value, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdGreaterThanOrEqualTo(Integer value) { + addCriterion("latest_message_id >=", value, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdLessThan(Integer value) { + addCriterion("latest_message_id <", value, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdLessThanOrEqualTo(Integer value) { + addCriterion("latest_message_id <=", value, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdIn(List values) { + addCriterion("latest_message_id in", values, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdNotIn(List values) { + addCriterion("latest_message_id not in", values, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdBetween(Integer value1, Integer value2) { + addCriterion("latest_message_id between", value1, value2, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestMessageIdNotBetween(Integer value1, Integer value2) { + addCriterion("latest_message_id not between", value1, value2, "latestMessageId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdIsNull() { + addCriterion("latest_thread_id is null"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdIsNotNull() { + addCriterion("latest_thread_id is not null"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdEqualTo(Integer value) { + addCriterion("latest_thread_id =", value, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdNotEqualTo(Integer value) { + addCriterion("latest_thread_id <>", value, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdGreaterThan(Integer value) { + addCriterion("latest_thread_id >", value, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdGreaterThanOrEqualTo(Integer value) { + addCriterion("latest_thread_id >=", value, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdLessThan(Integer value) { + addCriterion("latest_thread_id <", value, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdLessThanOrEqualTo(Integer value) { + addCriterion("latest_thread_id <=", value, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdIn(List values) { + addCriterion("latest_thread_id in", values, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdNotIn(List values) { + addCriterion("latest_thread_id not in", values, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdBetween(Integer value1, Integer value2) { + addCriterion("latest_thread_id between", value1, value2, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestThreadIdNotBetween(Integer value1, Integer value2) { + addCriterion("latest_thread_id not between", value1, value2, "latestThreadId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdIsNull() { + addCriterion("latest_message_owner_id is null"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdIsNotNull() { + addCriterion("latest_message_owner_id is not null"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdEqualTo(Integer value) { + addCriterion("latest_message_owner_id =", value, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdNotEqualTo(Integer value) { + addCriterion("latest_message_owner_id <>", value, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdGreaterThan(Integer value) { + addCriterion("latest_message_owner_id >", value, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdGreaterThanOrEqualTo(Integer value) { + addCriterion("latest_message_owner_id >=", value, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdLessThan(Integer value) { + addCriterion("latest_message_owner_id <", value, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdLessThanOrEqualTo(Integer value) { + addCriterion("latest_message_owner_id <=", value, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdIn(List values) { + addCriterion("latest_message_owner_id in", values, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdNotIn(List values) { + addCriterion("latest_message_owner_id not in", values, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdBetween(Integer value1, Integer value2) { + addCriterion("latest_message_owner_id between", value1, value2, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageOwnerIdNotBetween(Integer value1, Integer value2) { + addCriterion("latest_message_owner_id not between", value1, value2, "latestMessageOwnerId"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameIsNull() { + addCriterion("latest_message_user_name is null"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameIsNotNull() { + addCriterion("latest_message_user_name is not null"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameEqualTo(String value) { + addCriterion("latest_message_user_name =", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameNotEqualTo(String value) { + addCriterion("latest_message_user_name <>", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameGreaterThan(String value) { + addCriterion("latest_message_user_name >", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameGreaterThanOrEqualTo(String value) { + addCriterion("latest_message_user_name >=", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameLessThan(String value) { + addCriterion("latest_message_user_name <", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameLessThanOrEqualTo(String value) { + addCriterion("latest_message_user_name <=", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameLike(String value) { + addCriterion("latest_message_user_name like", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameNotLike(String value) { + addCriterion("latest_message_user_name not like", value, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameIn(List values) { + addCriterion("latest_message_user_name in", values, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameNotIn(List values) { + addCriterion("latest_message_user_name not in", values, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameBetween(String value1, String value2) { + addCriterion("latest_message_user_name between", value1, value2, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageUserNameNotBetween(String value1, String value2) { + addCriterion("latest_message_user_name not between", value1, value2, "latestMessageUserName"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsIsNull() { + addCriterion("latest_message_created_ts is null"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsIsNotNull() { + addCriterion("latest_message_created_ts is not null"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsEqualTo(LocalDateTime value) { + addCriterion("latest_message_created_ts =", value, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("latest_message_created_ts <>", value, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("latest_message_created_ts >", value, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("latest_message_created_ts >=", value, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsLessThan(LocalDateTime value) { + addCriterion("latest_message_created_ts <", value, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("latest_message_created_ts <=", value, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsIn(List values) { + addCriterion("latest_message_created_ts in", values, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsNotIn(List values) { + addCriterion("latest_message_created_ts not in", values, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("latest_message_created_ts between", value1, value2, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andLatestMessageCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("latest_message_created_ts not between", value1, value2, "latestMessageCreatedTs"); + return (Criteria) this; + } + + public Criteria andCategoryIdIsNull() { + addCriterion("category_id is null"); + return (Criteria) this; + } + + public Criteria andCategoryIdIsNotNull() { + addCriterion("category_id is not null"); + return (Criteria) this; + } + + public Criteria andCategoryIdEqualTo(Integer value) { + addCriterion("category_id =", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotEqualTo(Integer value) { + addCriterion("category_id <>", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThan(Integer value) { + addCriterion("category_id >", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThanOrEqualTo(Integer value) { + addCriterion("category_id >=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThan(Integer value) { + addCriterion("category_id <", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThanOrEqualTo(Integer value) { + addCriterion("category_id <=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdIn(List values) { + addCriterion("category_id in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotIn(List values) { + addCriterion("category_id not in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdBetween(Integer value1, Integer value2) { + addCriterion("category_id between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotBetween(Integer value1, Integer value2) { + addCriterion("category_id not between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNull() { + addCriterion("parent_board_id is null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNotNull() { + addCriterion("parent_board_id is not null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdEqualTo(Integer value) { + addCriterion("parent_board_id =", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotEqualTo(Integer value) { + addCriterion("parent_board_id <>", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThan(Integer value) { + addCriterion("parent_board_id >", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThanOrEqualTo(Integer value) { + addCriterion("parent_board_id >=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThan(Integer value) { + addCriterion("parent_board_id <", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThanOrEqualTo(Integer value) { + addCriterion("parent_board_id <=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIn(List values) { + addCriterion("parent_board_id in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotIn(List values) { + addCriterion("parent_board_id not in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id between", value1, value2, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id not between", value1, value2, "parentBoardId"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.board_summary + * + * @mbg.generated do_not_delete_during_merge Sun Oct 13 17:42:51 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/CategoryDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/CategoryDbo.java index c3dec3a..0680502 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/CategoryDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/CategoryDbo.java @@ -1,163 +1,163 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDateTime; - -public class CategoryDbo extends AbstractDbo{ - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.category_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer categoryId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.category_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String categoryName; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.description - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String description; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.parent_board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer parentBoardId; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.category_id - * @return the value of zfgbb.category.category_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getCategoryId() { - return categoryId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.category_id - * @param categoryId the value for zfgbb.category.category_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCategoryId(Integer categoryId) { - this.categoryId = categoryId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.category_name - * @return the value of zfgbb.category.category_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getCategoryName() { - return categoryName; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.category_name - * @param categoryName the value for zfgbb.category.category_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCategoryName(String categoryName) { - this.categoryName = categoryName; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.description - * @return the value of zfgbb.category.description - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getDescription() { - return description; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.description - * @param description the value for zfgbb.category.description - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDescription(String description) { - this.description = description; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.created_ts - * @return the value of zfgbb.category.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.created_ts - * @param createdTs the value for zfgbb.category.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.updated_ts - * @return the value of zfgbb.category.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.updated_ts - * @param updatedTs the value for zfgbb.category.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.parent_board_id - * @return the value of zfgbb.category.parent_board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getParentBoardId() { - return parentBoardId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.parent_board_id - * @param parentBoardId the value for zfgbb.category.parent_board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setParentBoardId(Integer parentBoardId) { - this.parentBoardId = parentBoardId; - } - - @Override - public Integer getPkId() { - return categoryId; - } - - @Override - public LocalDateTime getUpdatedTime() { - // TODO Auto-generated method stub - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDateTime; + +public class CategoryDbo extends AbstractDbo{ + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.category_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer categoryId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.category_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String categoryName; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.description + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String description; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.category.parent_board_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer parentBoardId; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.category_id + * @return the value of zfgbb.category.category_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getCategoryId() { + return categoryId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.category_id + * @param categoryId the value for zfgbb.category.category_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCategoryId(Integer categoryId) { + this.categoryId = categoryId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.category_name + * @return the value of zfgbb.category.category_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getCategoryName() { + return categoryName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.category_name + * @param categoryName the value for zfgbb.category.category_name + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCategoryName(String categoryName) { + this.categoryName = categoryName; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.description + * @return the value of zfgbb.category.description + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getDescription() { + return description; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.description + * @param description the value for zfgbb.category.description + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.created_ts + * @return the value of zfgbb.category.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.created_ts + * @param createdTs the value for zfgbb.category.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.updated_ts + * @return the value of zfgbb.category.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.updated_ts + * @param updatedTs the value for zfgbb.category.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.category.parent_board_id + * @return the value of zfgbb.category.parent_board_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getParentBoardId() { + return parentBoardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.category.parent_board_id + * @param parentBoardId the value for zfgbb.category.parent_board_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setParentBoardId(Integer parentBoardId) { + this.parentBoardId = parentBoardId; + } + + @Override + public Integer getPkId() { + return categoryId; + } + + @Override + public LocalDateTime getUpdatedTime() { + // TODO Auto-generated method stub + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/CategoryDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/CategoryDboExample.java index c62e680..3238884 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/CategoryDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/CategoryDboExample.java @@ -1,642 +1,642 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class CategoryDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public CategoryDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andCategoryIdIsNull() { - addCriterion("category_id is null"); - return (Criteria) this; - } - - public Criteria andCategoryIdIsNotNull() { - addCriterion("category_id is not null"); - return (Criteria) this; - } - - public Criteria andCategoryIdEqualTo(Integer value) { - addCriterion("category_id =", value, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdNotEqualTo(Integer value) { - addCriterion("category_id <>", value, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdGreaterThan(Integer value) { - addCriterion("category_id >", value, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdGreaterThanOrEqualTo(Integer value) { - addCriterion("category_id >=", value, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdLessThan(Integer value) { - addCriterion("category_id <", value, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdLessThanOrEqualTo(Integer value) { - addCriterion("category_id <=", value, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdIn(List values) { - addCriterion("category_id in", values, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdNotIn(List values) { - addCriterion("category_id not in", values, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdBetween(Integer value1, Integer value2) { - addCriterion("category_id between", value1, value2, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryIdNotBetween(Integer value1, Integer value2) { - addCriterion("category_id not between", value1, value2, "categoryId"); - return (Criteria) this; - } - - public Criteria andCategoryNameIsNull() { - addCriterion("category_name is null"); - return (Criteria) this; - } - - public Criteria andCategoryNameIsNotNull() { - addCriterion("category_name is not null"); - return (Criteria) this; - } - - public Criteria andCategoryNameEqualTo(String value) { - addCriterion("category_name =", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameNotEqualTo(String value) { - addCriterion("category_name <>", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameGreaterThan(String value) { - addCriterion("category_name >", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameGreaterThanOrEqualTo(String value) { - addCriterion("category_name >=", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameLessThan(String value) { - addCriterion("category_name <", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameLessThanOrEqualTo(String value) { - addCriterion("category_name <=", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameLike(String value) { - addCriterion("category_name like", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameNotLike(String value) { - addCriterion("category_name not like", value, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameIn(List values) { - addCriterion("category_name in", values, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameNotIn(List values) { - addCriterion("category_name not in", values, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameBetween(String value1, String value2) { - addCriterion("category_name between", value1, value2, "categoryName"); - return (Criteria) this; - } - - public Criteria andCategoryNameNotBetween(String value1, String value2) { - addCriterion("category_name not between", value1, value2, "categoryName"); - return (Criteria) this; - } - - public Criteria andDescriptionIsNull() { - addCriterion("description is null"); - return (Criteria) this; - } - - public Criteria andDescriptionIsNotNull() { - addCriterion("description is not null"); - return (Criteria) this; - } - - public Criteria andDescriptionEqualTo(String value) { - addCriterion("description =", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotEqualTo(String value) { - addCriterion("description <>", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThan(String value) { - addCriterion("description >", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThanOrEqualTo(String value) { - addCriterion("description >=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThan(String value) { - addCriterion("description <", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThanOrEqualTo(String value) { - addCriterion("description <=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLike(String value) { - addCriterion("description like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotLike(String value) { - addCriterion("description not like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionIn(List values) { - addCriterion("description in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotIn(List values) { - addCriterion("description not in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionBetween(String value1, String value2) { - addCriterion("description between", value1, value2, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotBetween(String value1, String value2) { - addCriterion("description not between", value1, value2, "description"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andParentBoardIdIsNull() { - addCriterion("parent_board_id is null"); - return (Criteria) this; - } - - public Criteria andParentBoardIdIsNotNull() { - addCriterion("parent_board_id is not null"); - return (Criteria) this; - } - - public Criteria andParentBoardIdEqualTo(Integer value) { - addCriterion("parent_board_id =", value, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdNotEqualTo(Integer value) { - addCriterion("parent_board_id <>", value, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdGreaterThan(Integer value) { - addCriterion("parent_board_id >", value, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdGreaterThanOrEqualTo(Integer value) { - addCriterion("parent_board_id >=", value, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdLessThan(Integer value) { - addCriterion("parent_board_id <", value, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdLessThanOrEqualTo(Integer value) { - addCriterion("parent_board_id <=", value, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdIn(List values) { - addCriterion("parent_board_id in", values, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdNotIn(List values) { - addCriterion("parent_board_id not in", values, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdBetween(Integer value1, Integer value2) { - addCriterion("parent_board_id between", value1, value2, "parentBoardId"); - return (Criteria) this; - } - - public Criteria andParentBoardIdNotBetween(Integer value1, Integer value2) { - addCriterion("parent_board_id not between", value1, value2, "parentBoardId"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.category - * - * @mbg.generated do_not_delete_during_merge Tue Feb 22 23:32:06 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class CategoryDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public CategoryDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andCategoryIdIsNull() { + addCriterion("category_id is null"); + return (Criteria) this; + } + + public Criteria andCategoryIdIsNotNull() { + addCriterion("category_id is not null"); + return (Criteria) this; + } + + public Criteria andCategoryIdEqualTo(Integer value) { + addCriterion("category_id =", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotEqualTo(Integer value) { + addCriterion("category_id <>", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThan(Integer value) { + addCriterion("category_id >", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThanOrEqualTo(Integer value) { + addCriterion("category_id >=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThan(Integer value) { + addCriterion("category_id <", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThanOrEqualTo(Integer value) { + addCriterion("category_id <=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdIn(List values) { + addCriterion("category_id in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotIn(List values) { + addCriterion("category_id not in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdBetween(Integer value1, Integer value2) { + addCriterion("category_id between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotBetween(Integer value1, Integer value2) { + addCriterion("category_id not between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryNameIsNull() { + addCriterion("category_name is null"); + return (Criteria) this; + } + + public Criteria andCategoryNameIsNotNull() { + addCriterion("category_name is not null"); + return (Criteria) this; + } + + public Criteria andCategoryNameEqualTo(String value) { + addCriterion("category_name =", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotEqualTo(String value) { + addCriterion("category_name <>", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameGreaterThan(String value) { + addCriterion("category_name >", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameGreaterThanOrEqualTo(String value) { + addCriterion("category_name >=", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLessThan(String value) { + addCriterion("category_name <", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLessThanOrEqualTo(String value) { + addCriterion("category_name <=", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLike(String value) { + addCriterion("category_name like", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotLike(String value) { + addCriterion("category_name not like", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameIn(List values) { + addCriterion("category_name in", values, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotIn(List values) { + addCriterion("category_name not in", values, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameBetween(String value1, String value2) { + addCriterion("category_name between", value1, value2, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotBetween(String value1, String value2) { + addCriterion("category_name not between", value1, value2, "categoryName"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNull() { + addCriterion("parent_board_id is null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNotNull() { + addCriterion("parent_board_id is not null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdEqualTo(Integer value) { + addCriterion("parent_board_id =", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotEqualTo(Integer value) { + addCriterion("parent_board_id <>", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThan(Integer value) { + addCriterion("parent_board_id >", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThanOrEqualTo(Integer value) { + addCriterion("parent_board_id >=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThan(Integer value) { + addCriterion("parent_board_id <", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThanOrEqualTo(Integer value) { + addCriterion("parent_board_id <=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIn(List values) { + addCriterion("parent_board_id in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotIn(List values) { + addCriterion("parent_board_id not in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id between", value1, value2, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id not between", value1, value2, "parentBoardId"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.category + * + * @mbg.generated do_not_delete_during_merge Tue Feb 22 23:32:06 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/ChildBoardViewDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/ChildBoardViewDbo.java new file mode 100644 index 0000000..27ecc51 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/ChildBoardViewDbo.java @@ -0,0 +1,74 @@ +package com.zfgc.zfgbb.dbo; + +public class ChildBoardViewDbo { + + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.child_board_view.board_id + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + private Integer boardId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.child_board_view.board_name + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + private String boardName; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.child_board_view.parent_board_id + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + private Integer parentBoardId; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.child_board_view.board_id + * @return the value of zfgbb.child_board_view.board_id + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public Integer getBoardId() { + return boardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.child_board_view.board_id + * @param boardId the value for zfgbb.child_board_view.board_id + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.child_board_view.board_name + * @return the value of zfgbb.child_board_view.board_name + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public String getBoardName() { + return boardName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.child_board_view.board_name + * @param boardName the value for zfgbb.child_board_view.board_name + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public void setBoardName(String boardName) { + this.boardName = boardName; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.child_board_view.parent_board_id + * @return the value of zfgbb.child_board_view.parent_board_id + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public Integer getParentBoardId() { + return parentBoardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.child_board_view.parent_board_id + * @param parentBoardId the value for zfgbb.child_board_view.parent_board_id + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public void setParentBoardId(Integer parentBoardId) { + this.parentBoardId = parentBoardId; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/ChildBoardViewDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/ChildBoardViewDboExample.java new file mode 100644 index 0000000..45e3aee --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/ChildBoardViewDboExample.java @@ -0,0 +1,450 @@ +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; + +public class ChildBoardViewDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public ChildBoardViewDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andBoardIdIsNull() { + addCriterion("board_id is null"); + return (Criteria) this; + } + + public Criteria andBoardIdIsNotNull() { + addCriterion("board_id is not null"); + return (Criteria) this; + } + + public Criteria andBoardIdEqualTo(Integer value) { + addCriterion("board_id =", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotEqualTo(Integer value) { + addCriterion("board_id <>", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdGreaterThan(Integer value) { + addCriterion("board_id >", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdGreaterThanOrEqualTo(Integer value) { + addCriterion("board_id >=", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdLessThan(Integer value) { + addCriterion("board_id <", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdLessThanOrEqualTo(Integer value) { + addCriterion("board_id <=", value, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdIn(List values) { + addCriterion("board_id in", values, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotIn(List values) { + addCriterion("board_id not in", values, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdBetween(Integer value1, Integer value2) { + addCriterion("board_id between", value1, value2, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardIdNotBetween(Integer value1, Integer value2) { + addCriterion("board_id not between", value1, value2, "boardId"); + return (Criteria) this; + } + + public Criteria andBoardNameIsNull() { + addCriterion("board_name is null"); + return (Criteria) this; + } + + public Criteria andBoardNameIsNotNull() { + addCriterion("board_name is not null"); + return (Criteria) this; + } + + public Criteria andBoardNameEqualTo(String value) { + addCriterion("board_name =", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotEqualTo(String value) { + addCriterion("board_name <>", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameGreaterThan(String value) { + addCriterion("board_name >", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameGreaterThanOrEqualTo(String value) { + addCriterion("board_name >=", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameLessThan(String value) { + addCriterion("board_name <", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameLessThanOrEqualTo(String value) { + addCriterion("board_name <=", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameLike(String value) { + addCriterion("board_name like", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotLike(String value) { + addCriterion("board_name not like", value, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameIn(List values) { + addCriterion("board_name in", values, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotIn(List values) { + addCriterion("board_name not in", values, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameBetween(String value1, String value2) { + addCriterion("board_name between", value1, value2, "boardName"); + return (Criteria) this; + } + + public Criteria andBoardNameNotBetween(String value1, String value2) { + addCriterion("board_name not between", value1, value2, "boardName"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNull() { + addCriterion("parent_board_id is null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIsNotNull() { + addCriterion("parent_board_id is not null"); + return (Criteria) this; + } + + public Criteria andParentBoardIdEqualTo(Integer value) { + addCriterion("parent_board_id =", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotEqualTo(Integer value) { + addCriterion("parent_board_id <>", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThan(Integer value) { + addCriterion("parent_board_id >", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdGreaterThanOrEqualTo(Integer value) { + addCriterion("parent_board_id >=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThan(Integer value) { + addCriterion("parent_board_id <", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdLessThanOrEqualTo(Integer value) { + addCriterion("parent_board_id <=", value, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdIn(List values) { + addCriterion("parent_board_id in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotIn(List values) { + addCriterion("parent_board_id not in", values, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id between", value1, value2, "parentBoardId"); + return (Criteria) this; + } + + public Criteria andParentBoardIdNotBetween(Integer value1, Integer value2) { + addCriterion("parent_board_id not between", value1, value2, "parentBoardId"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.child_board_view + * + * @mbg.generated do_not_delete_during_merge Mon Oct 14 23:33:01 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/ContentResourceDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/ContentResourceDbo.java new file mode 100644 index 0000000..c9d834a --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/ContentResourceDbo.java @@ -0,0 +1,317 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class ContentResourceDbo extends AbstractDbo { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.content_resource_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private Integer contentResourceId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.content_type_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private Integer contentTypeId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.uploaded_user_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private Integer uploadedUserId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.filename + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private String filename; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.checksum + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private String checksum; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.file_ext + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private String fileExt; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.mime_type + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private String mimeType; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.created_ts + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private LocalDateTime createdTs; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.content_resource.updated_ts + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.content_resource_id + * + * @return the value of zfgbb.content_resource.content_resource_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public Integer getContentResourceId() { + return contentResourceId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.content_resource_id + * + * @param contentResourceId the value for zfgbb.content_resource.content_resource_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setContentResourceId(Integer contentResourceId) { + this.contentResourceId = contentResourceId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.content_type_id + * + * @return the value of zfgbb.content_resource.content_type_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public Integer getContentTypeId() { + return contentTypeId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.content_type_id + * + * @param contentTypeId the value for zfgbb.content_resource.content_type_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setContentTypeId(Integer contentTypeId) { + this.contentTypeId = contentTypeId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.uploaded_user_id + * + * @return the value of zfgbb.content_resource.uploaded_user_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public Integer getUploadedUserId() { + return uploadedUserId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.uploaded_user_id + * + * @param uploadedUserId the value for zfgbb.content_resource.uploaded_user_id + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setUploadedUserId(Integer uploadedUserId) { + this.uploadedUserId = uploadedUserId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.filename + * + * @return the value of zfgbb.content_resource.filename + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public String getFilename() { + return filename; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.filename + * + * @param filename the value for zfgbb.content_resource.filename + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setFilename(String filename) { + this.filename = filename; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.checksum + * + * @return the value of zfgbb.content_resource.checksum + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public String getChecksum() { + return checksum; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.checksum + * + * @param checksum the value for zfgbb.content_resource.checksum + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setChecksum(String checksum) { + this.checksum = checksum; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.file_ext + * + * @return the value of zfgbb.content_resource.file_ext + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public String getFileExt() { + return fileExt; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.file_ext + * + * @param fileExt the value for zfgbb.content_resource.file_ext + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setFileExt(String fileExt) { + this.fileExt = fileExt; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.mime_type + * + * @return the value of zfgbb.content_resource.mime_type + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public String getMimeType() { + return mimeType; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.mime_type + * + * @param mimeType the value for zfgbb.content_resource.mime_type + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.created_ts + * + * @return the value of zfgbb.content_resource.created_ts + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.created_ts + * + * @param createdTs the value for zfgbb.content_resource.created_ts + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.content_resource.updated_ts + * + * @return the value of zfgbb.content_resource.updated_ts + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.content_resource.updated_ts + * + * @param updatedTs the value for zfgbb.content_resource.updated_ts + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return contentResourceId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/ContentResourceDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/ContentResourceDboExample.java new file mode 100644 index 0000000..a50d827 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/ContentResourceDboExample.java @@ -0,0 +1,882 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class ContentResourceDboExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public ContentResourceDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andContentResourceIdIsNull() { + addCriterion("content_resource_id is null"); + return (Criteria) this; + } + + public Criteria andContentResourceIdIsNotNull() { + addCriterion("content_resource_id is not null"); + return (Criteria) this; + } + + public Criteria andContentResourceIdEqualTo(Integer value) { + addCriterion("content_resource_id =", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdNotEqualTo(Integer value) { + addCriterion("content_resource_id <>", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdGreaterThan(Integer value) { + addCriterion("content_resource_id >", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdGreaterThanOrEqualTo(Integer value) { + addCriterion("content_resource_id >=", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdLessThan(Integer value) { + addCriterion("content_resource_id <", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdLessThanOrEqualTo(Integer value) { + addCriterion("content_resource_id <=", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdIn(List values) { + addCriterion("content_resource_id in", values, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdNotIn(List values) { + addCriterion("content_resource_id not in", values, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdBetween(Integer value1, Integer value2) { + addCriterion("content_resource_id between", value1, value2, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdNotBetween(Integer value1, Integer value2) { + addCriterion("content_resource_id not between", value1, value2, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdIsNull() { + addCriterion("content_type_id is null"); + return (Criteria) this; + } + + public Criteria andContentTypeIdIsNotNull() { + addCriterion("content_type_id is not null"); + return (Criteria) this; + } + + public Criteria andContentTypeIdEqualTo(Integer value) { + addCriterion("content_type_id =", value, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdNotEqualTo(Integer value) { + addCriterion("content_type_id <>", value, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdGreaterThan(Integer value) { + addCriterion("content_type_id >", value, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdGreaterThanOrEqualTo(Integer value) { + addCriterion("content_type_id >=", value, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdLessThan(Integer value) { + addCriterion("content_type_id <", value, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdLessThanOrEqualTo(Integer value) { + addCriterion("content_type_id <=", value, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdIn(List values) { + addCriterion("content_type_id in", values, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdNotIn(List values) { + addCriterion("content_type_id not in", values, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdBetween(Integer value1, Integer value2) { + addCriterion("content_type_id between", value1, value2, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andContentTypeIdNotBetween(Integer value1, Integer value2) { + addCriterion("content_type_id not between", value1, value2, "contentTypeId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdIsNull() { + addCriterion("uploaded_user_id is null"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdIsNotNull() { + addCriterion("uploaded_user_id is not null"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdEqualTo(Integer value) { + addCriterion("uploaded_user_id =", value, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdNotEqualTo(Integer value) { + addCriterion("uploaded_user_id <>", value, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdGreaterThan(Integer value) { + addCriterion("uploaded_user_id >", value, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("uploaded_user_id >=", value, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdLessThan(Integer value) { + addCriterion("uploaded_user_id <", value, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdLessThanOrEqualTo(Integer value) { + addCriterion("uploaded_user_id <=", value, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdIn(List values) { + addCriterion("uploaded_user_id in", values, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdNotIn(List values) { + addCriterion("uploaded_user_id not in", values, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdBetween(Integer value1, Integer value2) { + addCriterion("uploaded_user_id between", value1, value2, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andUploadedUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("uploaded_user_id not between", value1, value2, "uploadedUserId"); + return (Criteria) this; + } + + public Criteria andFilenameIsNull() { + addCriterion("filename is null"); + return (Criteria) this; + } + + public Criteria andFilenameIsNotNull() { + addCriterion("filename is not null"); + return (Criteria) this; + } + + public Criteria andFilenameEqualTo(String value) { + addCriterion("filename =", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameNotEqualTo(String value) { + addCriterion("filename <>", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameGreaterThan(String value) { + addCriterion("filename >", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameGreaterThanOrEqualTo(String value) { + addCriterion("filename >=", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameLessThan(String value) { + addCriterion("filename <", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameLessThanOrEqualTo(String value) { + addCriterion("filename <=", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameLike(String value) { + addCriterion("filename like", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameNotLike(String value) { + addCriterion("filename not like", value, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameIn(List values) { + addCriterion("filename in", values, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameNotIn(List values) { + addCriterion("filename not in", values, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameBetween(String value1, String value2) { + addCriterion("filename between", value1, value2, "filename"); + return (Criteria) this; + } + + public Criteria andFilenameNotBetween(String value1, String value2) { + addCriterion("filename not between", value1, value2, "filename"); + return (Criteria) this; + } + + public Criteria andChecksumIsNull() { + addCriterion("checksum is null"); + return (Criteria) this; + } + + public Criteria andChecksumIsNotNull() { + addCriterion("checksum is not null"); + return (Criteria) this; + } + + public Criteria andChecksumEqualTo(String value) { + addCriterion("checksum =", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumNotEqualTo(String value) { + addCriterion("checksum <>", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumGreaterThan(String value) { + addCriterion("checksum >", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumGreaterThanOrEqualTo(String value) { + addCriterion("checksum >=", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumLessThan(String value) { + addCriterion("checksum <", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumLessThanOrEqualTo(String value) { + addCriterion("checksum <=", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumLike(String value) { + addCriterion("checksum like", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumNotLike(String value) { + addCriterion("checksum not like", value, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumIn(List values) { + addCriterion("checksum in", values, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumNotIn(List values) { + addCriterion("checksum not in", values, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumBetween(String value1, String value2) { + addCriterion("checksum between", value1, value2, "checksum"); + return (Criteria) this; + } + + public Criteria andChecksumNotBetween(String value1, String value2) { + addCriterion("checksum not between", value1, value2, "checksum"); + return (Criteria) this; + } + + public Criteria andFileExtIsNull() { + addCriterion("file_ext is null"); + return (Criteria) this; + } + + public Criteria andFileExtIsNotNull() { + addCriterion("file_ext is not null"); + return (Criteria) this; + } + + public Criteria andFileExtEqualTo(String value) { + addCriterion("file_ext =", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtNotEqualTo(String value) { + addCriterion("file_ext <>", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtGreaterThan(String value) { + addCriterion("file_ext >", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtGreaterThanOrEqualTo(String value) { + addCriterion("file_ext >=", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtLessThan(String value) { + addCriterion("file_ext <", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtLessThanOrEqualTo(String value) { + addCriterion("file_ext <=", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtLike(String value) { + addCriterion("file_ext like", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtNotLike(String value) { + addCriterion("file_ext not like", value, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtIn(List values) { + addCriterion("file_ext in", values, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtNotIn(List values) { + addCriterion("file_ext not in", values, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtBetween(String value1, String value2) { + addCriterion("file_ext between", value1, value2, "fileExt"); + return (Criteria) this; + } + + public Criteria andFileExtNotBetween(String value1, String value2) { + addCriterion("file_ext not between", value1, value2, "fileExt"); + return (Criteria) this; + } + + public Criteria andMimeTypeIsNull() { + addCriterion("mime_type is null"); + return (Criteria) this; + } + + public Criteria andMimeTypeIsNotNull() { + addCriterion("mime_type is not null"); + return (Criteria) this; + } + + public Criteria andMimeTypeEqualTo(String value) { + addCriterion("mime_type =", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeNotEqualTo(String value) { + addCriterion("mime_type <>", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeGreaterThan(String value) { + addCriterion("mime_type >", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeGreaterThanOrEqualTo(String value) { + addCriterion("mime_type >=", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeLessThan(String value) { + addCriterion("mime_type <", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeLessThanOrEqualTo(String value) { + addCriterion("mime_type <=", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeLike(String value) { + addCriterion("mime_type like", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeNotLike(String value) { + addCriterion("mime_type not like", value, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeIn(List values) { + addCriterion("mime_type in", values, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeNotIn(List values) { + addCriterion("mime_type not in", values, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeBetween(String value1, String value2) { + addCriterion("mime_type between", value1, value2, "mimeType"); + return (Criteria) this; + } + + public Criteria andMimeTypeNotBetween(String value1, String value2) { + addCriterion("mime_type not between", value1, value2, "mimeType"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.content_resource + * + * @mbg.generated do_not_delete_during_merge Mon Oct 07 21:35:40 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDbo.java index bc3ee55..0eaa37f 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDbo.java @@ -2,43 +2,49 @@ import java.time.LocalDate; import java.time.LocalDateTime; +import java.util.Date; public class CurrentMessageDbo extends AbstractDbo { /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.current_message_view.message_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ private Integer messageId; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.current_message_view.owner_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ private Integer ownerId; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.current_message_view.thread_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ private Integer threadId; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.current_message_view.message_text - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ private String messageText; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.current_message_view.message_history_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ private Integer messageHistoryId; /** * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.current_message_view.post_in_thread - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ private Integer postInThread; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.current_message_view.created_ts + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 + */ + private LocalDateTime createdTs; /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.current_message_view.message_id * @return the value of zfgbb.current_message_view.message_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public Integer getMessageId() { return messageId; @@ -47,7 +53,7 @@ public Integer getMessageId() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.current_message_view.message_id * @param messageId the value for zfgbb.current_message_view.message_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setMessageId(Integer messageId) { this.messageId = messageId; @@ -56,7 +62,7 @@ public void setMessageId(Integer messageId) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.current_message_view.owner_id * @return the value of zfgbb.current_message_view.owner_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public Integer getOwnerId() { return ownerId; @@ -65,7 +71,7 @@ public Integer getOwnerId() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.current_message_view.owner_id * @param ownerId the value for zfgbb.current_message_view.owner_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setOwnerId(Integer ownerId) { this.ownerId = ownerId; @@ -74,7 +80,7 @@ public void setOwnerId(Integer ownerId) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.current_message_view.thread_id * @return the value of zfgbb.current_message_view.thread_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public Integer getThreadId() { return threadId; @@ -83,7 +89,7 @@ public Integer getThreadId() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.current_message_view.thread_id * @param threadId the value for zfgbb.current_message_view.thread_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setThreadId(Integer threadId) { this.threadId = threadId; @@ -92,7 +98,7 @@ public void setThreadId(Integer threadId) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.current_message_view.message_text * @return the value of zfgbb.current_message_view.message_text - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public String getMessageText() { return messageText; @@ -101,7 +107,7 @@ public String getMessageText() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.current_message_view.message_text * @param messageText the value for zfgbb.current_message_view.message_text - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setMessageText(String messageText) { this.messageText = messageText; @@ -110,7 +116,7 @@ public void setMessageText(String messageText) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.current_message_view.message_history_id * @return the value of zfgbb.current_message_view.message_history_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public Integer getMessageHistoryId() { return messageHistoryId; @@ -119,7 +125,7 @@ public Integer getMessageHistoryId() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.current_message_view.message_history_id * @param messageHistoryId the value for zfgbb.current_message_view.message_history_id - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setMessageHistoryId(Integer messageHistoryId) { this.messageHistoryId = messageHistoryId; @@ -128,7 +134,7 @@ public void setMessageHistoryId(Integer messageHistoryId) { /** * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.current_message_view.post_in_thread * @return the value of zfgbb.current_message_view.post_in_thread - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public Integer getPostInThread() { return postInThread; @@ -137,12 +143,30 @@ public Integer getPostInThread() { /** * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.current_message_view.post_in_thread * @param postInThread the value for zfgbb.current_message_view.post_in_thread - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setPostInThread(Integer postInThread) { this.postInThread = postInThread; } + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.current_message_view.created_ts + * @return the value of zfgbb.current_message_view.created_ts + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.current_message_view.created_ts + * @param createdTs the value for zfgbb.current_message_view.created_ts + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + @Override public Integer getPkId() { // TODO Auto-generated method stub diff --git a/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDboExample.java index 085ab0e..29a20a9 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/CurrentMessageDboExample.java @@ -2,27 +2,29 @@ import java.util.ArrayList; import java.util.List; +import java.util.Date; +import java.time.LocalDateTime; public class CurrentMessageDboExample { /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ protected String orderByClause; /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ protected boolean distinct; /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ protected List oredCriteria; /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public CurrentMessageDboExample() { oredCriteria = new ArrayList<>(); @@ -30,7 +32,7 @@ public CurrentMessageDboExample() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; @@ -38,7 +40,7 @@ public void setOrderByClause(String orderByClause) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public String getOrderByClause() { return orderByClause; @@ -46,7 +48,7 @@ public String getOrderByClause() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void setDistinct(boolean distinct) { this.distinct = distinct; @@ -54,7 +56,7 @@ public void setDistinct(boolean distinct) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public boolean isDistinct() { return distinct; @@ -62,7 +64,7 @@ public boolean isDistinct() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public List getOredCriteria() { return oredCriteria; @@ -70,7 +72,7 @@ public List getOredCriteria() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void or(Criteria criteria) { oredCriteria.add(criteria); @@ -78,7 +80,7 @@ public void or(Criteria criteria) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public Criteria or() { Criteria criteria = createCriteriaInternal(); @@ -88,7 +90,7 @@ public Criteria or() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); @@ -100,7 +102,7 @@ public Criteria createCriteria() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); @@ -109,7 +111,7 @@ protected Criteria createCriteriaInternal() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public void clear() { oredCriteria.clear(); @@ -119,7 +121,7 @@ public void clear() { /** * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ protected abstract static class GeneratedCriteria { protected List criteria; @@ -531,11 +533,71 @@ public Criteria andPostInThreadNotBetween(Integer value1, Integer value2) { addCriterion("post_in_thread not between", value1, value2, "postInThread"); return (Criteria) this; } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } } /** * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ public static class Criterion { private String condition; diff --git a/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDbo.java index 9f109c8..d7850f3 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDbo.java @@ -1,162 +1,162 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDateTime; - -public class EmailAddressDbo extends AbstractDbo{ - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.email_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer emailAddressId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String emailAddress; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.spammer_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean spammerFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer userId; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.email_address_id - * @return the value of zfgbb.email_address.email_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getEmailAddressId() { - return emailAddressId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.email_address_id - * @param emailAddressId the value for zfgbb.email_address.email_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setEmailAddressId(Integer emailAddressId) { - this.emailAddressId = emailAddressId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.email_address - * @return the value of zfgbb.email_address.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getEmailAddress() { - return emailAddress; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.email_address - * @param emailAddress the value for zfgbb.email_address.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setEmailAddress(String emailAddress) { - this.emailAddress = emailAddress; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.created_ts - * @return the value of zfgbb.email_address.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.created_ts - * @param createdTs the value for zfgbb.email_address.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.updated_ts - * @return the value of zfgbb.email_address.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.updated_ts - * @param updatedTs the value for zfgbb.email_address.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.spammer_flag - * @return the value of zfgbb.email_address.spammer_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getSpammerFlag() { - return spammerFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.spammer_flag - * @param spammerFlag the value for zfgbb.email_address.spammer_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setSpammerFlag(Boolean spammerFlag) { - this.spammerFlag = spammerFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.user_id - * @return the value of zfgbb.email_address.user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getUserId() { - return userId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.user_id - * @param userId the value for zfgbb.email_address.user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUserId(Integer userId) { - this.userId = userId; - } - - @Override - public Integer getPkId() { - return emailAddressId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDateTime; + +public class EmailAddressDbo extends AbstractDbo{ + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.email_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer emailAddressId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String emailAddress; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.spammer_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Boolean spammerFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.email_address.user_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer userId; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.email_address_id + * @return the value of zfgbb.email_address.email_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getEmailAddressId() { + return emailAddressId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.email_address_id + * @param emailAddressId the value for zfgbb.email_address.email_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setEmailAddressId(Integer emailAddressId) { + this.emailAddressId = emailAddressId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.email_address + * @return the value of zfgbb.email_address.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getEmailAddress() { + return emailAddress; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.email_address + * @param emailAddress the value for zfgbb.email_address.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setEmailAddress(String emailAddress) { + this.emailAddress = emailAddress; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.created_ts + * @return the value of zfgbb.email_address.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.created_ts + * @param createdTs the value for zfgbb.email_address.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.updated_ts + * @return the value of zfgbb.email_address.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.updated_ts + * @param updatedTs the value for zfgbb.email_address.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.spammer_flag + * @return the value of zfgbb.email_address.spammer_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Boolean getSpammerFlag() { + return spammerFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.spammer_flag + * @param spammerFlag the value for zfgbb.email_address.spammer_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setSpammerFlag(Boolean spammerFlag) { + this.spammerFlag = spammerFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.email_address.user_id + * @return the value of zfgbb.email_address.user_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getUserId() { + return userId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.email_address.user_id + * @param userId the value for zfgbb.email_address.user_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUserId(Integer userId) { + this.userId = userId; + } + + @Override + public Integer getPkId() { + return emailAddressId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDboExample.java index 219455c..eab005e 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/EmailAddressDboExample.java @@ -1,632 +1,632 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class EmailAddressDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public EmailAddressDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andEmailAddressIdIsNull() { - addCriterion("email_address_id is null"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdIsNotNull() { - addCriterion("email_address_id is not null"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdEqualTo(Integer value) { - addCriterion("email_address_id =", value, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdNotEqualTo(Integer value) { - addCriterion("email_address_id <>", value, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdGreaterThan(Integer value) { - addCriterion("email_address_id >", value, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdGreaterThanOrEqualTo(Integer value) { - addCriterion("email_address_id >=", value, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdLessThan(Integer value) { - addCriterion("email_address_id <", value, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdLessThanOrEqualTo(Integer value) { - addCriterion("email_address_id <=", value, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdIn(List values) { - addCriterion("email_address_id in", values, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdNotIn(List values) { - addCriterion("email_address_id not in", values, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdBetween(Integer value1, Integer value2) { - addCriterion("email_address_id between", value1, value2, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIdNotBetween(Integer value1, Integer value2) { - addCriterion("email_address_id not between", value1, value2, "emailAddressId"); - return (Criteria) this; - } - - public Criteria andEmailAddressIsNull() { - addCriterion("email_address is null"); - return (Criteria) this; - } - - public Criteria andEmailAddressIsNotNull() { - addCriterion("email_address is not null"); - return (Criteria) this; - } - - public Criteria andEmailAddressEqualTo(String value) { - addCriterion("email_address =", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressNotEqualTo(String value) { - addCriterion("email_address <>", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressGreaterThan(String value) { - addCriterion("email_address >", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressGreaterThanOrEqualTo(String value) { - addCriterion("email_address >=", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressLessThan(String value) { - addCriterion("email_address <", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressLessThanOrEqualTo(String value) { - addCriterion("email_address <=", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressLike(String value) { - addCriterion("email_address like", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressNotLike(String value) { - addCriterion("email_address not like", value, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressIn(List values) { - addCriterion("email_address in", values, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressNotIn(List values) { - addCriterion("email_address not in", values, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressBetween(String value1, String value2) { - addCriterion("email_address between", value1, value2, "emailAddress"); - return (Criteria) this; - } - - public Criteria andEmailAddressNotBetween(String value1, String value2) { - addCriterion("email_address not between", value1, value2, "emailAddress"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andSpammerFlagIsNull() { - addCriterion("spammer_flag is null"); - return (Criteria) this; - } - - public Criteria andSpammerFlagIsNotNull() { - addCriterion("spammer_flag is not null"); - return (Criteria) this; - } - - public Criteria andSpammerFlagEqualTo(Boolean value) { - addCriterion("spammer_flag =", value, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagNotEqualTo(Boolean value) { - addCriterion("spammer_flag <>", value, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagGreaterThan(Boolean value) { - addCriterion("spammer_flag >", value, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("spammer_flag >=", value, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagLessThan(Boolean value) { - addCriterion("spammer_flag <", value, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagLessThanOrEqualTo(Boolean value) { - addCriterion("spammer_flag <=", value, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagIn(List values) { - addCriterion("spammer_flag in", values, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagNotIn(List values) { - addCriterion("spammer_flag not in", values, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagBetween(Boolean value1, Boolean value2) { - addCriterion("spammer_flag between", value1, value2, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andSpammerFlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("spammer_flag not between", value1, value2, "spammerFlag"); - return (Criteria) this; - } - - public Criteria andUserIdIsNull() { - addCriterion("user_id is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("user_id is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(Integer value) { - addCriterion("user_id =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(Integer value) { - addCriterion("user_id <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(Integer value) { - addCriterion("user_id >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("user_id >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(Integer value) { - addCriterion("user_id <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(Integer value) { - addCriterion("user_id <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("user_id in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("user_id not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(Integer value1, Integer value2) { - addCriterion("user_id between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("user_id not between", value1, value2, "userId"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.email_address - * - * @mbg.generated do_not_delete_during_merge Sat Feb 26 22:05:37 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class EmailAddressDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public EmailAddressDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andEmailAddressIdIsNull() { + addCriterion("email_address_id is null"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdIsNotNull() { + addCriterion("email_address_id is not null"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdEqualTo(Integer value) { + addCriterion("email_address_id =", value, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdNotEqualTo(Integer value) { + addCriterion("email_address_id <>", value, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdGreaterThan(Integer value) { + addCriterion("email_address_id >", value, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdGreaterThanOrEqualTo(Integer value) { + addCriterion("email_address_id >=", value, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdLessThan(Integer value) { + addCriterion("email_address_id <", value, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdLessThanOrEqualTo(Integer value) { + addCriterion("email_address_id <=", value, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdIn(List values) { + addCriterion("email_address_id in", values, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdNotIn(List values) { + addCriterion("email_address_id not in", values, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdBetween(Integer value1, Integer value2) { + addCriterion("email_address_id between", value1, value2, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIdNotBetween(Integer value1, Integer value2) { + addCriterion("email_address_id not between", value1, value2, "emailAddressId"); + return (Criteria) this; + } + + public Criteria andEmailAddressIsNull() { + addCriterion("email_address is null"); + return (Criteria) this; + } + + public Criteria andEmailAddressIsNotNull() { + addCriterion("email_address is not null"); + return (Criteria) this; + } + + public Criteria andEmailAddressEqualTo(String value) { + addCriterion("email_address =", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressNotEqualTo(String value) { + addCriterion("email_address <>", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressGreaterThan(String value) { + addCriterion("email_address >", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressGreaterThanOrEqualTo(String value) { + addCriterion("email_address >=", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressLessThan(String value) { + addCriterion("email_address <", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressLessThanOrEqualTo(String value) { + addCriterion("email_address <=", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressLike(String value) { + addCriterion("email_address like", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressNotLike(String value) { + addCriterion("email_address not like", value, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressIn(List values) { + addCriterion("email_address in", values, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressNotIn(List values) { + addCriterion("email_address not in", values, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressBetween(String value1, String value2) { + addCriterion("email_address between", value1, value2, "emailAddress"); + return (Criteria) this; + } + + public Criteria andEmailAddressNotBetween(String value1, String value2) { + addCriterion("email_address not between", value1, value2, "emailAddress"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andSpammerFlagIsNull() { + addCriterion("spammer_flag is null"); + return (Criteria) this; + } + + public Criteria andSpammerFlagIsNotNull() { + addCriterion("spammer_flag is not null"); + return (Criteria) this; + } + + public Criteria andSpammerFlagEqualTo(Boolean value) { + addCriterion("spammer_flag =", value, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagNotEqualTo(Boolean value) { + addCriterion("spammer_flag <>", value, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagGreaterThan(Boolean value) { + addCriterion("spammer_flag >", value, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("spammer_flag >=", value, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagLessThan(Boolean value) { + addCriterion("spammer_flag <", value, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagLessThanOrEqualTo(Boolean value) { + addCriterion("spammer_flag <=", value, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagIn(List values) { + addCriterion("spammer_flag in", values, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagNotIn(List values) { + addCriterion("spammer_flag not in", values, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagBetween(Boolean value1, Boolean value2) { + addCriterion("spammer_flag between", value1, value2, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andSpammerFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("spammer_flag not between", value1, value2, "spammerFlag"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Integer value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Integer value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Integer value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Integer value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Integer value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Integer value1, Integer value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.email_address + * + * @mbg.generated do_not_delete_during_merge Sat Feb 26 22:05:37 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/FileAttachmentDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/FileAttachmentDbo.java new file mode 100644 index 0000000..0048593 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/FileAttachmentDbo.java @@ -0,0 +1,160 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class FileAttachmentDbo extends AbstractDbo { + + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.file_attachments.file_attachment_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + private Integer fileAttachmentId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.file_attachments.message_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + private Integer messageId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.file_attachments.active_flag + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + private Boolean activeFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.file_attachments.created_ts + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.file_attachments.updated_ts + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.file_attachments.content_resource_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + private Integer contentResourceId; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.file_attachments.file_attachment_id + * @return the value of zfgbb.file_attachments.file_attachment_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public Integer getFileAttachmentId() { + return fileAttachmentId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.file_attachments.file_attachment_id + * @param fileAttachmentId the value for zfgbb.file_attachments.file_attachment_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setFileAttachmentId(Integer fileAttachmentId) { + this.fileAttachmentId = fileAttachmentId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.file_attachments.message_id + * @return the value of zfgbb.file_attachments.message_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public Integer getMessageId() { + return messageId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.file_attachments.message_id + * @param messageId the value for zfgbb.file_attachments.message_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setMessageId(Integer messageId) { + this.messageId = messageId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.file_attachments.active_flag + * @return the value of zfgbb.file_attachments.active_flag + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public Boolean getActiveFlag() { + return activeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.file_attachments.active_flag + * @param activeFlag the value for zfgbb.file_attachments.active_flag + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setActiveFlag(Boolean activeFlag) { + this.activeFlag = activeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.file_attachments.created_ts + * @return the value of zfgbb.file_attachments.created_ts + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.file_attachments.created_ts + * @param createdTs the value for zfgbb.file_attachments.created_ts + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.file_attachments.updated_ts + * @return the value of zfgbb.file_attachments.updated_ts + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.file_attachments.updated_ts + * @param updatedTs the value for zfgbb.file_attachments.updated_ts + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.file_attachments.content_resource_id + * @return the value of zfgbb.file_attachments.content_resource_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public Integer getContentResourceId() { + return contentResourceId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.file_attachments.content_resource_id + * @param contentResourceId the value for zfgbb.file_attachments.content_resource_id + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setContentResourceId(Integer contentResourceId) { + this.contentResourceId = contentResourceId; + } + + @Override + public Integer getPkId() { + return fileAttachmentId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/FileAttachmentDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/FileAttachmentDboExample.java new file mode 100644 index 0000000..f3e9ea3 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/FileAttachmentDboExample.java @@ -0,0 +1,621 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class FileAttachmentDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public FileAttachmentDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andFileAttachmentIdIsNull() { + addCriterion("file_attachment_id is null"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdIsNotNull() { + addCriterion("file_attachment_id is not null"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdEqualTo(Integer value) { + addCriterion("file_attachment_id =", value, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdNotEqualTo(Integer value) { + addCriterion("file_attachment_id <>", value, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdGreaterThan(Integer value) { + addCriterion("file_attachment_id >", value, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdGreaterThanOrEqualTo(Integer value) { + addCriterion("file_attachment_id >=", value, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdLessThan(Integer value) { + addCriterion("file_attachment_id <", value, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdLessThanOrEqualTo(Integer value) { + addCriterion("file_attachment_id <=", value, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdIn(List values) { + addCriterion("file_attachment_id in", values, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdNotIn(List values) { + addCriterion("file_attachment_id not in", values, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdBetween(Integer value1, Integer value2) { + addCriterion("file_attachment_id between", value1, value2, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andFileAttachmentIdNotBetween(Integer value1, Integer value2) { + addCriterion("file_attachment_id not between", value1, value2, "fileAttachmentId"); + return (Criteria) this; + } + + public Criteria andMessageIdIsNull() { + addCriterion("message_id is null"); + return (Criteria) this; + } + + public Criteria andMessageIdIsNotNull() { + addCriterion("message_id is not null"); + return (Criteria) this; + } + + public Criteria andMessageIdEqualTo(Integer value) { + addCriterion("message_id =", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotEqualTo(Integer value) { + addCriterion("message_id <>", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThan(Integer value) { + addCriterion("message_id >", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThanOrEqualTo(Integer value) { + addCriterion("message_id >=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThan(Integer value) { + addCriterion("message_id <", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThanOrEqualTo(Integer value) { + addCriterion("message_id <=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdIn(List values) { + addCriterion("message_id in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotIn(List values) { + addCriterion("message_id not in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdBetween(Integer value1, Integer value2) { + addCriterion("message_id between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotBetween(Integer value1, Integer value2) { + addCriterion("message_id not between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andActiveFlagIsNull() { + addCriterion("active_flag is null"); + return (Criteria) this; + } + + public Criteria andActiveFlagIsNotNull() { + addCriterion("active_flag is not null"); + return (Criteria) this; + } + + public Criteria andActiveFlagEqualTo(Boolean value) { + addCriterion("active_flag =", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotEqualTo(Boolean value) { + addCriterion("active_flag <>", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagGreaterThan(Boolean value) { + addCriterion("active_flag >", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("active_flag >=", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagLessThan(Boolean value) { + addCriterion("active_flag <", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagLessThanOrEqualTo(Boolean value) { + addCriterion("active_flag <=", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagIn(List values) { + addCriterion("active_flag in", values, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotIn(List values) { + addCriterion("active_flag not in", values, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagBetween(Boolean value1, Boolean value2) { + addCriterion("active_flag between", value1, value2, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("active_flag not between", value1, value2, "activeFlag"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andContentResourceIdIsNull() { + addCriterion("content_resource_id is null"); + return (Criteria) this; + } + + public Criteria andContentResourceIdIsNotNull() { + addCriterion("content_resource_id is not null"); + return (Criteria) this; + } + + public Criteria andContentResourceIdEqualTo(Integer value) { + addCriterion("content_resource_id =", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdNotEqualTo(Integer value) { + addCriterion("content_resource_id <>", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdGreaterThan(Integer value) { + addCriterion("content_resource_id >", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdGreaterThanOrEqualTo(Integer value) { + addCriterion("content_resource_id >=", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdLessThan(Integer value) { + addCriterion("content_resource_id <", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdLessThanOrEqualTo(Integer value) { + addCriterion("content_resource_id <=", value, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdIn(List values) { + addCriterion("content_resource_id in", values, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdNotIn(List values) { + addCriterion("content_resource_id not in", values, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdBetween(Integer value1, Integer value2) { + addCriterion("content_resource_id between", value1, value2, "contentResourceId"); + return (Criteria) this; + } + + public Criteria andContentResourceIdNotBetween(Integer value1, Integer value2) { + addCriterion("content_resource_id not between", value1, value2, "contentResourceId"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.file_attachments + * + * @mbg.generated do_not_delete_during_merge Sun Sep 29 14:50:53 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDbo.java index af14411..701ebd9 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDbo.java @@ -1,159 +1,159 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; - -public class IpAddressDbo extends AbstractDbo { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.ip_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer ipAddressId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.ip - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String ip; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.ip_v6_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean ipV6Flag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.is_spammer_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean isSpammerFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.ip_address_id - * @return the value of zfgbb.ip_address.ip_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getIpAddressId() { - return ipAddressId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.ip_address_id - * @param ipAddressId the value for zfgbb.ip_address.ip_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setIpAddressId(Integer ipAddressId) { - this.ipAddressId = ipAddressId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.ip - * @return the value of zfgbb.ip_address.ip - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getIp() { - return ip; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.ip - * @param ip the value for zfgbb.ip_address.ip - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setIp(String ip) { - this.ip = ip; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.ip_v6_flag - * @return the value of zfgbb.ip_address.ip_v6_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getIpV6Flag() { - return ipV6Flag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.ip_v6_flag - * @param ipV6Flag the value for zfgbb.ip_address.ip_v6_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setIpV6Flag(Boolean ipV6Flag) { - this.ipV6Flag = ipV6Flag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.is_spammer_flag - * @return the value of zfgbb.ip_address.is_spammer_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getIsSpammerFlag() { - return isSpammerFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.is_spammer_flag - * @param isSpammerFlag the value for zfgbb.ip_address.is_spammer_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setIsSpammerFlag(Boolean isSpammerFlag) { - this.isSpammerFlag = isSpammerFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.created_ts - * @return the value of zfgbb.ip_address.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.created_ts - * @param createdTs the value for zfgbb.ip_address.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.updated_ts - * @return the value of zfgbb.ip_address.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.updated_ts - * @param updatedTs the value for zfgbb.ip_address.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return ipAddressId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class IpAddressDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.ip_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer ipAddressId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.ip + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String ip; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.ip_v6_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Boolean ipV6Flag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.is_spammer_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Boolean isSpammerFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.ip_address.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.ip_address_id + * @return the value of zfgbb.ip_address.ip_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getIpAddressId() { + return ipAddressId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.ip_address_id + * @param ipAddressId the value for zfgbb.ip_address.ip_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setIpAddressId(Integer ipAddressId) { + this.ipAddressId = ipAddressId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.ip + * @return the value of zfgbb.ip_address.ip + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getIp() { + return ip; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.ip + * @param ip the value for zfgbb.ip_address.ip + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setIp(String ip) { + this.ip = ip; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.ip_v6_flag + * @return the value of zfgbb.ip_address.ip_v6_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Boolean getIpV6Flag() { + return ipV6Flag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.ip_v6_flag + * @param ipV6Flag the value for zfgbb.ip_address.ip_v6_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setIpV6Flag(Boolean ipV6Flag) { + this.ipV6Flag = ipV6Flag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.is_spammer_flag + * @return the value of zfgbb.ip_address.is_spammer_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Boolean getIsSpammerFlag() { + return isSpammerFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.is_spammer_flag + * @param isSpammerFlag the value for zfgbb.ip_address.is_spammer_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setIsSpammerFlag(Boolean isSpammerFlag) { + this.isSpammerFlag = isSpammerFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.created_ts + * @return the value of zfgbb.ip_address.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.created_ts + * @param createdTs the value for zfgbb.ip_address.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.ip_address.updated_ts + * @return the value of zfgbb.ip_address.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.ip_address.updated_ts + * @param updatedTs the value for zfgbb.ip_address.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return ipAddressId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDboExample.java index 11a3559..bffc05e 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/IpAddressDboExample.java @@ -1,631 +1,631 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; - -public class IpAddressDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public IpAddressDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andIpAddressIdIsNull() { - addCriterion("ip_address_id is null"); - return (Criteria) this; - } - - public Criteria andIpAddressIdIsNotNull() { - addCriterion("ip_address_id is not null"); - return (Criteria) this; - } - - public Criteria andIpAddressIdEqualTo(Integer value) { - addCriterion("ip_address_id =", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdNotEqualTo(Integer value) { - addCriterion("ip_address_id <>", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdGreaterThan(Integer value) { - addCriterion("ip_address_id >", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdGreaterThanOrEqualTo(Integer value) { - addCriterion("ip_address_id >=", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdLessThan(Integer value) { - addCriterion("ip_address_id <", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdLessThanOrEqualTo(Integer value) { - addCriterion("ip_address_id <=", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdIn(List values) { - addCriterion("ip_address_id in", values, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdNotIn(List values) { - addCriterion("ip_address_id not in", values, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdBetween(Integer value1, Integer value2) { - addCriterion("ip_address_id between", value1, value2, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdNotBetween(Integer value1, Integer value2) { - addCriterion("ip_address_id not between", value1, value2, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpIsNull() { - addCriterion("ip is null"); - return (Criteria) this; - } - - public Criteria andIpIsNotNull() { - addCriterion("ip is not null"); - return (Criteria) this; - } - - public Criteria andIpEqualTo(String value) { - addCriterion("ip =", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotEqualTo(String value) { - addCriterion("ip <>", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThan(String value) { - addCriterion("ip >", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThanOrEqualTo(String value) { - addCriterion("ip >=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThan(String value) { - addCriterion("ip <", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThanOrEqualTo(String value) { - addCriterion("ip <=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLike(String value) { - addCriterion("ip like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotLike(String value) { - addCriterion("ip not like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpIn(List values) { - addCriterion("ip in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotIn(List values) { - addCriterion("ip not in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpBetween(String value1, String value2) { - addCriterion("ip between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotBetween(String value1, String value2) { - addCriterion("ip not between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andIpV6FlagIsNull() { - addCriterion("ip_v6_flag is null"); - return (Criteria) this; - } - - public Criteria andIpV6FlagIsNotNull() { - addCriterion("ip_v6_flag is not null"); - return (Criteria) this; - } - - public Criteria andIpV6FlagEqualTo(Boolean value) { - addCriterion("ip_v6_flag =", value, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagNotEqualTo(Boolean value) { - addCriterion("ip_v6_flag <>", value, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagGreaterThan(Boolean value) { - addCriterion("ip_v6_flag >", value, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("ip_v6_flag >=", value, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagLessThan(Boolean value) { - addCriterion("ip_v6_flag <", value, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagLessThanOrEqualTo(Boolean value) { - addCriterion("ip_v6_flag <=", value, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagIn(List values) { - addCriterion("ip_v6_flag in", values, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagNotIn(List values) { - addCriterion("ip_v6_flag not in", values, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagBetween(Boolean value1, Boolean value2) { - addCriterion("ip_v6_flag between", value1, value2, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIpV6FlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("ip_v6_flag not between", value1, value2, "ipV6Flag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagIsNull() { - addCriterion("is_spammer_flag is null"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagIsNotNull() { - addCriterion("is_spammer_flag is not null"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagEqualTo(Boolean value) { - addCriterion("is_spammer_flag =", value, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagNotEqualTo(Boolean value) { - addCriterion("is_spammer_flag <>", value, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagGreaterThan(Boolean value) { - addCriterion("is_spammer_flag >", value, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("is_spammer_flag >=", value, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagLessThan(Boolean value) { - addCriterion("is_spammer_flag <", value, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagLessThanOrEqualTo(Boolean value) { - addCriterion("is_spammer_flag <=", value, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagIn(List values) { - addCriterion("is_spammer_flag in", values, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagNotIn(List values) { - addCriterion("is_spammer_flag not in", values, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagBetween(Boolean value1, Boolean value2) { - addCriterion("is_spammer_flag between", value1, value2, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andIsSpammerFlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("is_spammer_flag not between", value1, value2, "isSpammerFlag"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.ip_address - * - * @mbg.generated do_not_delete_during_merge Mon Jul 08 22:43:27 EDT 2024 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class IpAddressDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public IpAddressDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andIpAddressIdIsNull() { + addCriterion("ip_address_id is null"); + return (Criteria) this; + } + + public Criteria andIpAddressIdIsNotNull() { + addCriterion("ip_address_id is not null"); + return (Criteria) this; + } + + public Criteria andIpAddressIdEqualTo(Integer value) { + addCriterion("ip_address_id =", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdNotEqualTo(Integer value) { + addCriterion("ip_address_id <>", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdGreaterThan(Integer value) { + addCriterion("ip_address_id >", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdGreaterThanOrEqualTo(Integer value) { + addCriterion("ip_address_id >=", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdLessThan(Integer value) { + addCriterion("ip_address_id <", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdLessThanOrEqualTo(Integer value) { + addCriterion("ip_address_id <=", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdIn(List values) { + addCriterion("ip_address_id in", values, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdNotIn(List values) { + addCriterion("ip_address_id not in", values, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdBetween(Integer value1, Integer value2) { + addCriterion("ip_address_id between", value1, value2, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdNotBetween(Integer value1, Integer value2) { + addCriterion("ip_address_id not between", value1, value2, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpIsNull() { + addCriterion("ip is null"); + return (Criteria) this; + } + + public Criteria andIpIsNotNull() { + addCriterion("ip is not null"); + return (Criteria) this; + } + + public Criteria andIpEqualTo(String value) { + addCriterion("ip =", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotEqualTo(String value) { + addCriterion("ip <>", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpGreaterThan(String value) { + addCriterion("ip >", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpGreaterThanOrEqualTo(String value) { + addCriterion("ip >=", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLessThan(String value) { + addCriterion("ip <", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLessThanOrEqualTo(String value) { + addCriterion("ip <=", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLike(String value) { + addCriterion("ip like", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotLike(String value) { + addCriterion("ip not like", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpIn(List values) { + addCriterion("ip in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotIn(List values) { + addCriterion("ip not in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpBetween(String value1, String value2) { + addCriterion("ip between", value1, value2, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotBetween(String value1, String value2) { + addCriterion("ip not between", value1, value2, "ip"); + return (Criteria) this; + } + + public Criteria andIpV6FlagIsNull() { + addCriterion("ip_v6_flag is null"); + return (Criteria) this; + } + + public Criteria andIpV6FlagIsNotNull() { + addCriterion("ip_v6_flag is not null"); + return (Criteria) this; + } + + public Criteria andIpV6FlagEqualTo(Boolean value) { + addCriterion("ip_v6_flag =", value, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagNotEqualTo(Boolean value) { + addCriterion("ip_v6_flag <>", value, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagGreaterThan(Boolean value) { + addCriterion("ip_v6_flag >", value, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("ip_v6_flag >=", value, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagLessThan(Boolean value) { + addCriterion("ip_v6_flag <", value, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagLessThanOrEqualTo(Boolean value) { + addCriterion("ip_v6_flag <=", value, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagIn(List values) { + addCriterion("ip_v6_flag in", values, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagNotIn(List values) { + addCriterion("ip_v6_flag not in", values, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagBetween(Boolean value1, Boolean value2) { + addCriterion("ip_v6_flag between", value1, value2, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIpV6FlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("ip_v6_flag not between", value1, value2, "ipV6Flag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagIsNull() { + addCriterion("is_spammer_flag is null"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagIsNotNull() { + addCriterion("is_spammer_flag is not null"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagEqualTo(Boolean value) { + addCriterion("is_spammer_flag =", value, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagNotEqualTo(Boolean value) { + addCriterion("is_spammer_flag <>", value, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagGreaterThan(Boolean value) { + addCriterion("is_spammer_flag >", value, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("is_spammer_flag >=", value, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagLessThan(Boolean value) { + addCriterion("is_spammer_flag <", value, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagLessThanOrEqualTo(Boolean value) { + addCriterion("is_spammer_flag <=", value, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagIn(List values) { + addCriterion("is_spammer_flag in", values, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagNotIn(List values) { + addCriterion("is_spammer_flag not in", values, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagBetween(Boolean value1, Boolean value2) { + addCriterion("is_spammer_flag between", value1, value2, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andIsSpammerFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("is_spammer_flag not between", value1, value2, "isSpammerFlag"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.ip_address + * + * @mbg.generated do_not_delete_during_merge Mon Jul 08 22:43:27 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/LatestMessageInThreadViewDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/LatestMessageInThreadViewDbo.java new file mode 100644 index 0000000..0d222de --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/LatestMessageInThreadViewDbo.java @@ -0,0 +1,203 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class LatestMessageInThreadViewDbo { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.latest_message_in_thread_view.thread_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + private Integer threadId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.latest_message_in_thread_view.thread_name + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + private String threadName; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.latest_message_in_thread_view.message_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + private Integer messageId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.latest_message_in_thread_view.message_history_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + private Integer messageHistoryId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.latest_message_in_thread_view.created_ts + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + private LocalDateTime createdTs; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.latest_message_in_thread_view.owner_name + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + private String ownerName; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.latest_message_in_thread_view.thread_id + * + * @return the value of zfgbb.latest_message_in_thread_view.thread_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public Integer getThreadId() { + return threadId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.latest_message_in_thread_view.thread_id + * + * @param threadId the value for zfgbb.latest_message_in_thread_view.thread_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.latest_message_in_thread_view.thread_name + * + * @return the value of zfgbb.latest_message_in_thread_view.thread_name + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public String getThreadName() { + return threadName; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.latest_message_in_thread_view.thread_name + * + * @param threadName the value for zfgbb.latest_message_in_thread_view.thread_name + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setThreadName(String threadName) { + this.threadName = threadName; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.latest_message_in_thread_view.message_id + * + * @return the value of zfgbb.latest_message_in_thread_view.message_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public Integer getMessageId() { + return messageId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.latest_message_in_thread_view.message_id + * + * @param messageId the value for zfgbb.latest_message_in_thread_view.message_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setMessageId(Integer messageId) { + this.messageId = messageId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.latest_message_in_thread_view.message_history_id + * + * @return the value of zfgbb.latest_message_in_thread_view.message_history_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public Integer getMessageHistoryId() { + return messageHistoryId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.latest_message_in_thread_view.message_history_id + * + * @param messageHistoryId the value for zfgbb.latest_message_in_thread_view.message_history_id + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setMessageHistoryId(Integer messageHistoryId) { + this.messageHistoryId = messageHistoryId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.latest_message_in_thread_view.created_ts + * + * @return the value of zfgbb.latest_message_in_thread_view.created_ts + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.latest_message_in_thread_view.created_ts + * + * @param createdTs the value for zfgbb.latest_message_in_thread_view.created_ts + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.latest_message_in_thread_view.owner_name + * + * @return the value of zfgbb.latest_message_in_thread_view.owner_name + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public String getOwnerName() { + return ownerName; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.latest_message_in_thread_view.owner_name + * + * @param ownerName the value for zfgbb.latest_message_in_thread_view.owner_name + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setOwnerName(String ownerName) { + this.ownerName = ownerName; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/LatestMessageInThreadViewDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/LatestMessageInThreadViewDboExample.java new file mode 100644 index 0000000..57b0dc4 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/dbo/LatestMessageInThreadViewDboExample.java @@ -0,0 +1,682 @@ +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class LatestMessageInThreadViewDboExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public LatestMessageInThreadViewDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andThreadIdIsNull() { + addCriterion("thread_id is null"); + return (Criteria) this; + } + + public Criteria andThreadIdIsNotNull() { + addCriterion("thread_id is not null"); + return (Criteria) this; + } + + public Criteria andThreadIdEqualTo(Integer value) { + addCriterion("thread_id =", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotEqualTo(Integer value) { + addCriterion("thread_id <>", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdGreaterThan(Integer value) { + addCriterion("thread_id >", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdGreaterThanOrEqualTo(Integer value) { + addCriterion("thread_id >=", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdLessThan(Integer value) { + addCriterion("thread_id <", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdLessThanOrEqualTo(Integer value) { + addCriterion("thread_id <=", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdIn(List values) { + addCriterion("thread_id in", values, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotIn(List values) { + addCriterion("thread_id not in", values, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdBetween(Integer value1, Integer value2) { + addCriterion("thread_id between", value1, value2, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotBetween(Integer value1, Integer value2) { + addCriterion("thread_id not between", value1, value2, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadNameIsNull() { + addCriterion("thread_name is null"); + return (Criteria) this; + } + + public Criteria andThreadNameIsNotNull() { + addCriterion("thread_name is not null"); + return (Criteria) this; + } + + public Criteria andThreadNameEqualTo(String value) { + addCriterion("thread_name =", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameNotEqualTo(String value) { + addCriterion("thread_name <>", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameGreaterThan(String value) { + addCriterion("thread_name >", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameGreaterThanOrEqualTo(String value) { + addCriterion("thread_name >=", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameLessThan(String value) { + addCriterion("thread_name <", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameLessThanOrEqualTo(String value) { + addCriterion("thread_name <=", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameLike(String value) { + addCriterion("thread_name like", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameNotLike(String value) { + addCriterion("thread_name not like", value, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameIn(List values) { + addCriterion("thread_name in", values, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameNotIn(List values) { + addCriterion("thread_name not in", values, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameBetween(String value1, String value2) { + addCriterion("thread_name between", value1, value2, "threadName"); + return (Criteria) this; + } + + public Criteria andThreadNameNotBetween(String value1, String value2) { + addCriterion("thread_name not between", value1, value2, "threadName"); + return (Criteria) this; + } + + public Criteria andMessageIdIsNull() { + addCriterion("message_id is null"); + return (Criteria) this; + } + + public Criteria andMessageIdIsNotNull() { + addCriterion("message_id is not null"); + return (Criteria) this; + } + + public Criteria andMessageIdEqualTo(Integer value) { + addCriterion("message_id =", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotEqualTo(Integer value) { + addCriterion("message_id <>", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThan(Integer value) { + addCriterion("message_id >", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThanOrEqualTo(Integer value) { + addCriterion("message_id >=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThan(Integer value) { + addCriterion("message_id <", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThanOrEqualTo(Integer value) { + addCriterion("message_id <=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdIn(List values) { + addCriterion("message_id in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotIn(List values) { + addCriterion("message_id not in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdBetween(Integer value1, Integer value2) { + addCriterion("message_id between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotBetween(Integer value1, Integer value2) { + addCriterion("message_id not between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdIsNull() { + addCriterion("message_history_id is null"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdIsNotNull() { + addCriterion("message_history_id is not null"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdEqualTo(Integer value) { + addCriterion("message_history_id =", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdNotEqualTo(Integer value) { + addCriterion("message_history_id <>", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdGreaterThan(Integer value) { + addCriterion("message_history_id >", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdGreaterThanOrEqualTo(Integer value) { + addCriterion("message_history_id >=", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdLessThan(Integer value) { + addCriterion("message_history_id <", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdLessThanOrEqualTo(Integer value) { + addCriterion("message_history_id <=", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdIn(List values) { + addCriterion("message_history_id in", values, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdNotIn(List values) { + addCriterion("message_history_id not in", values, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdBetween(Integer value1, Integer value2) { + addCriterion("message_history_id between", value1, value2, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdNotBetween(Integer value1, Integer value2) { + addCriterion("message_history_id not between", value1, value2, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andOwnerNameIsNull() { + addCriterion("owner_name is null"); + return (Criteria) this; + } + + public Criteria andOwnerNameIsNotNull() { + addCriterion("owner_name is not null"); + return (Criteria) this; + } + + public Criteria andOwnerNameEqualTo(String value) { + addCriterion("owner_name =", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameNotEqualTo(String value) { + addCriterion("owner_name <>", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameGreaterThan(String value) { + addCriterion("owner_name >", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameGreaterThanOrEqualTo(String value) { + addCriterion("owner_name >=", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameLessThan(String value) { + addCriterion("owner_name <", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameLessThanOrEqualTo(String value) { + addCriterion("owner_name <=", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameLike(String value) { + addCriterion("owner_name like", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameNotLike(String value) { + addCriterion("owner_name not like", value, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameIn(List values) { + addCriterion("owner_name in", values, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameNotIn(List values) { + addCriterion("owner_name not in", values, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameBetween(String value1, String value2) { + addCriterion("owner_name between", value1, value2, "ownerName"); + return (Criteria) this; + } + + public Criteria andOwnerNameNotBetween(String value1, String value2) { + addCriterion("owner_name not between", value1, value2, "ownerName"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated do_not_delete_during_merge Tue Oct 08 19:03:12 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/MessageDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/MessageDbo.java index 7b730e1..1ab34fc 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/MessageDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/MessageDbo.java @@ -1,161 +1,161 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class MessageDbo extends AbstractDbo { - - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.message_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer messageId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.owner_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer ownerId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.thread_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer threadId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.post_in_thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer postInThread; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.message_id - * @return the value of zfgbb.message.message_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getMessageId() { - return messageId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.message_id - * @param messageId the value for zfgbb.message.message_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setMessageId(Integer messageId) { - this.messageId = messageId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.owner_id - * @return the value of zfgbb.message.owner_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getOwnerId() { - return ownerId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.owner_id - * @param ownerId the value for zfgbb.message.owner_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOwnerId(Integer ownerId) { - this.ownerId = ownerId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.thread_id - * @return the value of zfgbb.message.thread_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getThreadId() { - return threadId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.thread_id - * @param threadId the value for zfgbb.message.thread_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setThreadId(Integer threadId) { - this.threadId = threadId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.created_ts - * @return the value of zfgbb.message.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.created_ts - * @param createdTs the value for zfgbb.message.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.updated_ts - * @return the value of zfgbb.message.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.updated_ts - * @param updatedTs the value for zfgbb.message.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.post_in_thread - * @return the value of zfgbb.message.post_in_thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getPostInThread() { - return postInThread; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.post_in_thread - * @param postInThread the value for zfgbb.message.post_in_thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setPostInThread(Integer postInThread) { - this.postInThread = postInThread; - } - - @Override - public Integer getPkId() { - return messageId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class MessageDbo extends AbstractDbo { + + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.message_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer messageId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.owner_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer ownerId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.thread_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer threadId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message.post_in_thread + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer postInThread; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.message_id + * @return the value of zfgbb.message.message_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getMessageId() { + return messageId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.message_id + * @param messageId the value for zfgbb.message.message_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setMessageId(Integer messageId) { + this.messageId = messageId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.owner_id + * @return the value of zfgbb.message.owner_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getOwnerId() { + return ownerId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.owner_id + * @param ownerId the value for zfgbb.message.owner_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOwnerId(Integer ownerId) { + this.ownerId = ownerId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.thread_id + * @return the value of zfgbb.message.thread_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getThreadId() { + return threadId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.thread_id + * @param threadId the value for zfgbb.message.thread_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.created_ts + * @return the value of zfgbb.message.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.created_ts + * @param createdTs the value for zfgbb.message.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.updated_ts + * @return the value of zfgbb.message.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.updated_ts + * @param updatedTs the value for zfgbb.message.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message.post_in_thread + * @return the value of zfgbb.message.post_in_thread + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getPostInThread() { + return postInThread; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message.post_in_thread + * @param postInThread the value for zfgbb.message.post_in_thread + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setPostInThread(Integer postInThread) { + this.postInThread = postInThread; + } + + @Override + public Integer getPkId() { + return messageId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/MessageDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/MessageDboExample.java index 959cdcb..c37a62d 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/MessageDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/MessageDboExample.java @@ -1,622 +1,622 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class MessageDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public MessageDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andMessageIdIsNull() { - addCriterion("message_id is null"); - return (Criteria) this; - } - - public Criteria andMessageIdIsNotNull() { - addCriterion("message_id is not null"); - return (Criteria) this; - } - - public Criteria andMessageIdEqualTo(Integer value) { - addCriterion("message_id =", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdNotEqualTo(Integer value) { - addCriterion("message_id <>", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdGreaterThan(Integer value) { - addCriterion("message_id >", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdGreaterThanOrEqualTo(Integer value) { - addCriterion("message_id >=", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdLessThan(Integer value) { - addCriterion("message_id <", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdLessThanOrEqualTo(Integer value) { - addCriterion("message_id <=", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdIn(List values) { - addCriterion("message_id in", values, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdNotIn(List values) { - addCriterion("message_id not in", values, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdBetween(Integer value1, Integer value2) { - addCriterion("message_id between", value1, value2, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdNotBetween(Integer value1, Integer value2) { - addCriterion("message_id not between", value1, value2, "messageId"); - return (Criteria) this; - } - - public Criteria andOwnerIdIsNull() { - addCriterion("owner_id is null"); - return (Criteria) this; - } - - public Criteria andOwnerIdIsNotNull() { - addCriterion("owner_id is not null"); - return (Criteria) this; - } - - public Criteria andOwnerIdEqualTo(Integer value) { - addCriterion("owner_id =", value, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdNotEqualTo(Integer value) { - addCriterion("owner_id <>", value, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdGreaterThan(Integer value) { - addCriterion("owner_id >", value, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdGreaterThanOrEqualTo(Integer value) { - addCriterion("owner_id >=", value, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdLessThan(Integer value) { - addCriterion("owner_id <", value, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdLessThanOrEqualTo(Integer value) { - addCriterion("owner_id <=", value, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdIn(List values) { - addCriterion("owner_id in", values, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdNotIn(List values) { - addCriterion("owner_id not in", values, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdBetween(Integer value1, Integer value2) { - addCriterion("owner_id between", value1, value2, "ownerId"); - return (Criteria) this; - } - - public Criteria andOwnerIdNotBetween(Integer value1, Integer value2) { - addCriterion("owner_id not between", value1, value2, "ownerId"); - return (Criteria) this; - } - - public Criteria andThreadIdIsNull() { - addCriterion("thread_id is null"); - return (Criteria) this; - } - - public Criteria andThreadIdIsNotNull() { - addCriterion("thread_id is not null"); - return (Criteria) this; - } - - public Criteria andThreadIdEqualTo(Integer value) { - addCriterion("thread_id =", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdNotEqualTo(Integer value) { - addCriterion("thread_id <>", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdGreaterThan(Integer value) { - addCriterion("thread_id >", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdGreaterThanOrEqualTo(Integer value) { - addCriterion("thread_id >=", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdLessThan(Integer value) { - addCriterion("thread_id <", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdLessThanOrEqualTo(Integer value) { - addCriterion("thread_id <=", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdIn(List values) { - addCriterion("thread_id in", values, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdNotIn(List values) { - addCriterion("thread_id not in", values, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdBetween(Integer value1, Integer value2) { - addCriterion("thread_id between", value1, value2, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdNotBetween(Integer value1, Integer value2) { - addCriterion("thread_id not between", value1, value2, "threadId"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andPostInThreadIsNull() { - addCriterion("post_in_thread is null"); - return (Criteria) this; - } - - public Criteria andPostInThreadIsNotNull() { - addCriterion("post_in_thread is not null"); - return (Criteria) this; - } - - public Criteria andPostInThreadEqualTo(Integer value) { - addCriterion("post_in_thread =", value, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadNotEqualTo(Integer value) { - addCriterion("post_in_thread <>", value, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadGreaterThan(Integer value) { - addCriterion("post_in_thread >", value, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadGreaterThanOrEqualTo(Integer value) { - addCriterion("post_in_thread >=", value, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadLessThan(Integer value) { - addCriterion("post_in_thread <", value, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadLessThanOrEqualTo(Integer value) { - addCriterion("post_in_thread <=", value, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadIn(List values) { - addCriterion("post_in_thread in", values, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadNotIn(List values) { - addCriterion("post_in_thread not in", values, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadBetween(Integer value1, Integer value2) { - addCriterion("post_in_thread between", value1, value2, "postInThread"); - return (Criteria) this; - } - - public Criteria andPostInThreadNotBetween(Integer value1, Integer value2) { - addCriterion("post_in_thread not between", value1, value2, "postInThread"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.message - * - * @mbg.generated do_not_delete_during_merge Sun Feb 27 20:56:25 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class MessageDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public MessageDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andMessageIdIsNull() { + addCriterion("message_id is null"); + return (Criteria) this; + } + + public Criteria andMessageIdIsNotNull() { + addCriterion("message_id is not null"); + return (Criteria) this; + } + + public Criteria andMessageIdEqualTo(Integer value) { + addCriterion("message_id =", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotEqualTo(Integer value) { + addCriterion("message_id <>", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThan(Integer value) { + addCriterion("message_id >", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThanOrEqualTo(Integer value) { + addCriterion("message_id >=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThan(Integer value) { + addCriterion("message_id <", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThanOrEqualTo(Integer value) { + addCriterion("message_id <=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdIn(List values) { + addCriterion("message_id in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotIn(List values) { + addCriterion("message_id not in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdBetween(Integer value1, Integer value2) { + addCriterion("message_id between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotBetween(Integer value1, Integer value2) { + addCriterion("message_id not between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andOwnerIdIsNull() { + addCriterion("owner_id is null"); + return (Criteria) this; + } + + public Criteria andOwnerIdIsNotNull() { + addCriterion("owner_id is not null"); + return (Criteria) this; + } + + public Criteria andOwnerIdEqualTo(Integer value) { + addCriterion("owner_id =", value, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdNotEqualTo(Integer value) { + addCriterion("owner_id <>", value, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdGreaterThan(Integer value) { + addCriterion("owner_id >", value, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdGreaterThanOrEqualTo(Integer value) { + addCriterion("owner_id >=", value, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdLessThan(Integer value) { + addCriterion("owner_id <", value, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdLessThanOrEqualTo(Integer value) { + addCriterion("owner_id <=", value, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdIn(List values) { + addCriterion("owner_id in", values, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdNotIn(List values) { + addCriterion("owner_id not in", values, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdBetween(Integer value1, Integer value2) { + addCriterion("owner_id between", value1, value2, "ownerId"); + return (Criteria) this; + } + + public Criteria andOwnerIdNotBetween(Integer value1, Integer value2) { + addCriterion("owner_id not between", value1, value2, "ownerId"); + return (Criteria) this; + } + + public Criteria andThreadIdIsNull() { + addCriterion("thread_id is null"); + return (Criteria) this; + } + + public Criteria andThreadIdIsNotNull() { + addCriterion("thread_id is not null"); + return (Criteria) this; + } + + public Criteria andThreadIdEqualTo(Integer value) { + addCriterion("thread_id =", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotEqualTo(Integer value) { + addCriterion("thread_id <>", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdGreaterThan(Integer value) { + addCriterion("thread_id >", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdGreaterThanOrEqualTo(Integer value) { + addCriterion("thread_id >=", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdLessThan(Integer value) { + addCriterion("thread_id <", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdLessThanOrEqualTo(Integer value) { + addCriterion("thread_id <=", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdIn(List values) { + addCriterion("thread_id in", values, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotIn(List values) { + addCriterion("thread_id not in", values, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdBetween(Integer value1, Integer value2) { + addCriterion("thread_id between", value1, value2, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotBetween(Integer value1, Integer value2) { + addCriterion("thread_id not between", value1, value2, "threadId"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andPostInThreadIsNull() { + addCriterion("post_in_thread is null"); + return (Criteria) this; + } + + public Criteria andPostInThreadIsNotNull() { + addCriterion("post_in_thread is not null"); + return (Criteria) this; + } + + public Criteria andPostInThreadEqualTo(Integer value) { + addCriterion("post_in_thread =", value, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadNotEqualTo(Integer value) { + addCriterion("post_in_thread <>", value, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadGreaterThan(Integer value) { + addCriterion("post_in_thread >", value, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadGreaterThanOrEqualTo(Integer value) { + addCriterion("post_in_thread >=", value, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadLessThan(Integer value) { + addCriterion("post_in_thread <", value, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadLessThanOrEqualTo(Integer value) { + addCriterion("post_in_thread <=", value, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadIn(List values) { + addCriterion("post_in_thread in", values, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadNotIn(List values) { + addCriterion("post_in_thread not in", values, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadBetween(Integer value1, Integer value2) { + addCriterion("post_in_thread between", value1, value2, "postInThread"); + return (Criteria) this; + } + + public Criteria andPostInThreadNotBetween(Integer value1, Integer value2) { + addCriterion("post_in_thread not between", value1, value2, "postInThread"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.message + * + * @mbg.generated do_not_delete_during_merge Sun Feb 27 20:56:25 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDbo.java index 418ce91..f57f5be 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDbo.java @@ -1,184 +1,184 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class MessageHistoryDbo extends AbstractDbo{ - - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.message_history_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer messageHistoryId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.message_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer messageId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.message_text - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String messageText; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.current_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean currentFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.ip_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer ipAddressId; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.message_history_id - * @return the value of zfgbb.message_history.message_history_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getMessageHistoryId() { - return messageHistoryId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.message_history_id - * @param messageHistoryId the value for zfgbb.message_history.message_history_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setMessageHistoryId(Integer messageHistoryId) { - this.messageHistoryId = messageHistoryId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.message_id - * @return the value of zfgbb.message_history.message_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getMessageId() { - return messageId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.message_id - * @param messageId the value for zfgbb.message_history.message_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setMessageId(Integer messageId) { - this.messageId = messageId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.message_text - * @return the value of zfgbb.message_history.message_text - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getMessageText() { - return messageText; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.message_text - * @param messageText the value for zfgbb.message_history.message_text - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setMessageText(String messageText) { - this.messageText = messageText; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.current_flag - * @return the value of zfgbb.message_history.current_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getCurrentFlag() { - return currentFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.current_flag - * @param currentFlag the value for zfgbb.message_history.current_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCurrentFlag(Boolean currentFlag) { - this.currentFlag = currentFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.created_ts - * @return the value of zfgbb.message_history.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.created_ts - * @param createdTs the value for zfgbb.message_history.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.updated_ts - * @return the value of zfgbb.message_history.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.updated_ts - * @param updatedTs the value for zfgbb.message_history.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.ip_address_id - * @return the value of zfgbb.message_history.ip_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getIpAddressId() { - return ipAddressId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.ip_address_id - * @param ipAddressId the value for zfgbb.message_history.ip_address_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setIpAddressId(Integer ipAddressId) { - this.ipAddressId = ipAddressId; - } - - @Override - public Integer getPkId() { - return messageHistoryId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class MessageHistoryDbo extends AbstractDbo{ + + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.message_history_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer messageHistoryId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.message_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer messageId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.message_text + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String messageText; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.current_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Boolean currentFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.message_history.ip_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer ipAddressId; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.message_history_id + * @return the value of zfgbb.message_history.message_history_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getMessageHistoryId() { + return messageHistoryId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.message_history_id + * @param messageHistoryId the value for zfgbb.message_history.message_history_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setMessageHistoryId(Integer messageHistoryId) { + this.messageHistoryId = messageHistoryId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.message_id + * @return the value of zfgbb.message_history.message_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getMessageId() { + return messageId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.message_id + * @param messageId the value for zfgbb.message_history.message_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setMessageId(Integer messageId) { + this.messageId = messageId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.message_text + * @return the value of zfgbb.message_history.message_text + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getMessageText() { + return messageText; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.message_text + * @param messageText the value for zfgbb.message_history.message_text + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setMessageText(String messageText) { + this.messageText = messageText; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.current_flag + * @return the value of zfgbb.message_history.current_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Boolean getCurrentFlag() { + return currentFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.current_flag + * @param currentFlag the value for zfgbb.message_history.current_flag + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCurrentFlag(Boolean currentFlag) { + this.currentFlag = currentFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.created_ts + * @return the value of zfgbb.message_history.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.created_ts + * @param createdTs the value for zfgbb.message_history.created_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.updated_ts + * @return the value of zfgbb.message_history.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.updated_ts + * @param updatedTs the value for zfgbb.message_history.updated_ts + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.message_history.ip_address_id + * @return the value of zfgbb.message_history.ip_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getIpAddressId() { + return ipAddressId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.message_history.ip_address_id + * @param ipAddressId the value for zfgbb.message_history.ip_address_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setIpAddressId(Integer ipAddressId) { + this.ipAddressId = ipAddressId; + } + + @Override + public Integer getPkId() { + return messageHistoryId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDboExample.java index 6c52625..222594c 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/MessageHistoryDboExample.java @@ -1,692 +1,692 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class MessageHistoryDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public MessageHistoryDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andMessageHistoryIdIsNull() { - addCriterion("message_history_id is null"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdIsNotNull() { - addCriterion("message_history_id is not null"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdEqualTo(Integer value) { - addCriterion("message_history_id =", value, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdNotEqualTo(Integer value) { - addCriterion("message_history_id <>", value, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdGreaterThan(Integer value) { - addCriterion("message_history_id >", value, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdGreaterThanOrEqualTo(Integer value) { - addCriterion("message_history_id >=", value, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdLessThan(Integer value) { - addCriterion("message_history_id <", value, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdLessThanOrEqualTo(Integer value) { - addCriterion("message_history_id <=", value, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdIn(List values) { - addCriterion("message_history_id in", values, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdNotIn(List values) { - addCriterion("message_history_id not in", values, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdBetween(Integer value1, Integer value2) { - addCriterion("message_history_id between", value1, value2, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageHistoryIdNotBetween(Integer value1, Integer value2) { - addCriterion("message_history_id not between", value1, value2, "messageHistoryId"); - return (Criteria) this; - } - - public Criteria andMessageIdIsNull() { - addCriterion("message_id is null"); - return (Criteria) this; - } - - public Criteria andMessageIdIsNotNull() { - addCriterion("message_id is not null"); - return (Criteria) this; - } - - public Criteria andMessageIdEqualTo(Integer value) { - addCriterion("message_id =", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdNotEqualTo(Integer value) { - addCriterion("message_id <>", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdGreaterThan(Integer value) { - addCriterion("message_id >", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdGreaterThanOrEqualTo(Integer value) { - addCriterion("message_id >=", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdLessThan(Integer value) { - addCriterion("message_id <", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdLessThanOrEqualTo(Integer value) { - addCriterion("message_id <=", value, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdIn(List values) { - addCriterion("message_id in", values, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdNotIn(List values) { - addCriterion("message_id not in", values, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdBetween(Integer value1, Integer value2) { - addCriterion("message_id between", value1, value2, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageIdNotBetween(Integer value1, Integer value2) { - addCriterion("message_id not between", value1, value2, "messageId"); - return (Criteria) this; - } - - public Criteria andMessageTextIsNull() { - addCriterion("message_text is null"); - return (Criteria) this; - } - - public Criteria andMessageTextIsNotNull() { - addCriterion("message_text is not null"); - return (Criteria) this; - } - - public Criteria andMessageTextEqualTo(String value) { - addCriterion("message_text =", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextNotEqualTo(String value) { - addCriterion("message_text <>", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextGreaterThan(String value) { - addCriterion("message_text >", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextGreaterThanOrEqualTo(String value) { - addCriterion("message_text >=", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextLessThan(String value) { - addCriterion("message_text <", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextLessThanOrEqualTo(String value) { - addCriterion("message_text <=", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextLike(String value) { - addCriterion("message_text like", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextNotLike(String value) { - addCriterion("message_text not like", value, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextIn(List values) { - addCriterion("message_text in", values, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextNotIn(List values) { - addCriterion("message_text not in", values, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextBetween(String value1, String value2) { - addCriterion("message_text between", value1, value2, "messageText"); - return (Criteria) this; - } - - public Criteria andMessageTextNotBetween(String value1, String value2) { - addCriterion("message_text not between", value1, value2, "messageText"); - return (Criteria) this; - } - - public Criteria andCurrentFlagIsNull() { - addCriterion("current_flag is null"); - return (Criteria) this; - } - - public Criteria andCurrentFlagIsNotNull() { - addCriterion("current_flag is not null"); - return (Criteria) this; - } - - public Criteria andCurrentFlagEqualTo(Boolean value) { - addCriterion("current_flag =", value, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagNotEqualTo(Boolean value) { - addCriterion("current_flag <>", value, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagGreaterThan(Boolean value) { - addCriterion("current_flag >", value, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("current_flag >=", value, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagLessThan(Boolean value) { - addCriterion("current_flag <", value, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagLessThanOrEqualTo(Boolean value) { - addCriterion("current_flag <=", value, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagIn(List values) { - addCriterion("current_flag in", values, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagNotIn(List values) { - addCriterion("current_flag not in", values, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagBetween(Boolean value1, Boolean value2) { - addCriterion("current_flag between", value1, value2, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCurrentFlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("current_flag not between", value1, value2, "currentFlag"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andIpAddressIdIsNull() { - addCriterion("ip_address_id is null"); - return (Criteria) this; - } - - public Criteria andIpAddressIdIsNotNull() { - addCriterion("ip_address_id is not null"); - return (Criteria) this; - } - - public Criteria andIpAddressIdEqualTo(Integer value) { - addCriterion("ip_address_id =", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdNotEqualTo(Integer value) { - addCriterion("ip_address_id <>", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdGreaterThan(Integer value) { - addCriterion("ip_address_id >", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdGreaterThanOrEqualTo(Integer value) { - addCriterion("ip_address_id >=", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdLessThan(Integer value) { - addCriterion("ip_address_id <", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdLessThanOrEqualTo(Integer value) { - addCriterion("ip_address_id <=", value, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdIn(List values) { - addCriterion("ip_address_id in", values, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdNotIn(List values) { - addCriterion("ip_address_id not in", values, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdBetween(Integer value1, Integer value2) { - addCriterion("ip_address_id between", value1, value2, "ipAddressId"); - return (Criteria) this; - } - - public Criteria andIpAddressIdNotBetween(Integer value1, Integer value2) { - addCriterion("ip_address_id not between", value1, value2, "ipAddressId"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.message_history - * - * @mbg.generated do_not_delete_during_merge Sun Feb 27 20:56:25 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class MessageHistoryDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public MessageHistoryDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andMessageHistoryIdIsNull() { + addCriterion("message_history_id is null"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdIsNotNull() { + addCriterion("message_history_id is not null"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdEqualTo(Integer value) { + addCriterion("message_history_id =", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdNotEqualTo(Integer value) { + addCriterion("message_history_id <>", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdGreaterThan(Integer value) { + addCriterion("message_history_id >", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdGreaterThanOrEqualTo(Integer value) { + addCriterion("message_history_id >=", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdLessThan(Integer value) { + addCriterion("message_history_id <", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdLessThanOrEqualTo(Integer value) { + addCriterion("message_history_id <=", value, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdIn(List values) { + addCriterion("message_history_id in", values, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdNotIn(List values) { + addCriterion("message_history_id not in", values, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdBetween(Integer value1, Integer value2) { + addCriterion("message_history_id between", value1, value2, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageHistoryIdNotBetween(Integer value1, Integer value2) { + addCriterion("message_history_id not between", value1, value2, "messageHistoryId"); + return (Criteria) this; + } + + public Criteria andMessageIdIsNull() { + addCriterion("message_id is null"); + return (Criteria) this; + } + + public Criteria andMessageIdIsNotNull() { + addCriterion("message_id is not null"); + return (Criteria) this; + } + + public Criteria andMessageIdEqualTo(Integer value) { + addCriterion("message_id =", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotEqualTo(Integer value) { + addCriterion("message_id <>", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThan(Integer value) { + addCriterion("message_id >", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdGreaterThanOrEqualTo(Integer value) { + addCriterion("message_id >=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThan(Integer value) { + addCriterion("message_id <", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdLessThanOrEqualTo(Integer value) { + addCriterion("message_id <=", value, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdIn(List values) { + addCriterion("message_id in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotIn(List values) { + addCriterion("message_id not in", values, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdBetween(Integer value1, Integer value2) { + addCriterion("message_id between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageIdNotBetween(Integer value1, Integer value2) { + addCriterion("message_id not between", value1, value2, "messageId"); + return (Criteria) this; + } + + public Criteria andMessageTextIsNull() { + addCriterion("message_text is null"); + return (Criteria) this; + } + + public Criteria andMessageTextIsNotNull() { + addCriterion("message_text is not null"); + return (Criteria) this; + } + + public Criteria andMessageTextEqualTo(String value) { + addCriterion("message_text =", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextNotEqualTo(String value) { + addCriterion("message_text <>", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextGreaterThan(String value) { + addCriterion("message_text >", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextGreaterThanOrEqualTo(String value) { + addCriterion("message_text >=", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextLessThan(String value) { + addCriterion("message_text <", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextLessThanOrEqualTo(String value) { + addCriterion("message_text <=", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextLike(String value) { + addCriterion("message_text like", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextNotLike(String value) { + addCriterion("message_text not like", value, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextIn(List values) { + addCriterion("message_text in", values, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextNotIn(List values) { + addCriterion("message_text not in", values, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextBetween(String value1, String value2) { + addCriterion("message_text between", value1, value2, "messageText"); + return (Criteria) this; + } + + public Criteria andMessageTextNotBetween(String value1, String value2) { + addCriterion("message_text not between", value1, value2, "messageText"); + return (Criteria) this; + } + + public Criteria andCurrentFlagIsNull() { + addCriterion("current_flag is null"); + return (Criteria) this; + } + + public Criteria andCurrentFlagIsNotNull() { + addCriterion("current_flag is not null"); + return (Criteria) this; + } + + public Criteria andCurrentFlagEqualTo(Boolean value) { + addCriterion("current_flag =", value, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagNotEqualTo(Boolean value) { + addCriterion("current_flag <>", value, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagGreaterThan(Boolean value) { + addCriterion("current_flag >", value, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("current_flag >=", value, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagLessThan(Boolean value) { + addCriterion("current_flag <", value, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagLessThanOrEqualTo(Boolean value) { + addCriterion("current_flag <=", value, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagIn(List values) { + addCriterion("current_flag in", values, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagNotIn(List values) { + addCriterion("current_flag not in", values, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagBetween(Boolean value1, Boolean value2) { + addCriterion("current_flag between", value1, value2, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCurrentFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("current_flag not between", value1, value2, "currentFlag"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andIpAddressIdIsNull() { + addCriterion("ip_address_id is null"); + return (Criteria) this; + } + + public Criteria andIpAddressIdIsNotNull() { + addCriterion("ip_address_id is not null"); + return (Criteria) this; + } + + public Criteria andIpAddressIdEqualTo(Integer value) { + addCriterion("ip_address_id =", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdNotEqualTo(Integer value) { + addCriterion("ip_address_id <>", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdGreaterThan(Integer value) { + addCriterion("ip_address_id >", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdGreaterThanOrEqualTo(Integer value) { + addCriterion("ip_address_id >=", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdLessThan(Integer value) { + addCriterion("ip_address_id <", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdLessThanOrEqualTo(Integer value) { + addCriterion("ip_address_id <=", value, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdIn(List values) { + addCriterion("ip_address_id in", values, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdNotIn(List values) { + addCriterion("ip_address_id not in", values, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdBetween(Integer value1, Integer value2) { + addCriterion("ip_address_id between", value1, value2, "ipAddressId"); + return (Criteria) this; + } + + public Criteria andIpAddressIdNotBetween(Integer value1, Integer value2) { + addCriterion("ip_address_id not between", value1, value2, "ipAddressId"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.message_history + * + * @mbg.generated do_not_delete_during_merge Sun Feb 27 20:56:25 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/PollDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/PollDbo.java index bcfb38c..eae8ea2 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/PollDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/PollDbo.java @@ -1,185 +1,344 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; - -public class PollDbo extends AbstractDbo { - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll.poll_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private Integer pollId; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private String pollQuestion; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll.thread_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private Integer threadId; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll.created_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private LocalDateTime createdTs; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll.updated_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll.poll_id - * - * @return the value of zfgbb.poll.poll_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Integer getPollId() { - return pollId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll.poll_id - * - * @param pollId the value for zfgbb.poll.poll_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setPollId(Integer pollId) { - this.pollId = pollId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll.poll_question - * - * @return the value of zfgbb.poll.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public String getPollQuestion() { - return pollQuestion; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll.poll_question - * - * @param pollQuestion the value for zfgbb.poll.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setPollQuestion(String pollQuestion) { - this.pollQuestion = pollQuestion; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll.thread_id - * - * @return the value of zfgbb.poll.thread_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Integer getThreadId() { - return threadId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll.thread_id - * - * @param threadId the value for zfgbb.poll.thread_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setThreadId(Integer threadId) { - this.threadId = threadId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll.created_ts - * - * @return the value of zfgbb.poll.created_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll.created_ts - * - * @param createdTs the value for zfgbb.poll.created_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll.updated_ts - * - * @return the value of zfgbb.poll.updated_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll.updated_ts - * - * @param updatedTs the value for zfgbb.poll.updated_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return pollId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.Date; + +public class PollDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.poll_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer pollId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.poll_question + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private String pollQuestion; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.thread_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer threadId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.created_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.updated_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.voting_locked_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Boolean votingLockedFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.max_votes + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Boolean maxVotes; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.expire_time + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Date expireTime; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.hide_results_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Boolean hideResultsFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.change_vote_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Boolean changeVoteFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.created_user_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer createdUserId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.guest_vote_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Boolean guestVoteFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.guest_vote_count + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer guestVoteCount; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.poll.reset_poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer resetPoll; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.poll_id + * @return the value of zfgbb.poll.poll_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getPollId() { + return pollId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.poll_id + * @param pollId the value for zfgbb.poll.poll_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setPollId(Integer pollId) { + this.pollId = pollId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.poll_question + * @return the value of zfgbb.poll.poll_question + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public String getPollQuestion() { + return pollQuestion; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.poll_question + * @param pollQuestion the value for zfgbb.poll.poll_question + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setPollQuestion(String pollQuestion) { + this.pollQuestion = pollQuestion; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.thread_id + * @return the value of zfgbb.poll.thread_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getThreadId() { + return threadId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.thread_id + * @param threadId the value for zfgbb.poll.thread_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.created_ts + * @return the value of zfgbb.poll.created_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.created_ts + * @param createdTs the value for zfgbb.poll.created_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.updated_ts + * @return the value of zfgbb.poll.updated_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.updated_ts + * @param updatedTs the value for zfgbb.poll.updated_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.voting_locked_flag + * @return the value of zfgbb.poll.voting_locked_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Boolean getVotingLockedFlag() { + return votingLockedFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.voting_locked_flag + * @param votingLockedFlag the value for zfgbb.poll.voting_locked_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setVotingLockedFlag(Boolean votingLockedFlag) { + this.votingLockedFlag = votingLockedFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.max_votes + * @return the value of zfgbb.poll.max_votes + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Boolean getMaxVotes() { + return maxVotes; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.max_votes + * @param maxVotes the value for zfgbb.poll.max_votes + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setMaxVotes(Boolean maxVotes) { + this.maxVotes = maxVotes; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.expire_time + * @return the value of zfgbb.poll.expire_time + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Date getExpireTime() { + return expireTime; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.expire_time + * @param expireTime the value for zfgbb.poll.expire_time + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setExpireTime(Date expireTime) { + this.expireTime = expireTime; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.hide_results_flag + * @return the value of zfgbb.poll.hide_results_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Boolean getHideResultsFlag() { + return hideResultsFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.hide_results_flag + * @param hideResultsFlag the value for zfgbb.poll.hide_results_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setHideResultsFlag(Boolean hideResultsFlag) { + this.hideResultsFlag = hideResultsFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.change_vote_flag + * @return the value of zfgbb.poll.change_vote_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Boolean getChangeVoteFlag() { + return changeVoteFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.change_vote_flag + * @param changeVoteFlag the value for zfgbb.poll.change_vote_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setChangeVoteFlag(Boolean changeVoteFlag) { + this.changeVoteFlag = changeVoteFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.created_user_id + * @return the value of zfgbb.poll.created_user_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getCreatedUserId() { + return createdUserId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.created_user_id + * @param createdUserId the value for zfgbb.poll.created_user_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setCreatedUserId(Integer createdUserId) { + this.createdUserId = createdUserId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.guest_vote_flag + * @return the value of zfgbb.poll.guest_vote_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Boolean getGuestVoteFlag() { + return guestVoteFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.guest_vote_flag + * @param guestVoteFlag the value for zfgbb.poll.guest_vote_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setGuestVoteFlag(Boolean guestVoteFlag) { + this.guestVoteFlag = guestVoteFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.guest_vote_count + * @return the value of zfgbb.poll.guest_vote_count + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getGuestVoteCount() { + return guestVoteCount; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.guest_vote_count + * @param guestVoteCount the value for zfgbb.poll.guest_vote_count + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setGuestVoteCount(Integer guestVoteCount) { + this.guestVoteCount = guestVoteCount; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.poll.reset_poll + * @return the value of zfgbb.poll.reset_poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getResetPoll() { + return resetPoll; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.poll.reset_poll + * @param resetPoll the value for zfgbb.poll.reset_poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setResetPoll(Integer resetPoll) { + this.resetPoll = resetPoll; + } + + @Override + public Integer getPkId() { + return pollId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/PollDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/PollDboExample.java index e6677e7..7603444 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/PollDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/PollDboExample.java @@ -1,612 +1,1112 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; - -public class PollDboExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public PollDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andPollIdIsNull() { - addCriterion("poll_id is null"); - return (Criteria) this; - } - - public Criteria andPollIdIsNotNull() { - addCriterion("poll_id is not null"); - return (Criteria) this; - } - - public Criteria andPollIdEqualTo(Integer value) { - addCriterion("poll_id =", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdNotEqualTo(Integer value) { - addCriterion("poll_id <>", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdGreaterThan(Integer value) { - addCriterion("poll_id >", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdGreaterThanOrEqualTo(Integer value) { - addCriterion("poll_id >=", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdLessThan(Integer value) { - addCriterion("poll_id <", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdLessThanOrEqualTo(Integer value) { - addCriterion("poll_id <=", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdIn(List values) { - addCriterion("poll_id in", values, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdNotIn(List values) { - addCriterion("poll_id not in", values, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdBetween(Integer value1, Integer value2) { - addCriterion("poll_id between", value1, value2, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdNotBetween(Integer value1, Integer value2) { - addCriterion("poll_id not between", value1, value2, "pollId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIsNull() { - addCriterion("poll_question is null"); - return (Criteria) this; - } - - public Criteria andPollQuestionIsNotNull() { - addCriterion("poll_question is not null"); - return (Criteria) this; - } - - public Criteria andPollQuestionEqualTo(String value) { - addCriterion("poll_question =", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionNotEqualTo(String value) { - addCriterion("poll_question <>", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionGreaterThan(String value) { - addCriterion("poll_question >", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionGreaterThanOrEqualTo(String value) { - addCriterion("poll_question >=", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionLessThan(String value) { - addCriterion("poll_question <", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionLessThanOrEqualTo(String value) { - addCriterion("poll_question <=", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionLike(String value) { - addCriterion("poll_question like", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionNotLike(String value) { - addCriterion("poll_question not like", value, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionIn(List values) { - addCriterion("poll_question in", values, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionNotIn(List values) { - addCriterion("poll_question not in", values, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionBetween(String value1, String value2) { - addCriterion("poll_question between", value1, value2, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andPollQuestionNotBetween(String value1, String value2) { - addCriterion("poll_question not between", value1, value2, "pollQuestion"); - return (Criteria) this; - } - - public Criteria andThreadIdIsNull() { - addCriterion("thread_id is null"); - return (Criteria) this; - } - - public Criteria andThreadIdIsNotNull() { - addCriterion("thread_id is not null"); - return (Criteria) this; - } - - public Criteria andThreadIdEqualTo(Integer value) { - addCriterion("thread_id =", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdNotEqualTo(Integer value) { - addCriterion("thread_id <>", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdGreaterThan(Integer value) { - addCriterion("thread_id >", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdGreaterThanOrEqualTo(Integer value) { - addCriterion("thread_id >=", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdLessThan(Integer value) { - addCriterion("thread_id <", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdLessThanOrEqualTo(Integer value) { - addCriterion("thread_id <=", value, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdIn(List values) { - addCriterion("thread_id in", values, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdNotIn(List values) { - addCriterion("thread_id not in", values, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdBetween(Integer value1, Integer value2) { - addCriterion("thread_id between", value1, value2, "threadId"); - return (Criteria) this; - } - - public Criteria andThreadIdNotBetween(Integer value1, Integer value2) { - addCriterion("thread_id not between", value1, value2, "threadId"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.poll - * - * @mbg.generated do_not_delete_during_merge Sun Sep 01 00:50:50 EDT 2024 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - 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); - } - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Date; + +public class PollDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public PollDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andPollIdIsNull() { + addCriterion("poll_id is null"); + return (Criteria) this; + } + + public Criteria andPollIdIsNotNull() { + addCriterion("poll_id is not null"); + return (Criteria) this; + } + + public Criteria andPollIdEqualTo(Integer value) { + addCriterion("poll_id =", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdNotEqualTo(Integer value) { + addCriterion("poll_id <>", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdGreaterThan(Integer value) { + addCriterion("poll_id >", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdGreaterThanOrEqualTo(Integer value) { + addCriterion("poll_id >=", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdLessThan(Integer value) { + addCriterion("poll_id <", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdLessThanOrEqualTo(Integer value) { + addCriterion("poll_id <=", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdIn(List values) { + addCriterion("poll_id in", values, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdNotIn(List values) { + addCriterion("poll_id not in", values, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdBetween(Integer value1, Integer value2) { + addCriterion("poll_id between", value1, value2, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdNotBetween(Integer value1, Integer value2) { + addCriterion("poll_id not between", value1, value2, "pollId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIsNull() { + addCriterion("poll_question is null"); + return (Criteria) this; + } + + public Criteria andPollQuestionIsNotNull() { + addCriterion("poll_question is not null"); + return (Criteria) this; + } + + public Criteria andPollQuestionEqualTo(String value) { + addCriterion("poll_question =", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionNotEqualTo(String value) { + addCriterion("poll_question <>", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionGreaterThan(String value) { + addCriterion("poll_question >", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionGreaterThanOrEqualTo(String value) { + addCriterion("poll_question >=", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionLessThan(String value) { + addCriterion("poll_question <", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionLessThanOrEqualTo(String value) { + addCriterion("poll_question <=", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionLike(String value) { + addCriterion("poll_question like", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionNotLike(String value) { + addCriterion("poll_question not like", value, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionIn(List values) { + addCriterion("poll_question in", values, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionNotIn(List values) { + addCriterion("poll_question not in", values, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionBetween(String value1, String value2) { + addCriterion("poll_question between", value1, value2, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andPollQuestionNotBetween(String value1, String value2) { + addCriterion("poll_question not between", value1, value2, "pollQuestion"); + return (Criteria) this; + } + + public Criteria andThreadIdIsNull() { + addCriterion("thread_id is null"); + return (Criteria) this; + } + + public Criteria andThreadIdIsNotNull() { + addCriterion("thread_id is not null"); + return (Criteria) this; + } + + public Criteria andThreadIdEqualTo(Integer value) { + addCriterion("thread_id =", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotEqualTo(Integer value) { + addCriterion("thread_id <>", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdGreaterThan(Integer value) { + addCriterion("thread_id >", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdGreaterThanOrEqualTo(Integer value) { + addCriterion("thread_id >=", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdLessThan(Integer value) { + addCriterion("thread_id <", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdLessThanOrEqualTo(Integer value) { + addCriterion("thread_id <=", value, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdIn(List values) { + addCriterion("thread_id in", values, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotIn(List values) { + addCriterion("thread_id not in", values, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdBetween(Integer value1, Integer value2) { + addCriterion("thread_id between", value1, value2, "threadId"); + return (Criteria) this; + } + + public Criteria andThreadIdNotBetween(Integer value1, Integer value2) { + addCriterion("thread_id not between", value1, value2, "threadId"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagIsNull() { + addCriterion("voting_locked_flag is null"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagIsNotNull() { + addCriterion("voting_locked_flag is not null"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagEqualTo(Boolean value) { + addCriterion("voting_locked_flag =", value, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagNotEqualTo(Boolean value) { + addCriterion("voting_locked_flag <>", value, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagGreaterThan(Boolean value) { + addCriterion("voting_locked_flag >", value, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("voting_locked_flag >=", value, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagLessThan(Boolean value) { + addCriterion("voting_locked_flag <", value, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagLessThanOrEqualTo(Boolean value) { + addCriterion("voting_locked_flag <=", value, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagIn(List values) { + addCriterion("voting_locked_flag in", values, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagNotIn(List values) { + addCriterion("voting_locked_flag not in", values, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagBetween(Boolean value1, Boolean value2) { + addCriterion("voting_locked_flag between", value1, value2, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andVotingLockedFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("voting_locked_flag not between", value1, value2, "votingLockedFlag"); + return (Criteria) this; + } + + public Criteria andMaxVotesIsNull() { + addCriterion("max_votes is null"); + return (Criteria) this; + } + + public Criteria andMaxVotesIsNotNull() { + addCriterion("max_votes is not null"); + return (Criteria) this; + } + + public Criteria andMaxVotesEqualTo(Boolean value) { + addCriterion("max_votes =", value, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesNotEqualTo(Boolean value) { + addCriterion("max_votes <>", value, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesGreaterThan(Boolean value) { + addCriterion("max_votes >", value, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesGreaterThanOrEqualTo(Boolean value) { + addCriterion("max_votes >=", value, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesLessThan(Boolean value) { + addCriterion("max_votes <", value, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesLessThanOrEqualTo(Boolean value) { + addCriterion("max_votes <=", value, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesIn(List values) { + addCriterion("max_votes in", values, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesNotIn(List values) { + addCriterion("max_votes not in", values, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesBetween(Boolean value1, Boolean value2) { + addCriterion("max_votes between", value1, value2, "maxVotes"); + return (Criteria) this; + } + + public Criteria andMaxVotesNotBetween(Boolean value1, Boolean value2) { + addCriterion("max_votes not between", value1, value2, "maxVotes"); + return (Criteria) this; + } + + public Criteria andExpireTimeIsNull() { + addCriterion("expire_time is null"); + return (Criteria) this; + } + + public Criteria andExpireTimeIsNotNull() { + addCriterion("expire_time is not null"); + return (Criteria) this; + } + + public Criteria andExpireTimeEqualTo(Date value) { + addCriterion("expire_time =", value, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeNotEqualTo(Date value) { + addCriterion("expire_time <>", value, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeGreaterThan(Date value) { + addCriterion("expire_time >", value, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeGreaterThanOrEqualTo(Date value) { + addCriterion("expire_time >=", value, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeLessThan(Date value) { + addCriterion("expire_time <", value, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeLessThanOrEqualTo(Date value) { + addCriterion("expire_time <=", value, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeIn(List values) { + addCriterion("expire_time in", values, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeNotIn(List values) { + addCriterion("expire_time not in", values, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeBetween(Date value1, Date value2) { + addCriterion("expire_time between", value1, value2, "expireTime"); + return (Criteria) this; + } + + public Criteria andExpireTimeNotBetween(Date value1, Date value2) { + addCriterion("expire_time not between", value1, value2, "expireTime"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagIsNull() { + addCriterion("hide_results_flag is null"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagIsNotNull() { + addCriterion("hide_results_flag is not null"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagEqualTo(Boolean value) { + addCriterion("hide_results_flag =", value, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagNotEqualTo(Boolean value) { + addCriterion("hide_results_flag <>", value, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagGreaterThan(Boolean value) { + addCriterion("hide_results_flag >", value, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("hide_results_flag >=", value, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagLessThan(Boolean value) { + addCriterion("hide_results_flag <", value, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagLessThanOrEqualTo(Boolean value) { + addCriterion("hide_results_flag <=", value, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagIn(List values) { + addCriterion("hide_results_flag in", values, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagNotIn(List values) { + addCriterion("hide_results_flag not in", values, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagBetween(Boolean value1, Boolean value2) { + addCriterion("hide_results_flag between", value1, value2, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andHideResultsFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("hide_results_flag not between", value1, value2, "hideResultsFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagIsNull() { + addCriterion("change_vote_flag is null"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagIsNotNull() { + addCriterion("change_vote_flag is not null"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagEqualTo(Boolean value) { + addCriterion("change_vote_flag =", value, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagNotEqualTo(Boolean value) { + addCriterion("change_vote_flag <>", value, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagGreaterThan(Boolean value) { + addCriterion("change_vote_flag >", value, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("change_vote_flag >=", value, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagLessThan(Boolean value) { + addCriterion("change_vote_flag <", value, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagLessThanOrEqualTo(Boolean value) { + addCriterion("change_vote_flag <=", value, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagIn(List values) { + addCriterion("change_vote_flag in", values, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagNotIn(List values) { + addCriterion("change_vote_flag not in", values, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagBetween(Boolean value1, Boolean value2) { + addCriterion("change_vote_flag between", value1, value2, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andChangeVoteFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("change_vote_flag not between", value1, value2, "changeVoteFlag"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNull() { + addCriterion("created_user_id is null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNotNull() { + addCriterion("created_user_id is not null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdEqualTo(Integer value) { + addCriterion("created_user_id =", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotEqualTo(Integer value) { + addCriterion("created_user_id <>", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThan(Integer value) { + addCriterion("created_user_id >", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("created_user_id >=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThan(Integer value) { + addCriterion("created_user_id <", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThanOrEqualTo(Integer value) { + addCriterion("created_user_id <=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIn(List values) { + addCriterion("created_user_id in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotIn(List values) { + addCriterion("created_user_id not in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdBetween(Integer value1, Integer value2) { + addCriterion("created_user_id between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("created_user_id not between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagIsNull() { + addCriterion("guest_vote_flag is null"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagIsNotNull() { + addCriterion("guest_vote_flag is not null"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagEqualTo(Boolean value) { + addCriterion("guest_vote_flag =", value, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagNotEqualTo(Boolean value) { + addCriterion("guest_vote_flag <>", value, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagGreaterThan(Boolean value) { + addCriterion("guest_vote_flag >", value, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("guest_vote_flag >=", value, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagLessThan(Boolean value) { + addCriterion("guest_vote_flag <", value, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagLessThanOrEqualTo(Boolean value) { + addCriterion("guest_vote_flag <=", value, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagIn(List values) { + addCriterion("guest_vote_flag in", values, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagNotIn(List values) { + addCriterion("guest_vote_flag not in", values, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagBetween(Boolean value1, Boolean value2) { + addCriterion("guest_vote_flag between", value1, value2, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("guest_vote_flag not between", value1, value2, "guestVoteFlag"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountIsNull() { + addCriterion("guest_vote_count is null"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountIsNotNull() { + addCriterion("guest_vote_count is not null"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountEqualTo(Integer value) { + addCriterion("guest_vote_count =", value, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountNotEqualTo(Integer value) { + addCriterion("guest_vote_count <>", value, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountGreaterThan(Integer value) { + addCriterion("guest_vote_count >", value, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountGreaterThanOrEqualTo(Integer value) { + addCriterion("guest_vote_count >=", value, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountLessThan(Integer value) { + addCriterion("guest_vote_count <", value, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountLessThanOrEqualTo(Integer value) { + addCriterion("guest_vote_count <=", value, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountIn(List values) { + addCriterion("guest_vote_count in", values, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountNotIn(List values) { + addCriterion("guest_vote_count not in", values, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountBetween(Integer value1, Integer value2) { + addCriterion("guest_vote_count between", value1, value2, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andGuestVoteCountNotBetween(Integer value1, Integer value2) { + addCriterion("guest_vote_count not between", value1, value2, "guestVoteCount"); + return (Criteria) this; + } + + public Criteria andResetPollIsNull() { + addCriterion("reset_poll is null"); + return (Criteria) this; + } + + public Criteria andResetPollIsNotNull() { + addCriterion("reset_poll is not null"); + return (Criteria) this; + } + + public Criteria andResetPollEqualTo(Integer value) { + addCriterion("reset_poll =", value, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollNotEqualTo(Integer value) { + addCriterion("reset_poll <>", value, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollGreaterThan(Integer value) { + addCriterion("reset_poll >", value, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollGreaterThanOrEqualTo(Integer value) { + addCriterion("reset_poll >=", value, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollLessThan(Integer value) { + addCriterion("reset_poll <", value, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollLessThanOrEqualTo(Integer value) { + addCriterion("reset_poll <=", value, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollIn(List values) { + addCriterion("reset_poll in", values, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollNotIn(List values) { + addCriterion("reset_poll not in", values, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollBetween(Integer value1, Integer value2) { + addCriterion("reset_poll between", value1, value2, "resetPoll"); + return (Criteria) this; + } + + public Criteria andResetPollNotBetween(Integer value1, Integer value2) { + addCriterion("reset_poll not between", value1, value2, "resetPoll"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.poll + * + * @mbg.generated do_not_delete_during_merge Sun Sep 01 00:50:50 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDbo.java index cc4db50..297a34a 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDbo.java @@ -1,218 +1,218 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; - -public class PollQuestionDbo extends AbstractDbo { - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll_question.poll_question_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private Integer pollQuestionId; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll_question.answer_text - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private String answerText; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll_question.poll_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private Integer pollId; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll_question.votes - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private Integer votes; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll_question.created_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private LocalDateTime createdTs; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column zfgbb.poll_question.updated_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll_question.poll_question_id - * - * @return the value of zfgbb.poll_question.poll_question_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Integer getPollQuestionId() { - return pollQuestionId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll_question.poll_question_id - * - * @param pollQuestionId the value for zfgbb.poll_question.poll_question_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setPollQuestionId(Integer pollQuestionId) { - this.pollQuestionId = pollQuestionId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll_question.answer_text - * - * @return the value of zfgbb.poll_question.answer_text - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public String getAnswerText() { - return answerText; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll_question.answer_text - * - * @param answerText the value for zfgbb.poll_question.answer_text - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setAnswerText(String answerText) { - this.answerText = answerText; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll_question.poll_id - * - * @return the value of zfgbb.poll_question.poll_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Integer getPollId() { - return pollId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll_question.poll_id - * - * @param pollId the value for zfgbb.poll_question.poll_id - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setPollId(Integer pollId) { - this.pollId = pollId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll_question.votes - * - * @return the value of zfgbb.poll_question.votes - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Integer getVotes() { - return votes; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll_question.votes - * - * @param votes the value for zfgbb.poll_question.votes - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setVotes(Integer votes) { - this.votes = votes; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll_question.created_ts - * - * @return the value of zfgbb.poll_question.created_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll_question.created_ts - * - * @param createdTs the value for zfgbb.poll_question.created_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column zfgbb.poll_question.updated_ts - * - * @return the value of zfgbb.poll_question.updated_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column zfgbb.poll_question.updated_ts - * - * @param updatedTs the value for zfgbb.poll_question.updated_ts - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return pollQuestionId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class PollQuestionDbo extends AbstractDbo { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.poll_question.poll_question_id + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + private Integer pollQuestionId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.poll_question.answer_text + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + private String answerText; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.poll_question.poll_id + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + private Integer pollId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.poll_question.votes + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + private Integer votes; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.poll_question.created_ts + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + private LocalDateTime createdTs; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column zfgbb.poll_question.updated_ts + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.poll_question.poll_question_id + * + * @return the value of zfgbb.poll_question.poll_question_id + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public Integer getPollQuestionId() { + return pollQuestionId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.poll_question.poll_question_id + * + * @param pollQuestionId the value for zfgbb.poll_question.poll_question_id + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setPollQuestionId(Integer pollQuestionId) { + this.pollQuestionId = pollQuestionId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.poll_question.answer_text + * + * @return the value of zfgbb.poll_question.answer_text + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public String getAnswerText() { + return answerText; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.poll_question.answer_text + * + * @param answerText the value for zfgbb.poll_question.answer_text + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setAnswerText(String answerText) { + this.answerText = answerText; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.poll_question.poll_id + * + * @return the value of zfgbb.poll_question.poll_id + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public Integer getPollId() { + return pollId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.poll_question.poll_id + * + * @param pollId the value for zfgbb.poll_question.poll_id + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setPollId(Integer pollId) { + this.pollId = pollId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.poll_question.votes + * + * @return the value of zfgbb.poll_question.votes + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public Integer getVotes() { + return votes; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.poll_question.votes + * + * @param votes the value for zfgbb.poll_question.votes + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setVotes(Integer votes) { + this.votes = votes; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.poll_question.created_ts + * + * @return the value of zfgbb.poll_question.created_ts + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.poll_question.created_ts + * + * @param createdTs the value for zfgbb.poll_question.created_ts + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column zfgbb.poll_question.updated_ts + * + * @return the value of zfgbb.poll_question.updated_ts + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column zfgbb.poll_question.updated_ts + * + * @param updatedTs the value for zfgbb.poll_question.updated_ts + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return pollQuestionId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDboExample.java index 7580244..fc2340c 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/PollQuestionDboExample.java @@ -1,672 +1,672 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; - -public class PollQuestionDboExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public PollQuestionDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andPollQuestionIdIsNull() { - addCriterion("poll_question_id is null"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdIsNotNull() { - addCriterion("poll_question_id is not null"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdEqualTo(Integer value) { - addCriterion("poll_question_id =", value, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdNotEqualTo(Integer value) { - addCriterion("poll_question_id <>", value, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdGreaterThan(Integer value) { - addCriterion("poll_question_id >", value, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdGreaterThanOrEqualTo(Integer value) { - addCriterion("poll_question_id >=", value, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdLessThan(Integer value) { - addCriterion("poll_question_id <", value, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdLessThanOrEqualTo(Integer value) { - addCriterion("poll_question_id <=", value, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdIn(List values) { - addCriterion("poll_question_id in", values, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdNotIn(List values) { - addCriterion("poll_question_id not in", values, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdBetween(Integer value1, Integer value2) { - addCriterion("poll_question_id between", value1, value2, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andPollQuestionIdNotBetween(Integer value1, Integer value2) { - addCriterion("poll_question_id not between", value1, value2, "pollQuestionId"); - return (Criteria) this; - } - - public Criteria andAnswerTextIsNull() { - addCriterion("answer_text is null"); - return (Criteria) this; - } - - public Criteria andAnswerTextIsNotNull() { - addCriterion("answer_text is not null"); - return (Criteria) this; - } - - public Criteria andAnswerTextEqualTo(String value) { - addCriterion("answer_text =", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextNotEqualTo(String value) { - addCriterion("answer_text <>", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextGreaterThan(String value) { - addCriterion("answer_text >", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextGreaterThanOrEqualTo(String value) { - addCriterion("answer_text >=", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextLessThan(String value) { - addCriterion("answer_text <", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextLessThanOrEqualTo(String value) { - addCriterion("answer_text <=", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextLike(String value) { - addCriterion("answer_text like", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextNotLike(String value) { - addCriterion("answer_text not like", value, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextIn(List values) { - addCriterion("answer_text in", values, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextNotIn(List values) { - addCriterion("answer_text not in", values, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextBetween(String value1, String value2) { - addCriterion("answer_text between", value1, value2, "answerText"); - return (Criteria) this; - } - - public Criteria andAnswerTextNotBetween(String value1, String value2) { - addCriterion("answer_text not between", value1, value2, "answerText"); - return (Criteria) this; - } - - public Criteria andPollIdIsNull() { - addCriterion("poll_id is null"); - return (Criteria) this; - } - - public Criteria andPollIdIsNotNull() { - addCriterion("poll_id is not null"); - return (Criteria) this; - } - - public Criteria andPollIdEqualTo(Integer value) { - addCriterion("poll_id =", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdNotEqualTo(Integer value) { - addCriterion("poll_id <>", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdGreaterThan(Integer value) { - addCriterion("poll_id >", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdGreaterThanOrEqualTo(Integer value) { - addCriterion("poll_id >=", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdLessThan(Integer value) { - addCriterion("poll_id <", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdLessThanOrEqualTo(Integer value) { - addCriterion("poll_id <=", value, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdIn(List values) { - addCriterion("poll_id in", values, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdNotIn(List values) { - addCriterion("poll_id not in", values, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdBetween(Integer value1, Integer value2) { - addCriterion("poll_id between", value1, value2, "pollId"); - return (Criteria) this; - } - - public Criteria andPollIdNotBetween(Integer value1, Integer value2) { - addCriterion("poll_id not between", value1, value2, "pollId"); - return (Criteria) this; - } - - public Criteria andVotesIsNull() { - addCriterion("votes is null"); - return (Criteria) this; - } - - public Criteria andVotesIsNotNull() { - addCriterion("votes is not null"); - return (Criteria) this; - } - - public Criteria andVotesEqualTo(Integer value) { - addCriterion("votes =", value, "votes"); - return (Criteria) this; - } - - public Criteria andVotesNotEqualTo(Integer value) { - addCriterion("votes <>", value, "votes"); - return (Criteria) this; - } - - public Criteria andVotesGreaterThan(Integer value) { - addCriterion("votes >", value, "votes"); - return (Criteria) this; - } - - public Criteria andVotesGreaterThanOrEqualTo(Integer value) { - addCriterion("votes >=", value, "votes"); - return (Criteria) this; - } - - public Criteria andVotesLessThan(Integer value) { - addCriterion("votes <", value, "votes"); - return (Criteria) this; - } - - public Criteria andVotesLessThanOrEqualTo(Integer value) { - addCriterion("votes <=", value, "votes"); - return (Criteria) this; - } - - public Criteria andVotesIn(List values) { - addCriterion("votes in", values, "votes"); - return (Criteria) this; - } - - public Criteria andVotesNotIn(List values) { - addCriterion("votes not in", values, "votes"); - return (Criteria) this; - } - - public Criteria andVotesBetween(Integer value1, Integer value2) { - addCriterion("votes between", value1, value2, "votes"); - return (Criteria) this; - } - - public Criteria andVotesNotBetween(Integer value1, Integer value2) { - addCriterion("votes not between", value1, value2, "votes"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.poll_question - * - * @mbg.generated do_not_delete_during_merge Sun Sep 01 00:50:50 EDT 2024 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - 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); - } - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class PollQuestionDboExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public PollQuestionDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andPollQuestionIdIsNull() { + addCriterion("poll_question_id is null"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdIsNotNull() { + addCriterion("poll_question_id is not null"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdEqualTo(Integer value) { + addCriterion("poll_question_id =", value, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdNotEqualTo(Integer value) { + addCriterion("poll_question_id <>", value, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdGreaterThan(Integer value) { + addCriterion("poll_question_id >", value, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdGreaterThanOrEqualTo(Integer value) { + addCriterion("poll_question_id >=", value, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdLessThan(Integer value) { + addCriterion("poll_question_id <", value, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdLessThanOrEqualTo(Integer value) { + addCriterion("poll_question_id <=", value, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdIn(List values) { + addCriterion("poll_question_id in", values, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdNotIn(List values) { + addCriterion("poll_question_id not in", values, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdBetween(Integer value1, Integer value2) { + addCriterion("poll_question_id between", value1, value2, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andPollQuestionIdNotBetween(Integer value1, Integer value2) { + addCriterion("poll_question_id not between", value1, value2, "pollQuestionId"); + return (Criteria) this; + } + + public Criteria andAnswerTextIsNull() { + addCriterion("answer_text is null"); + return (Criteria) this; + } + + public Criteria andAnswerTextIsNotNull() { + addCriterion("answer_text is not null"); + return (Criteria) this; + } + + public Criteria andAnswerTextEqualTo(String value) { + addCriterion("answer_text =", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextNotEqualTo(String value) { + addCriterion("answer_text <>", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextGreaterThan(String value) { + addCriterion("answer_text >", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextGreaterThanOrEqualTo(String value) { + addCriterion("answer_text >=", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextLessThan(String value) { + addCriterion("answer_text <", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextLessThanOrEqualTo(String value) { + addCriterion("answer_text <=", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextLike(String value) { + addCriterion("answer_text like", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextNotLike(String value) { + addCriterion("answer_text not like", value, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextIn(List values) { + addCriterion("answer_text in", values, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextNotIn(List values) { + addCriterion("answer_text not in", values, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextBetween(String value1, String value2) { + addCriterion("answer_text between", value1, value2, "answerText"); + return (Criteria) this; + } + + public Criteria andAnswerTextNotBetween(String value1, String value2) { + addCriterion("answer_text not between", value1, value2, "answerText"); + return (Criteria) this; + } + + public Criteria andPollIdIsNull() { + addCriterion("poll_id is null"); + return (Criteria) this; + } + + public Criteria andPollIdIsNotNull() { + addCriterion("poll_id is not null"); + return (Criteria) this; + } + + public Criteria andPollIdEqualTo(Integer value) { + addCriterion("poll_id =", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdNotEqualTo(Integer value) { + addCriterion("poll_id <>", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdGreaterThan(Integer value) { + addCriterion("poll_id >", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdGreaterThanOrEqualTo(Integer value) { + addCriterion("poll_id >=", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdLessThan(Integer value) { + addCriterion("poll_id <", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdLessThanOrEqualTo(Integer value) { + addCriterion("poll_id <=", value, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdIn(List values) { + addCriterion("poll_id in", values, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdNotIn(List values) { + addCriterion("poll_id not in", values, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdBetween(Integer value1, Integer value2) { + addCriterion("poll_id between", value1, value2, "pollId"); + return (Criteria) this; + } + + public Criteria andPollIdNotBetween(Integer value1, Integer value2) { + addCriterion("poll_id not between", value1, value2, "pollId"); + return (Criteria) this; + } + + public Criteria andVotesIsNull() { + addCriterion("votes is null"); + return (Criteria) this; + } + + public Criteria andVotesIsNotNull() { + addCriterion("votes is not null"); + return (Criteria) this; + } + + public Criteria andVotesEqualTo(Integer value) { + addCriterion("votes =", value, "votes"); + return (Criteria) this; + } + + public Criteria andVotesNotEqualTo(Integer value) { + addCriterion("votes <>", value, "votes"); + return (Criteria) this; + } + + public Criteria andVotesGreaterThan(Integer value) { + addCriterion("votes >", value, "votes"); + return (Criteria) this; + } + + public Criteria andVotesGreaterThanOrEqualTo(Integer value) { + addCriterion("votes >=", value, "votes"); + return (Criteria) this; + } + + public Criteria andVotesLessThan(Integer value) { + addCriterion("votes <", value, "votes"); + return (Criteria) this; + } + + public Criteria andVotesLessThanOrEqualTo(Integer value) { + addCriterion("votes <=", value, "votes"); + return (Criteria) this; + } + + public Criteria andVotesIn(List values) { + addCriterion("votes in", values, "votes"); + return (Criteria) this; + } + + public Criteria andVotesNotIn(List values) { + addCriterion("votes not in", values, "votes"); + return (Criteria) this; + } + + public Criteria andVotesBetween(Integer value1, Integer value2) { + addCriterion("votes between", value1, value2, "votes"); + return (Criteria) this; + } + + public Criteria andVotesNotBetween(Integer value1, Integer value2) { + addCriterion("votes not between", value1, value2, "votes"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.poll_question + * + * @mbg.generated do_not_delete_during_merge Sun Sep 01 00:50:50 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + 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); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/ThreadDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/ThreadDbo.java index 56ad433..db5dfe9 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/ThreadDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/ThreadDbo.java @@ -1,208 +1,231 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDateTime; - -public class ThreadDbo extends AbstractDbo{ - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.thread_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer threadId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.thread_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String threadName; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.locked_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean lockedFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.pinned_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Boolean pinnedFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private LocalDateTime updatedTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer boardId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.created_user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer createdUserId; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.thread_id - * @return the value of zfgbb.thread.thread_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getThreadId() { - return threadId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.thread_id - * @param threadId the value for zfgbb.thread.thread_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setThreadId(Integer threadId) { - this.threadId = threadId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.thread_name - * @return the value of zfgbb.thread.thread_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getThreadName() { - return threadName; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.thread_name - * @param threadName the value for zfgbb.thread.thread_name - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setThreadName(String threadName) { - this.threadName = threadName; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.locked_flag - * @return the value of zfgbb.thread.locked_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getLockedFlag() { - return lockedFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.locked_flag - * @param lockedFlag the value for zfgbb.thread.locked_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setLockedFlag(Boolean lockedFlag) { - this.lockedFlag = lockedFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.pinned_flag - * @return the value of zfgbb.thread.pinned_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Boolean getPinnedFlag() { - return pinnedFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.pinned_flag - * @param pinnedFlag the value for zfgbb.thread.pinned_flag - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setPinnedFlag(Boolean pinnedFlag) { - this.pinnedFlag = pinnedFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.created_ts - * @return the value of zfgbb.thread.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.created_ts - * @param createdTs the value for zfgbb.thread.created_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.updated_ts - * @return the value of zfgbb.thread.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.updated_ts - * @param updatedTs the value for zfgbb.thread.updated_ts - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.board_id - * @return the value of zfgbb.thread.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getBoardId() { - return boardId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.board_id - * @param boardId the value for zfgbb.thread.board_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setBoardId(Integer boardId) { - this.boardId = boardId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.created_user_id - * @return the value of zfgbb.thread.created_user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getCreatedUserId() { - return createdUserId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.created_user_id - * @param createdUserId the value for zfgbb.thread.created_user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setCreatedUserId(Integer createdUserId) { - this.createdUserId = createdUserId; - } - - @Override - public Integer getPkId() { - return boardId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDateTime; + +public class ThreadDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.thread_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer threadId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.thread_name + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private String threadName; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.locked_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Boolean lockedFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.pinned_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Boolean pinnedFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.created_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.updated_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.board_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer boardId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.created_user_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer createdUserId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.thread.view_count + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + private Integer viewCount; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.thread_id + * @return the value of zfgbb.thread.thread_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getThreadId() { + return threadId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.thread_id + * @param threadId the value for zfgbb.thread.thread_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.thread_name + * @return the value of zfgbb.thread.thread_name + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public String getThreadName() { + return threadName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.thread_name + * @param threadName the value for zfgbb.thread.thread_name + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setThreadName(String threadName) { + this.threadName = threadName; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.locked_flag + * @return the value of zfgbb.thread.locked_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Boolean getLockedFlag() { + return lockedFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.locked_flag + * @param lockedFlag the value for zfgbb.thread.locked_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setLockedFlag(Boolean lockedFlag) { + this.lockedFlag = lockedFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.pinned_flag + * @return the value of zfgbb.thread.pinned_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Boolean getPinnedFlag() { + return pinnedFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.pinned_flag + * @param pinnedFlag the value for zfgbb.thread.pinned_flag + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setPinnedFlag(Boolean pinnedFlag) { + this.pinnedFlag = pinnedFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.created_ts + * @return the value of zfgbb.thread.created_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.created_ts + * @param createdTs the value for zfgbb.thread.created_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.updated_ts + * @return the value of zfgbb.thread.updated_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.updated_ts + * @param updatedTs the value for zfgbb.thread.updated_ts + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.board_id + * @return the value of zfgbb.thread.board_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getBoardId() { + return boardId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.board_id + * @param boardId the value for zfgbb.thread.board_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.created_user_id + * @return the value of zfgbb.thread.created_user_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getCreatedUserId() { + return createdUserId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.created_user_id + * @param createdUserId the value for zfgbb.thread.created_user_id + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setCreatedUserId(Integer createdUserId) { + this.createdUserId = createdUserId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.thread.view_count + * @return the value of zfgbb.thread.view_count + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public Integer getViewCount() { + return viewCount; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.thread.view_count + * @param viewCount the value for zfgbb.thread.view_count + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + public void setViewCount(Integer viewCount) { + this.viewCount = viewCount; + } + + @Override + public Integer getPkId() { + return boardId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/ThreadDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/ThreadDboExample.java index 8980994..6dabbf6 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/ThreadDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/ThreadDboExample.java @@ -8,23 +8,23 @@ public class ThreadDboExample { /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ protected String orderByClause; /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ protected boolean distinct; /** * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ protected List oredCriteria; /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public ThreadDboExample() { oredCriteria = new ArrayList<>(); @@ -32,7 +32,7 @@ public ThreadDboExample() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; @@ -40,7 +40,7 @@ public void setOrderByClause(String orderByClause) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public String getOrderByClause() { return orderByClause; @@ -48,7 +48,7 @@ public String getOrderByClause() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public void setDistinct(boolean distinct) { this.distinct = distinct; @@ -56,7 +56,7 @@ public void setDistinct(boolean distinct) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public boolean isDistinct() { return distinct; @@ -64,7 +64,7 @@ public boolean isDistinct() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public List getOredCriteria() { return oredCriteria; @@ -72,7 +72,7 @@ public List getOredCriteria() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public void or(Criteria criteria) { oredCriteria.add(criteria); @@ -80,7 +80,7 @@ public void or(Criteria criteria) { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public Criteria or() { Criteria criteria = createCriteriaInternal(); @@ -90,7 +90,7 @@ public Criteria or() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); @@ -102,7 +102,7 @@ public Criteria createCriteria() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); @@ -111,7 +111,7 @@ protected Criteria createCriteriaInternal() { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public void clear() { oredCriteria.clear(); @@ -121,7 +121,7 @@ public void clear() { /** * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ protected abstract static class GeneratedCriteria { protected List criteria; @@ -653,11 +653,71 @@ public Criteria andCreatedUserIdNotBetween(Integer value1, Integer value2) { addCriterion("created_user_id not between", value1, value2, "createdUserId"); return (Criteria) this; } + + public Criteria andViewCountIsNull() { + addCriterion("view_count is null"); + return (Criteria) this; + } + + public Criteria andViewCountIsNotNull() { + addCriterion("view_count is not null"); + return (Criteria) this; + } + + public Criteria andViewCountEqualTo(Integer value) { + addCriterion("view_count =", value, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountNotEqualTo(Integer value) { + addCriterion("view_count <>", value, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountGreaterThan(Integer value) { + addCriterion("view_count >", value, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountGreaterThanOrEqualTo(Integer value) { + addCriterion("view_count >=", value, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountLessThan(Integer value) { + addCriterion("view_count <", value, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountLessThanOrEqualTo(Integer value) { + addCriterion("view_count <=", value, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountIn(List values) { + addCriterion("view_count in", values, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountNotIn(List values) { + addCriterion("view_count not in", values, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountBetween(Integer value1, Integer value2) { + addCriterion("view_count between", value1, value2, "viewCount"); + return (Criteria) this; + } + + public Criteria andViewCountNotBetween(Integer value1, Integer value2) { + addCriterion("view_count not between", value1, value2, "viewCount"); + return (Criteria) this; + } } /** * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ public static class Criterion { private String condition; @@ -749,4 +809,23 @@ protected Criteria() { super(); } } + + protected Integer offset; + protected Integer limit; + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDbo.java index b5a5dae..33791a9 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDbo.java @@ -1,137 +1,137 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; - -public class UserBioInfoDbo extends AbstractDbo { - - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.user_id - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - private Integer userId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.custom_title - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - private String customTitle; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.personal_text - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - private String personalText; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.created_ts - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.updated_ts - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - private LocalDateTime updatedTs; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.user_id - * @return the value of zfgbb.user_bio_info.user_id - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public Integer getUserId() { - return userId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.user_id - * @param userId the value for zfgbb.user_bio_info.user_id - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void setUserId(Integer userId) { - this.userId = userId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.custom_title - * @return the value of zfgbb.user_bio_info.custom_title - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public String getCustomTitle() { - return customTitle; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.custom_title - * @param customTitle the value for zfgbb.user_bio_info.custom_title - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void setCustomTitle(String customTitle) { - this.customTitle = customTitle; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.personal_text - * @return the value of zfgbb.user_bio_info.personal_text - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public String getPersonalText() { - return personalText; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.personal_text - * @param personalText the value for zfgbb.user_bio_info.personal_text - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void setPersonalText(String personalText) { - this.personalText = personalText; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.created_ts - * @return the value of zfgbb.user_bio_info.created_ts - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.created_ts - * @param createdTs the value for zfgbb.user_bio_info.created_ts - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.updated_ts - * @return the value of zfgbb.user_bio_info.updated_ts - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.updated_ts - * @param updatedTs the value for zfgbb.user_bio_info.updated_ts - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - @Override - public Integer getPkId() { - return userId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; + +public class UserBioInfoDbo extends AbstractDbo { + + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.user_id + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + private Integer userId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.custom_title + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + private String customTitle; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.personal_text + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + private String personalText; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.created_ts + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_bio_info.updated_ts + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + private LocalDateTime updatedTs; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.user_id + * @return the value of zfgbb.user_bio_info.user_id + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public Integer getUserId() { + return userId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.user_id + * @param userId the value for zfgbb.user_bio_info.user_id + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void setUserId(Integer userId) { + this.userId = userId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.custom_title + * @return the value of zfgbb.user_bio_info.custom_title + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public String getCustomTitle() { + return customTitle; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.custom_title + * @param customTitle the value for zfgbb.user_bio_info.custom_title + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void setCustomTitle(String customTitle) { + this.customTitle = customTitle; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.personal_text + * @return the value of zfgbb.user_bio_info.personal_text + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public String getPersonalText() { + return personalText; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.personal_text + * @param personalText the value for zfgbb.user_bio_info.personal_text + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void setPersonalText(String personalText) { + this.personalText = personalText; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.created_ts + * @return the value of zfgbb.user_bio_info.created_ts + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.created_ts + * @param createdTs the value for zfgbb.user_bio_info.created_ts + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_bio_info.updated_ts + * @return the value of zfgbb.user_bio_info.updated_ts + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_bio_info.updated_ts + * @param updatedTs the value for zfgbb.user_bio_info.updated_ts + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + @Override + public Integer getPkId() { + return userId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDboExample.java index 41cbc9a..6340a8f 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/UserBioInfoDboExample.java @@ -1,581 +1,581 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; - -public class UserBioInfoDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public UserBioInfoDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andUserIdIsNull() { - addCriterion("user_id is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("user_id is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(Integer value) { - addCriterion("user_id =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(Integer value) { - addCriterion("user_id <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(Integer value) { - addCriterion("user_id >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("user_id >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(Integer value) { - addCriterion("user_id <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(Integer value) { - addCriterion("user_id <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("user_id in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("user_id not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(Integer value1, Integer value2) { - addCriterion("user_id between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("user_id not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andCustomTitleIsNull() { - addCriterion("custom_title is null"); - return (Criteria) this; - } - - public Criteria andCustomTitleIsNotNull() { - addCriterion("custom_title is not null"); - return (Criteria) this; - } - - public Criteria andCustomTitleEqualTo(String value) { - addCriterion("custom_title =", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleNotEqualTo(String value) { - addCriterion("custom_title <>", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleGreaterThan(String value) { - addCriterion("custom_title >", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleGreaterThanOrEqualTo(String value) { - addCriterion("custom_title >=", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleLessThan(String value) { - addCriterion("custom_title <", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleLessThanOrEqualTo(String value) { - addCriterion("custom_title <=", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleLike(String value) { - addCriterion("custom_title like", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleNotLike(String value) { - addCriterion("custom_title not like", value, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleIn(List values) { - addCriterion("custom_title in", values, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleNotIn(List values) { - addCriterion("custom_title not in", values, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleBetween(String value1, String value2) { - addCriterion("custom_title between", value1, value2, "customTitle"); - return (Criteria) this; - } - - public Criteria andCustomTitleNotBetween(String value1, String value2) { - addCriterion("custom_title not between", value1, value2, "customTitle"); - return (Criteria) this; - } - - public Criteria andPersonalTextIsNull() { - addCriterion("personal_text is null"); - return (Criteria) this; - } - - public Criteria andPersonalTextIsNotNull() { - addCriterion("personal_text is not null"); - return (Criteria) this; - } - - public Criteria andPersonalTextEqualTo(String value) { - addCriterion("personal_text =", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextNotEqualTo(String value) { - addCriterion("personal_text <>", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextGreaterThan(String value) { - addCriterion("personal_text >", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextGreaterThanOrEqualTo(String value) { - addCriterion("personal_text >=", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextLessThan(String value) { - addCriterion("personal_text <", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextLessThanOrEqualTo(String value) { - addCriterion("personal_text <=", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextLike(String value) { - addCriterion("personal_text like", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextNotLike(String value) { - addCriterion("personal_text not like", value, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextIn(List values) { - addCriterion("personal_text in", values, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextNotIn(List values) { - addCriterion("personal_text not in", values, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextBetween(String value1, String value2) { - addCriterion("personal_text between", value1, value2, "personalText"); - return (Criteria) this; - } - - public Criteria andPersonalTextNotBetween(String value1, String value2) { - addCriterion("personal_text not between", value1, value2, "personalText"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.user_bio_info - * - * @mbg.generated do_not_delete_during_merge Tue Sep 17 22:24:23 EDT 2024 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +public class UserBioInfoDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public UserBioInfoDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Integer value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Integer value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Integer value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Integer value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Integer value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Integer value1, Integer value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andCustomTitleIsNull() { + addCriterion("custom_title is null"); + return (Criteria) this; + } + + public Criteria andCustomTitleIsNotNull() { + addCriterion("custom_title is not null"); + return (Criteria) this; + } + + public Criteria andCustomTitleEqualTo(String value) { + addCriterion("custom_title =", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleNotEqualTo(String value) { + addCriterion("custom_title <>", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleGreaterThan(String value) { + addCriterion("custom_title >", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleGreaterThanOrEqualTo(String value) { + addCriterion("custom_title >=", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleLessThan(String value) { + addCriterion("custom_title <", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleLessThanOrEqualTo(String value) { + addCriterion("custom_title <=", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleLike(String value) { + addCriterion("custom_title like", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleNotLike(String value) { + addCriterion("custom_title not like", value, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleIn(List values) { + addCriterion("custom_title in", values, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleNotIn(List values) { + addCriterion("custom_title not in", values, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleBetween(String value1, String value2) { + addCriterion("custom_title between", value1, value2, "customTitle"); + return (Criteria) this; + } + + public Criteria andCustomTitleNotBetween(String value1, String value2) { + addCriterion("custom_title not between", value1, value2, "customTitle"); + return (Criteria) this; + } + + public Criteria andPersonalTextIsNull() { + addCriterion("personal_text is null"); + return (Criteria) this; + } + + public Criteria andPersonalTextIsNotNull() { + addCriterion("personal_text is not null"); + return (Criteria) this; + } + + public Criteria andPersonalTextEqualTo(String value) { + addCriterion("personal_text =", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextNotEqualTo(String value) { + addCriterion("personal_text <>", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextGreaterThan(String value) { + addCriterion("personal_text >", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextGreaterThanOrEqualTo(String value) { + addCriterion("personal_text >=", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextLessThan(String value) { + addCriterion("personal_text <", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextLessThanOrEqualTo(String value) { + addCriterion("personal_text <=", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextLike(String value) { + addCriterion("personal_text like", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextNotLike(String value) { + addCriterion("personal_text not like", value, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextIn(List values) { + addCriterion("personal_text in", values, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextNotIn(List values) { + addCriterion("personal_text not in", values, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextBetween(String value1, String value2) { + addCriterion("personal_text between", value1, value2, "personalText"); + return (Criteria) this; + } + + public Criteria andPersonalTextNotBetween(String value1, String value2) { + addCriterion("personal_text not between", value1, value2, "personalText"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.user_bio_info + * + * @mbg.generated do_not_delete_during_merge Tue Sep 17 22:24:23 EDT 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/UserDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/UserDbo.java index 8980741..f5582f1 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/UserDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/UserDbo.java @@ -1,185 +1,185 @@ -package com.zfgc.zfgbb.dbo; - - -import com.zfgc.zfgbb.dbo.AbstractDbo; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class UserDbo extends AbstractDbo { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.user_id - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - private Integer userId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.created_ts - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - private LocalDateTime createdTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.updated_ts - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - private LocalDateTime updatedTs; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.sso_key - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - private String ssoKey; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.active_flag - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - private Boolean activeFlag; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.display_name - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - private String displayName; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.user_name - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - private String userName; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.user_id - * @return the value of zfgbb.user.user_id - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public Integer getUserId() { - return userId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.user_id - * @param userId the value for zfgbb.user.user_id - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setUserId(Integer userId) { - this.userId = userId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.created_ts - * @return the value of zfgbb.user.created_ts - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public LocalDateTime getCreatedTs() { - return createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.created_ts - * @param createdTs the value for zfgbb.user.created_ts - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setCreatedTs(LocalDateTime createdTs) { - this.createdTs = createdTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.updated_ts - * @return the value of zfgbb.user.updated_ts - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public LocalDateTime getUpdatedTs() { - return updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.updated_ts - * @param updatedTs the value for zfgbb.user.updated_ts - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setUpdatedTs(LocalDateTime updatedTs) { - this.updatedTs = updatedTs; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.sso_key - * @return the value of zfgbb.user.sso_key - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public String getSsoKey() { - return ssoKey; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.sso_key - * @param ssoKey the value for zfgbb.user.sso_key - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setSsoKey(String ssoKey) { - this.ssoKey = ssoKey; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.active_flag - * @return the value of zfgbb.user.active_flag - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public Boolean getActiveFlag() { - return activeFlag; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.active_flag - * @param activeFlag the value for zfgbb.user.active_flag - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setActiveFlag(Boolean activeFlag) { - this.activeFlag = activeFlag; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.display_name - * @return the value of zfgbb.user.display_name - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public String getDisplayName() { - return displayName; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.display_name - * @param displayName the value for zfgbb.user.display_name - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setDisplayName(String displayName) { - this.displayName = displayName; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.user_name - * @return the value of zfgbb.user.user_name - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public String getUserName() { - return userName; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.user_name - * @param userName the value for zfgbb.user.user_name - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setUserName(String userName) { - this.userName = userName; - } - - @Override - public Integer getPkId() { - return userId; - } - - @Override - public LocalDateTime getUpdatedTime() { - return updatedTs; - } - - @Override - public LocalDateTime getCreatedTime() { - return createdTs; - } +package com.zfgc.zfgbb.dbo; + + +import com.zfgc.zfgbb.dbo.AbstractDbo; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class UserDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.user_id + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + private Integer userId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.created_ts + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + private LocalDateTime createdTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.updated_ts + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + private LocalDateTime updatedTs; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.sso_key + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + private String ssoKey; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.active_flag + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + private Boolean activeFlag; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.display_name + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + private String displayName; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user.user_name + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + private String userName; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.user_id + * @return the value of zfgbb.user.user_id + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public Integer getUserId() { + return userId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.user_id + * @param userId the value for zfgbb.user.user_id + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setUserId(Integer userId) { + this.userId = userId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.created_ts + * @return the value of zfgbb.user.created_ts + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public LocalDateTime getCreatedTs() { + return createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.created_ts + * @param createdTs the value for zfgbb.user.created_ts + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.updated_ts + * @return the value of zfgbb.user.updated_ts + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public LocalDateTime getUpdatedTs() { + return updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.updated_ts + * @param updatedTs the value for zfgbb.user.updated_ts + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setUpdatedTs(LocalDateTime updatedTs) { + this.updatedTs = updatedTs; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.sso_key + * @return the value of zfgbb.user.sso_key + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public String getSsoKey() { + return ssoKey; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.sso_key + * @param ssoKey the value for zfgbb.user.sso_key + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setSsoKey(String ssoKey) { + this.ssoKey = ssoKey; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.active_flag + * @return the value of zfgbb.user.active_flag + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public Boolean getActiveFlag() { + return activeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.active_flag + * @param activeFlag the value for zfgbb.user.active_flag + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setActiveFlag(Boolean activeFlag) { + this.activeFlag = activeFlag; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.display_name + * @return the value of zfgbb.user.display_name + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public String getDisplayName() { + return displayName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.display_name + * @param displayName the value for zfgbb.user.display_name + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user.user_name + * @return the value of zfgbb.user.user_name + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public String getUserName() { + return userName; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user.user_name + * @param userName the value for zfgbb.user.user_name + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setUserName(String userName) { + this.userName = userName; + } + + @Override + public Integer getPkId() { + return userId; + } + + @Override + public LocalDateTime getUpdatedTime() { + return updatedTs; + } + + @Override + public LocalDateTime getCreatedTime() { + return createdTs; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/UserDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/UserDboExample.java index 6a411ca..8d6204e 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/UserDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/UserDboExample.java @@ -1,712 +1,712 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; -import java.time.LocalDate; -import java.time.LocalDateTime; - -public class UserDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public UserDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andUserIdIsNull() { - addCriterion("user_id is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("user_id is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(Integer value) { - addCriterion("user_id =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(Integer value) { - addCriterion("user_id <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(Integer value) { - addCriterion("user_id >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("user_id >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(Integer value) { - addCriterion("user_id <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(Integer value) { - addCriterion("user_id <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("user_id in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("user_id not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(Integer value1, Integer value2) { - addCriterion("user_id between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("user_id not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNull() { - addCriterion("created_ts is null"); - return (Criteria) this; - } - - public Criteria andCreatedTsIsNotNull() { - addCriterion("created_ts is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTsEqualTo(LocalDateTime value) { - addCriterion("created_ts =", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { - addCriterion("created_ts <>", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThan(LocalDateTime value) { - addCriterion("created_ts >", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts >=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThan(LocalDateTime value) { - addCriterion("created_ts <", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("created_ts <=", value, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsIn(List values) { - addCriterion("created_ts in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotIn(List values) { - addCriterion("created_ts not in", values, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("created_ts not between", value1, value2, "createdTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNull() { - addCriterion("updated_ts is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIsNotNull() { - addCriterion("updated_ts is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTsEqualTo(LocalDateTime value) { - addCriterion("updated_ts =", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { - addCriterion("updated_ts <>", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { - addCriterion("updated_ts >", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts >=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThan(LocalDateTime value) { - addCriterion("updated_ts <", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { - addCriterion("updated_ts <=", value, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsIn(List values) { - addCriterion("updated_ts in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotIn(List values) { - addCriterion("updated_ts not in", values, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { - addCriterion("updated_ts not between", value1, value2, "updatedTs"); - return (Criteria) this; - } - - public Criteria andSsoKeyIsNull() { - addCriterion("sso_key is null"); - return (Criteria) this; - } - - public Criteria andSsoKeyIsNotNull() { - addCriterion("sso_key is not null"); - return (Criteria) this; - } - - public Criteria andSsoKeyEqualTo(String value) { - addCriterion("sso_key =", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyNotEqualTo(String value) { - addCriterion("sso_key <>", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyGreaterThan(String value) { - addCriterion("sso_key >", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyGreaterThanOrEqualTo(String value) { - addCriterion("sso_key >=", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyLessThan(String value) { - addCriterion("sso_key <", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyLessThanOrEqualTo(String value) { - addCriterion("sso_key <=", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyLike(String value) { - addCriterion("sso_key like", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyNotLike(String value) { - addCriterion("sso_key not like", value, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyIn(List values) { - addCriterion("sso_key in", values, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyNotIn(List values) { - addCriterion("sso_key not in", values, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyBetween(String value1, String value2) { - addCriterion("sso_key between", value1, value2, "ssoKey"); - return (Criteria) this; - } - - public Criteria andSsoKeyNotBetween(String value1, String value2) { - addCriterion("sso_key not between", value1, value2, "ssoKey"); - return (Criteria) this; - } - - public Criteria andActiveFlagIsNull() { - addCriterion("active_flag is null"); - return (Criteria) this; - } - - public Criteria andActiveFlagIsNotNull() { - addCriterion("active_flag is not null"); - return (Criteria) this; - } - - public Criteria andActiveFlagEqualTo(Boolean value) { - addCriterion("active_flag =", value, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagNotEqualTo(Boolean value) { - addCriterion("active_flag <>", value, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagGreaterThan(Boolean value) { - addCriterion("active_flag >", value, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagGreaterThanOrEqualTo(Boolean value) { - addCriterion("active_flag >=", value, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagLessThan(Boolean value) { - addCriterion("active_flag <", value, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagLessThanOrEqualTo(Boolean value) { - addCriterion("active_flag <=", value, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagIn(List values) { - addCriterion("active_flag in", values, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagNotIn(List values) { - addCriterion("active_flag not in", values, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagBetween(Boolean value1, Boolean value2) { - addCriterion("active_flag between", value1, value2, "activeFlag"); - return (Criteria) this; - } - - public Criteria andActiveFlagNotBetween(Boolean value1, Boolean value2) { - addCriterion("active_flag not between", value1, value2, "activeFlag"); - return (Criteria) this; - } - - public Criteria andDisplayNameIsNull() { - addCriterion("display_name is null"); - return (Criteria) this; - } - - public Criteria andDisplayNameIsNotNull() { - addCriterion("display_name is not null"); - return (Criteria) this; - } - - public Criteria andDisplayNameEqualTo(String value) { - addCriterion("display_name =", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameNotEqualTo(String value) { - addCriterion("display_name <>", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameGreaterThan(String value) { - addCriterion("display_name >", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameGreaterThanOrEqualTo(String value) { - addCriterion("display_name >=", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameLessThan(String value) { - addCriterion("display_name <", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameLessThanOrEqualTo(String value) { - addCriterion("display_name <=", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameLike(String value) { - addCriterion("display_name like", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameNotLike(String value) { - addCriterion("display_name not like", value, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameIn(List values) { - addCriterion("display_name in", values, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameNotIn(List values) { - addCriterion("display_name not in", values, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameBetween(String value1, String value2) { - addCriterion("display_name between", value1, value2, "displayName"); - return (Criteria) this; - } - - public Criteria andDisplayNameNotBetween(String value1, String value2) { - addCriterion("display_name not between", value1, value2, "displayName"); - return (Criteria) this; - } - - public Criteria andUserNameIsNull() { - addCriterion("user_name is null"); - return (Criteria) this; - } - - public Criteria andUserNameIsNotNull() { - addCriterion("user_name is not null"); - return (Criteria) this; - } - - public Criteria andUserNameEqualTo(String value) { - addCriterion("user_name =", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameNotEqualTo(String value) { - addCriterion("user_name <>", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameGreaterThan(String value) { - addCriterion("user_name >", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameGreaterThanOrEqualTo(String value) { - addCriterion("user_name >=", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameLessThan(String value) { - addCriterion("user_name <", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameLessThanOrEqualTo(String value) { - addCriterion("user_name <=", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameLike(String value) { - addCriterion("user_name like", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameNotLike(String value) { - addCriterion("user_name not like", value, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameIn(List values) { - addCriterion("user_name in", values, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameNotIn(List values) { - addCriterion("user_name not in", values, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameBetween(String value1, String value2) { - addCriterion("user_name between", value1, value2, "userName"); - return (Criteria) this; - } - - public Criteria andUserNameNotBetween(String value1, String value2) { - addCriterion("user_name not between", value1, value2, "userName"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.user - * - * @mbg.generated do_not_delete_during_merge Thu Feb 24 23:49:20 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; +import java.time.LocalDate; +import java.time.LocalDateTime; + +public class UserDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public UserDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Integer value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Integer value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Integer value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Integer value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Integer value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Integer value1, Integer value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNull() { + addCriterion("created_ts is null"); + return (Criteria) this; + } + + public Criteria andCreatedTsIsNotNull() { + addCriterion("created_ts is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTsEqualTo(LocalDateTime value) { + addCriterion("created_ts =", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotEqualTo(LocalDateTime value) { + addCriterion("created_ts <>", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThan(LocalDateTime value) { + addCriterion("created_ts >", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts >=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThan(LocalDateTime value) { + addCriterion("created_ts <", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("created_ts <=", value, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsIn(List values) { + addCriterion("created_ts in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotIn(List values) { + addCriterion("created_ts not in", values, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andCreatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("created_ts not between", value1, value2, "createdTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNull() { + addCriterion("updated_ts is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIsNotNull() { + addCriterion("updated_ts is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTsEqualTo(LocalDateTime value) { + addCriterion("updated_ts =", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotEqualTo(LocalDateTime value) { + addCriterion("updated_ts <>", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThan(LocalDateTime value) { + addCriterion("updated_ts >", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsGreaterThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts >=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThan(LocalDateTime value) { + addCriterion("updated_ts <", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsLessThanOrEqualTo(LocalDateTime value) { + addCriterion("updated_ts <=", value, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsIn(List values) { + addCriterion("updated_ts in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotIn(List values) { + addCriterion("updated_ts not in", values, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andUpdatedTsNotBetween(LocalDateTime value1, LocalDateTime value2) { + addCriterion("updated_ts not between", value1, value2, "updatedTs"); + return (Criteria) this; + } + + public Criteria andSsoKeyIsNull() { + addCriterion("sso_key is null"); + return (Criteria) this; + } + + public Criteria andSsoKeyIsNotNull() { + addCriterion("sso_key is not null"); + return (Criteria) this; + } + + public Criteria andSsoKeyEqualTo(String value) { + addCriterion("sso_key =", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyNotEqualTo(String value) { + addCriterion("sso_key <>", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyGreaterThan(String value) { + addCriterion("sso_key >", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyGreaterThanOrEqualTo(String value) { + addCriterion("sso_key >=", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyLessThan(String value) { + addCriterion("sso_key <", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyLessThanOrEqualTo(String value) { + addCriterion("sso_key <=", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyLike(String value) { + addCriterion("sso_key like", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyNotLike(String value) { + addCriterion("sso_key not like", value, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyIn(List values) { + addCriterion("sso_key in", values, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyNotIn(List values) { + addCriterion("sso_key not in", values, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyBetween(String value1, String value2) { + addCriterion("sso_key between", value1, value2, "ssoKey"); + return (Criteria) this; + } + + public Criteria andSsoKeyNotBetween(String value1, String value2) { + addCriterion("sso_key not between", value1, value2, "ssoKey"); + return (Criteria) this; + } + + public Criteria andActiveFlagIsNull() { + addCriterion("active_flag is null"); + return (Criteria) this; + } + + public Criteria andActiveFlagIsNotNull() { + addCriterion("active_flag is not null"); + return (Criteria) this; + } + + public Criteria andActiveFlagEqualTo(Boolean value) { + addCriterion("active_flag =", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotEqualTo(Boolean value) { + addCriterion("active_flag <>", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagGreaterThan(Boolean value) { + addCriterion("active_flag >", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagGreaterThanOrEqualTo(Boolean value) { + addCriterion("active_flag >=", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagLessThan(Boolean value) { + addCriterion("active_flag <", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagLessThanOrEqualTo(Boolean value) { + addCriterion("active_flag <=", value, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagIn(List values) { + addCriterion("active_flag in", values, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotIn(List values) { + addCriterion("active_flag not in", values, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagBetween(Boolean value1, Boolean value2) { + addCriterion("active_flag between", value1, value2, "activeFlag"); + return (Criteria) this; + } + + public Criteria andActiveFlagNotBetween(Boolean value1, Boolean value2) { + addCriterion("active_flag not between", value1, value2, "activeFlag"); + return (Criteria) this; + } + + public Criteria andDisplayNameIsNull() { + addCriterion("display_name is null"); + return (Criteria) this; + } + + public Criteria andDisplayNameIsNotNull() { + addCriterion("display_name is not null"); + return (Criteria) this; + } + + public Criteria andDisplayNameEqualTo(String value) { + addCriterion("display_name =", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameNotEqualTo(String value) { + addCriterion("display_name <>", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameGreaterThan(String value) { + addCriterion("display_name >", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameGreaterThanOrEqualTo(String value) { + addCriterion("display_name >=", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameLessThan(String value) { + addCriterion("display_name <", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameLessThanOrEqualTo(String value) { + addCriterion("display_name <=", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameLike(String value) { + addCriterion("display_name like", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameNotLike(String value) { + addCriterion("display_name not like", value, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameIn(List values) { + addCriterion("display_name in", values, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameNotIn(List values) { + addCriterion("display_name not in", values, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameBetween(String value1, String value2) { + addCriterion("display_name between", value1, value2, "displayName"); + return (Criteria) this; + } + + public Criteria andDisplayNameNotBetween(String value1, String value2) { + addCriterion("display_name not between", value1, value2, "displayName"); + return (Criteria) this; + } + + public Criteria andUserNameIsNull() { + addCriterion("user_name is null"); + return (Criteria) this; + } + + public Criteria andUserNameIsNotNull() { + addCriterion("user_name is not null"); + return (Criteria) this; + } + + public Criteria andUserNameEqualTo(String value) { + addCriterion("user_name =", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotEqualTo(String value) { + addCriterion("user_name <>", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThan(String value) { + addCriterion("user_name >", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThanOrEqualTo(String value) { + addCriterion("user_name >=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThan(String value) { + addCriterion("user_name <", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThanOrEqualTo(String value) { + addCriterion("user_name <=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLike(String value) { + addCriterion("user_name like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotLike(String value) { + addCriterion("user_name not like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameIn(List values) { + addCriterion("user_name in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotIn(List values) { + addCriterion("user_name not in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameBetween(String value1, String value2) { + addCriterion("user_name between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotBetween(String value1, String value2) { + addCriterion("user_name not between", value1, value2, "userName"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.user + * + * @mbg.generated do_not_delete_during_merge Thu Feb 24 23:49:20 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDbo.java b/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDbo.java index 2af2049..f1294b6 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDbo.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDbo.java @@ -1,96 +1,96 @@ -package com.zfgc.zfgbb.dbo; - -import java.time.LocalDate; -import java.time.LocalDateTime; - -import com.zfgc.zfgbb.dao.AbstractDao; -import com.zfgc.zfgbb.dbo.AbstractDbo; - -public class UserPermissionViewDbo extends AbstractDbo { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_permission_view.user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer userId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_permission_view.permission_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private Integer permissionId; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_permission_view.permission_code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - private String permissionCode; - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_permission_view.user_id - * @return the value of zfgbb.user_permission_view.user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getUserId() { - return userId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_permission_view.user_id - * @param userId the value for zfgbb.user_permission_view.user_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setUserId(Integer userId) { - this.userId = userId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_permission_view.permission_id - * @return the value of zfgbb.user_permission_view.permission_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Integer getPermissionId() { - return permissionId; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_permission_view.permission_id - * @param permissionId the value for zfgbb.user_permission_view.permission_id - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setPermissionId(Integer permissionId) { - this.permissionId = permissionId; - } - - /** - * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_permission_view.permission_code - * @return the value of zfgbb.user_permission_view.permission_code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getPermissionCode() { - return permissionCode; - } - - /** - * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_permission_view.permission_code - * @param permissionCode the value for zfgbb.user_permission_view.permission_code - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setPermissionCode(String permissionCode) { - this.permissionCode = permissionCode; - } - - @Override - public Integer getPkId() { - return null; - } - - @Override - public LocalDateTime getUpdatedTime() { - // TODO Auto-generated method stub - return null; - } - - @Override - public LocalDateTime getCreatedTime() { - // TODO Auto-generated method stub - return null; - } +package com.zfgc.zfgbb.dbo; + +import java.time.LocalDate; +import java.time.LocalDateTime; + +import com.zfgc.zfgbb.dao.AbstractDao; +import com.zfgc.zfgbb.dbo.AbstractDbo; + +public class UserPermissionViewDbo extends AbstractDbo { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_permission_view.user_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer userId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_permission_view.permission_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private Integer permissionId; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.user_permission_view.permission_code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + private String permissionCode; + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_permission_view.user_id + * @return the value of zfgbb.user_permission_view.user_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getUserId() { + return userId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_permission_view.user_id + * @param userId the value for zfgbb.user_permission_view.user_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setUserId(Integer userId) { + this.userId = userId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_permission_view.permission_id + * @return the value of zfgbb.user_permission_view.permission_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Integer getPermissionId() { + return permissionId; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_permission_view.permission_id + * @param permissionId the value for zfgbb.user_permission_view.permission_id + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setPermissionId(Integer permissionId) { + this.permissionId = permissionId; + } + + /** + * This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.user_permission_view.permission_code + * @return the value of zfgbb.user_permission_view.permission_code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getPermissionCode() { + return permissionCode; + } + + /** + * This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.user_permission_view.permission_code + * @param permissionCode the value for zfgbb.user_permission_view.permission_code + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setPermissionCode(String permissionCode) { + this.permissionCode = permissionCode; + } + + @Override + public Integer getPkId() { + return null; + } + + @Override + public LocalDateTime getUpdatedTime() { + // TODO Auto-generated method stub + return null; + } + + @Override + public LocalDateTime getCreatedTime() { + // TODO Auto-generated method stub + return null; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDboExample.java b/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDboExample.java index d9ae79b..8b1c705 100644 --- a/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDboExample.java +++ b/src/main/java/com/zfgc/zfgbb/dbo/UserPermissionViewDboExample.java @@ -1,450 +1,450 @@ -package com.zfgc.zfgbb.dbo; - -import java.util.ArrayList; -import java.util.List; - -public class UserPermissionViewDboExample { - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected String orderByClause; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected boolean distinct; - /** - * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public UserPermissionViewDboExample() { - oredCriteria = new ArrayList<>(); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList<>(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List 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 andUserIdIsNull() { - addCriterion("user_id is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("user_id is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(Integer value) { - addCriterion("user_id =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(Integer value) { - addCriterion("user_id <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(Integer value) { - addCriterion("user_id >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("user_id >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(Integer value) { - addCriterion("user_id <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(Integer value) { - addCriterion("user_id <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("user_id in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("user_id not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(Integer value1, Integer value2) { - addCriterion("user_id between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("user_id not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andPermissionIdIsNull() { - addCriterion("permission_id is null"); - return (Criteria) this; - } - - public Criteria andPermissionIdIsNotNull() { - addCriterion("permission_id is not null"); - return (Criteria) this; - } - - public Criteria andPermissionIdEqualTo(Integer value) { - addCriterion("permission_id =", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdNotEqualTo(Integer value) { - addCriterion("permission_id <>", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdGreaterThan(Integer value) { - addCriterion("permission_id >", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdGreaterThanOrEqualTo(Integer value) { - addCriterion("permission_id >=", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdLessThan(Integer value) { - addCriterion("permission_id <", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdLessThanOrEqualTo(Integer value) { - addCriterion("permission_id <=", value, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdIn(List values) { - addCriterion("permission_id in", values, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdNotIn(List values) { - addCriterion("permission_id not in", values, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdBetween(Integer value1, Integer value2) { - addCriterion("permission_id between", value1, value2, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionIdNotBetween(Integer value1, Integer value2) { - addCriterion("permission_id not between", value1, value2, "permissionId"); - return (Criteria) this; - } - - public Criteria andPermissionCodeIsNull() { - addCriterion("permission_code is null"); - return (Criteria) this; - } - - public Criteria andPermissionCodeIsNotNull() { - addCriterion("permission_code is not null"); - return (Criteria) this; - } - - public Criteria andPermissionCodeEqualTo(String value) { - addCriterion("permission_code =", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotEqualTo(String value) { - addCriterion("permission_code <>", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeGreaterThan(String value) { - addCriterion("permission_code >", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeGreaterThanOrEqualTo(String value) { - addCriterion("permission_code >=", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeLessThan(String value) { - addCriterion("permission_code <", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeLessThanOrEqualTo(String value) { - addCriterion("permission_code <=", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeLike(String value) { - addCriterion("permission_code like", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotLike(String value) { - addCriterion("permission_code not like", value, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeIn(List values) { - addCriterion("permission_code in", values, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotIn(List values) { - addCriterion("permission_code not in", values, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeBetween(String value1, String value2) { - addCriterion("permission_code between", value1, value2, "permissionCode"); - return (Criteria) this; - } - - public Criteria andPermissionCodeNotBetween(String value1, String value2) { - addCriterion("permission_code not between", value1, value2, "permissionCode"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - 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); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table zfgbb.user_permission_view - * - * @mbg.generated do_not_delete_during_merge Sat Feb 26 19:36:36 EST 2022 - */ - public static class Criteria extends GeneratedCriteria { - protected Criteria() { - super(); - } - } +package com.zfgc.zfgbb.dbo; + +import java.util.ArrayList; +import java.util.List; + +public class UserPermissionViewDboExample { + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected String orderByClause; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected boolean distinct; + /** + * This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public UserPermissionViewDboExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Integer value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Integer value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Integer value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Integer value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Integer value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Integer value1, Integer value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andPermissionIdIsNull() { + addCriterion("permission_id is null"); + return (Criteria) this; + } + + public Criteria andPermissionIdIsNotNull() { + addCriterion("permission_id is not null"); + return (Criteria) this; + } + + public Criteria andPermissionIdEqualTo(Integer value) { + addCriterion("permission_id =", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotEqualTo(Integer value) { + addCriterion("permission_id <>", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdGreaterThan(Integer value) { + addCriterion("permission_id >", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdGreaterThanOrEqualTo(Integer value) { + addCriterion("permission_id >=", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdLessThan(Integer value) { + addCriterion("permission_id <", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdLessThanOrEqualTo(Integer value) { + addCriterion("permission_id <=", value, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdIn(List values) { + addCriterion("permission_id in", values, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotIn(List values) { + addCriterion("permission_id not in", values, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdBetween(Integer value1, Integer value2) { + addCriterion("permission_id between", value1, value2, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotBetween(Integer value1, Integer value2) { + addCriterion("permission_id not between", value1, value2, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionCodeIsNull() { + addCriterion("permission_code is null"); + return (Criteria) this; + } + + public Criteria andPermissionCodeIsNotNull() { + addCriterion("permission_code is not null"); + return (Criteria) this; + } + + public Criteria andPermissionCodeEqualTo(String value) { + addCriterion("permission_code =", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotEqualTo(String value) { + addCriterion("permission_code <>", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeGreaterThan(String value) { + addCriterion("permission_code >", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeGreaterThanOrEqualTo(String value) { + addCriterion("permission_code >=", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeLessThan(String value) { + addCriterion("permission_code <", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeLessThanOrEqualTo(String value) { + addCriterion("permission_code <=", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeLike(String value) { + addCriterion("permission_code like", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotLike(String value) { + addCriterion("permission_code not like", value, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeIn(List values) { + addCriterion("permission_code in", values, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotIn(List values) { + addCriterion("permission_code not in", values, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeBetween(String value1, String value2) { + addCriterion("permission_code between", value1, value2, "permissionCode"); + return (Criteria) this; + } + + public Criteria andPermissionCodeNotBetween(String value1, String value2) { + addCriterion("permission_code not between", value1, value2, "permissionCode"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + 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); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table zfgbb.user_permission_view + * + * @mbg.generated do_not_delete_during_merge Sat Feb 26 19:36:36 EST 2022 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/exception/ZfgcNotFoundException.java b/src/main/java/com/zfgc/zfgbb/exception/ZfgcNotFoundException.java index 68ce7d6..0a9d2ef 100644 --- a/src/main/java/com/zfgc/zfgbb/exception/ZfgcNotFoundException.java +++ b/src/main/java/com/zfgc/zfgbb/exception/ZfgcNotFoundException.java @@ -1,5 +1,5 @@ -package com.zfgc.zfgbb.exception; - -public class ZfgcNotFoundException extends RuntimeException { - +package com.zfgc.zfgbb.exception; + +public class ZfgcNotFoundException extends RuntimeException { + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/exception/ZfgcUnauthorizedException.java b/src/main/java/com/zfgc/zfgbb/exception/ZfgcUnauthorizedException.java new file mode 100644 index 0000000..c154ab9 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/exception/ZfgcUnauthorizedException.java @@ -0,0 +1,11 @@ +package com.zfgc.zfgbb.exception; + +import com.zfgc.zfgbb.model.User; + +public class ZfgcUnauthorizedException extends RuntimeException { + + public ZfgcUnauthorizedException(String message, User user) { + super("Unauthorized action by user " + user.getUserId() + ". Detailed Message: " + message); + } + +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/exception/RuntimeExceptionHandler.java b/src/main/java/com/zfgc/zfgbb/exception/handlers/RuntimeExceptionHandler.java similarity index 93% rename from src/main/java/com/zfgc/zfgbb/exception/RuntimeExceptionHandler.java rename to src/main/java/com/zfgc/zfgbb/exception/handlers/RuntimeExceptionHandler.java index 459bd4b..046a5c5 100644 --- a/src/main/java/com/zfgc/zfgbb/exception/RuntimeExceptionHandler.java +++ b/src/main/java/com/zfgc/zfgbb/exception/handlers/RuntimeExceptionHandler.java @@ -1,25 +1,24 @@ -package com.zfgc.zfgbb.exception; - -import java.util.ConcurrentModificationException; - -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.ControllerAdvice; -import org.springframework.web.bind.annotation.ExceptionHandler; - -@ControllerAdvice -public class RuntimeExceptionHandler { - - /*@ExceptionHandler(value=RuntimeException.class) - public ResponseEntity defaultErrorHandler(HttpServletRequest req, Exception e) { - //LOGGER.error("An unexpected error occured.", e); - return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("An unexpected error occured. Please contact an administrator for assistance."); - } - - @ExceptionHandler(value=ConcurrentModificationException.class) - public ResponseEntity concurrentErrorHandler(HttpServletRequest req, ConcurrentModificationException e) { - //LOGGER.error("An unexpected error occured.", e); - return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("A concurrent modification error occured. Please refresh the page and try again."); - }*/ - -} +package com.zfgc.zfgbb.exception.handlers; + +import java.util.ConcurrentModificationException; + +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; + +public class RuntimeExceptionHandler { + + /*@ExceptionHandler(value=RuntimeException.class) + public ResponseEntity defaultErrorHandler(HttpServletRequest req, Exception e) { + //LOGGER.error("An unexpected error occured.", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("An unexpected error occured. Please contact an administrator for assistance."); + } + + @ExceptionHandler(value=ConcurrentModificationException.class) + public ResponseEntity concurrentErrorHandler(HttpServletRequest req, ConcurrentModificationException e) { + //LOGGER.error("An unexpected error occured.", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("A concurrent modification error occured. Please refresh the page and try again."); + }*/ + +} diff --git a/src/main/java/com/zfgc/zfgbb/exception/handlers/ZfgcUnauthorizedExceptionHandler.java b/src/main/java/com/zfgc/zfgbb/exception/handlers/ZfgcUnauthorizedExceptionHandler.java new file mode 100644 index 0000000..cf6210a --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/exception/handlers/ZfgcUnauthorizedExceptionHandler.java @@ -0,0 +1,20 @@ +package com.zfgc.zfgbb.exception.handlers; + +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; + +import com.zfgc.zfgbb.exception.ZfgcUnauthorizedException; + +import jakarta.servlet.http.HttpServletRequest; + +@ControllerAdvice +public class ZfgcUnauthorizedExceptionHandler { + + @ExceptionHandler(value=ZfgcUnauthorizedException.class) + public ResponseEntity concurrentErrorHandler(HttpServletRequest req, ZfgcUnauthorizedException e) { + return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body("Unauthorized access attempted."); + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/mappers/AbstractMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/AbstractMapper.java index 3ee443b..7bcd2e5 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/AbstractMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/AbstractMapper.java @@ -1,5 +1,5 @@ -package com.zfgc.zfgbb.mappers; - -public abstract class AbstractMapper { - +package com.zfgc.zfgbb.mappers; + +public abstract class AbstractMapper { + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.java index 835600d..329c6ec 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.java @@ -1,77 +1,77 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.AttributeDataTypeDbo; -import com.zfgc.zfgbb.dbo.AttributeDataTypeDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface AttributeDataTypeDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(AttributeDataTypeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(AttributeDataTypeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer attributeDataTypeId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(AttributeDataTypeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(AttributeDataTypeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(AttributeDataTypeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - AttributeDataTypeDbo selectByPrimaryKey(Integer attributeDataTypeId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") AttributeDataTypeDbo record, - @Param("example") AttributeDataTypeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") AttributeDataTypeDbo record, - @Param("example") AttributeDataTypeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(AttributeDataTypeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(AttributeDataTypeDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.AttributeDataTypeDbo; +import com.zfgc.zfgbb.dbo.AttributeDataTypeDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface AttributeDataTypeDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(AttributeDataTypeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(AttributeDataTypeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer attributeDataTypeId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(AttributeDataTypeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(AttributeDataTypeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(AttributeDataTypeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + AttributeDataTypeDbo selectByPrimaryKey(Integer attributeDataTypeId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") AttributeDataTypeDbo record, + @Param("example") AttributeDataTypeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") AttributeDataTypeDbo record, + @Param("example") AttributeDataTypeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(AttributeDataTypeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.attribute_data_type + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(AttributeDataTypeDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.xml index 23ca947..6ae4332 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/AttributeDataTypeDboMapper.xml @@ -1,235 +1,235 @@ - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - attribute_data_type_id, type_name, created_ts, updated_ts - - - - - - delete from zfgbb.attribute_data_type - where attribute_data_type_id = #{attributeDataTypeId,jdbcType=INTEGER} - - - - delete from zfgbb.attribute_data_type - - - - - - - insert into zfgbb.attribute_data_type (type_name) - values (#{typeName,jdbcType=VARCHAR}) - - - - insert into zfgbb.attribute_data_type - - - type_name, - - - - - #{typeName,jdbcType=VARCHAR}, - - - - - - - update zfgbb.attribute_data_type - - - attribute_data_type_id = #{record.attributeDataTypeId,jdbcType=INTEGER}, - - - type_name = #{record.typeName,jdbcType=VARCHAR}, - - - - - - - - - update zfgbb.attribute_data_type - set attribute_data_type_id = #{record.attributeDataTypeId,jdbcType=INTEGER}, - type_name = #{record.typeName,jdbcType=VARCHAR} - - - - - - - update zfgbb.attribute_data_type - - - type_name = #{typeName,jdbcType=VARCHAR}, - - - where attribute_data_type_id = #{attributeDataTypeId,jdbcType=INTEGER} - - - - update zfgbb.attribute_data_type - set type_name = #{typeName,jdbcType=VARCHAR} - where attribute_data_type_id = #{attributeDataTypeId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + attribute_data_type_id, type_name, created_ts, updated_ts + + + + + + delete from zfgbb.attribute_data_type + where attribute_data_type_id = #{attributeDataTypeId,jdbcType=INTEGER} + + + + delete from zfgbb.attribute_data_type + + + + + + + insert into zfgbb.attribute_data_type (type_name) + values (#{typeName,jdbcType=VARCHAR}) + + + + insert into zfgbb.attribute_data_type + + + type_name, + + + + + #{typeName,jdbcType=VARCHAR}, + + + + + + + update zfgbb.attribute_data_type + + + attribute_data_type_id = #{record.attributeDataTypeId,jdbcType=INTEGER}, + + + type_name = #{record.typeName,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.attribute_data_type + set attribute_data_type_id = #{record.attributeDataTypeId,jdbcType=INTEGER}, + type_name = #{record.typeName,jdbcType=VARCHAR} + + + + + + + update zfgbb.attribute_data_type + + + type_name = #{typeName,jdbcType=VARCHAR}, + + + where attribute_data_type_id = #{attributeDataTypeId,jdbcType=INTEGER} + + + + update zfgbb.attribute_data_type + set type_name = #{typeName,jdbcType=VARCHAR} + where attribute_data_type_id = #{attributeDataTypeId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/AvatarDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/AvatarDboMapper.java new file mode 100644 index 0000000..ef9594b --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/AvatarDboMapper.java @@ -0,0 +1,75 @@ +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.AvatarDbo; +import com.zfgc.zfgbb.dbo.AvatarDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface AvatarDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + long countByExample(AvatarDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int deleteByExample(AvatarDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int deleteByPrimaryKey(Integer avatarId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int insert(AvatarDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int insertSelective(AvatarDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + List selectByExample(AvatarDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + AvatarDbo selectByPrimaryKey(Integer avatarId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int updateByExampleSelective(@Param("record") AvatarDbo record, @Param("example") AvatarDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int updateByExample(@Param("record") AvatarDbo record, @Param("example") AvatarDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int updateByPrimaryKeySelective(AvatarDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.avatar + * @mbg.generated Sun Sep 29 14:51:19 EDT 2024 + */ + int updateByPrimaryKey(AvatarDbo record); +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/AvatarDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/AvatarDboMapper.xml new file mode 100644 index 0000000..f13807e --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/AvatarDboMapper.xml @@ -0,0 +1,267 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + avatar_id, url, user_id, active_flag, created_ts, updated_ts + + + + + + delete from zfgbb.avatar + where avatar_id = #{avatarId,jdbcType=INTEGER} + + + + delete from zfgbb.avatar + + + + + + + insert into zfgbb.avatar (url, user_id, active_flag + ) + values (#{url,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, #{activeFlag,jdbcType=BIT} + ) + + + + insert into zfgbb.avatar + + + url, + + + user_id, + + + active_flag, + + + + + #{url,jdbcType=VARCHAR}, + + + #{userId,jdbcType=INTEGER}, + + + #{activeFlag,jdbcType=BIT}, + + + + + + + update zfgbb.avatar + + + avatar_id = #{record.avatarId,jdbcType=INTEGER}, + + + url = #{record.url,jdbcType=VARCHAR}, + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + active_flag = #{record.activeFlag,jdbcType=BIT}, + + + + + + + + + update zfgbb.avatar + set avatar_id = #{record.avatarId,jdbcType=INTEGER}, + url = #{record.url,jdbcType=VARCHAR}, + user_id = #{record.userId,jdbcType=INTEGER}, + active_flag = #{record.activeFlag,jdbcType=BIT} + + + + + + + update zfgbb.avatar + + + url = #{url,jdbcType=VARCHAR}, + + + user_id = #{userId,jdbcType=INTEGER}, + + + active_flag = #{activeFlag,jdbcType=BIT}, + + + where avatar_id = #{avatarId,jdbcType=INTEGER} + + + + update zfgbb.avatar + set url = #{url,jdbcType=VARCHAR}, + user_id = #{userId,jdbcType=INTEGER}, + active_flag = #{activeFlag,jdbcType=BIT} + where avatar_id = #{avatarId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.java index 52221e7..3136f0f 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.java @@ -1,77 +1,77 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.BBCodeAttributeDbo; -import com.zfgc.zfgbb.dbo.BBCodeAttributeDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface BBCodeAttributeDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(BBCodeAttributeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(BBCodeAttributeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer bbCodeAttributeId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(BBCodeAttributeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(BBCodeAttributeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(BBCodeAttributeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - BBCodeAttributeDbo selectByPrimaryKey(Integer bbCodeAttributeId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") BBCodeAttributeDbo record, - @Param("example") BBCodeAttributeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") BBCodeAttributeDbo record, - @Param("example") BBCodeAttributeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(BBCodeAttributeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(BBCodeAttributeDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.BBCodeAttributeDbo; +import com.zfgc.zfgbb.dbo.BBCodeAttributeDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface BBCodeAttributeDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(BBCodeAttributeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(BBCodeAttributeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer bbCodeAttributeId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(BBCodeAttributeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(BBCodeAttributeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(BBCodeAttributeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + BBCodeAttributeDbo selectByPrimaryKey(Integer bbCodeAttributeId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") BBCodeAttributeDbo record, + @Param("example") BBCodeAttributeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") BBCodeAttributeDbo record, + @Param("example") BBCodeAttributeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(BBCodeAttributeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(BBCodeAttributeDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.xml index 555b10c..51813c9 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeDboMapper.xml @@ -1,283 +1,283 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - bb_code_attribute_id, attribute_data_type, attribute_index, bb_code_attribute_mode_id, - name, created_ts, updated_ts - - - - - - delete from zfgbb.bb_code_attribute - where bb_code_attribute_id = #{bbCodeAttributeId,jdbcType=INTEGER} - - - - delete from zfgbb.bb_code_attribute - - - - - - - insert into zfgbb.bb_code_attribute (attribute_data_type, attribute_index, - bb_code_attribute_mode_id, name) - values (#{attributeDataType,jdbcType=INTEGER}, #{attributeIndex,jdbcType=INTEGER}, - #{bbCodeAttributeModeId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}) - - - - insert into zfgbb.bb_code_attribute - - - attribute_data_type, - - - attribute_index, - - - bb_code_attribute_mode_id, - - - name, - - - - - #{attributeDataType,jdbcType=INTEGER}, - - - #{attributeIndex,jdbcType=INTEGER}, - - - #{bbCodeAttributeModeId,jdbcType=INTEGER}, - - - #{name,jdbcType=VARCHAR}, - - - - - - - update zfgbb.bb_code_attribute - - - bb_code_attribute_id = #{record.bbCodeAttributeId,jdbcType=INTEGER}, - - - attribute_data_type = #{record.attributeDataType,jdbcType=INTEGER}, - - - attribute_index = #{record.attributeIndex,jdbcType=INTEGER}, - - - bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - - - - - - - update zfgbb.bb_code_attribute - set bb_code_attribute_id = #{record.bbCodeAttributeId,jdbcType=INTEGER}, - attribute_data_type = #{record.attributeDataType,jdbcType=INTEGER}, - attribute_index = #{record.attributeIndex,jdbcType=INTEGER}, - bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, - name = #{record.name,jdbcType=VARCHAR} - - - - - - - update zfgbb.bb_code_attribute - - - attribute_data_type = #{attributeDataType,jdbcType=INTEGER}, - - - attribute_index = #{attributeIndex,jdbcType=INTEGER}, - - - bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER}, - - - name = #{name,jdbcType=VARCHAR}, - - - where bb_code_attribute_id = #{bbCodeAttributeId,jdbcType=INTEGER} - - - - update zfgbb.bb_code_attribute - set attribute_data_type = #{attributeDataType,jdbcType=INTEGER}, - attribute_index = #{attributeIndex,jdbcType=INTEGER}, - bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER}, - name = #{name,jdbcType=VARCHAR} - where bb_code_attribute_id = #{bbCodeAttributeId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + bb_code_attribute_id, attribute_data_type, attribute_index, bb_code_attribute_mode_id, + name, created_ts, updated_ts + + + + + + delete from zfgbb.bb_code_attribute + where bb_code_attribute_id = #{bbCodeAttributeId,jdbcType=INTEGER} + + + + delete from zfgbb.bb_code_attribute + + + + + + + insert into zfgbb.bb_code_attribute (attribute_data_type, attribute_index, + bb_code_attribute_mode_id, name) + values (#{attributeDataType,jdbcType=INTEGER}, #{attributeIndex,jdbcType=INTEGER}, + #{bbCodeAttributeModeId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}) + + + + insert into zfgbb.bb_code_attribute + + + attribute_data_type, + + + attribute_index, + + + bb_code_attribute_mode_id, + + + name, + + + + + #{attributeDataType,jdbcType=INTEGER}, + + + #{attributeIndex,jdbcType=INTEGER}, + + + #{bbCodeAttributeModeId,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + + + + + update zfgbb.bb_code_attribute + + + bb_code_attribute_id = #{record.bbCodeAttributeId,jdbcType=INTEGER}, + + + attribute_data_type = #{record.attributeDataType,jdbcType=INTEGER}, + + + attribute_index = #{record.attributeIndex,jdbcType=INTEGER}, + + + bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.bb_code_attribute + set bb_code_attribute_id = #{record.bbCodeAttributeId,jdbcType=INTEGER}, + attribute_data_type = #{record.attributeDataType,jdbcType=INTEGER}, + attribute_index = #{record.attributeIndex,jdbcType=INTEGER}, + bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, + name = #{record.name,jdbcType=VARCHAR} + + + + + + + update zfgbb.bb_code_attribute + + + attribute_data_type = #{attributeDataType,jdbcType=INTEGER}, + + + attribute_index = #{attributeIndex,jdbcType=INTEGER}, + + + bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER}, + + + name = #{name,jdbcType=VARCHAR}, + + + where bb_code_attribute_id = #{bbCodeAttributeId,jdbcType=INTEGER} + + + + update zfgbb.bb_code_attribute + set attribute_data_type = #{attributeDataType,jdbcType=INTEGER}, + attribute_index = #{attributeIndex,jdbcType=INTEGER}, + bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER}, + name = #{name,jdbcType=VARCHAR} + where bb_code_attribute_id = #{bbCodeAttributeId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.java index 3c8adcd..f0fa433 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.java @@ -1,77 +1,77 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDbo; -import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface BBCodeAttributeModeDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(BBCodeAttributeModeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(BBCodeAttributeModeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer bbCodeAttributeModeId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(BBCodeAttributeModeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(BBCodeAttributeModeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(BBCodeAttributeModeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - BBCodeAttributeModeDbo selectByPrimaryKey(Integer bbCodeAttributeModeId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") BBCodeAttributeModeDbo record, - @Param("example") BBCodeAttributeModeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") BBCodeAttributeModeDbo record, - @Param("example") BBCodeAttributeModeDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(BBCodeAttributeModeDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(BBCodeAttributeModeDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDbo; +import com.zfgc.zfgbb.dbo.BBCodeAttributeModeDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface BBCodeAttributeModeDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(BBCodeAttributeModeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(BBCodeAttributeModeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer bbCodeAttributeModeId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(BBCodeAttributeModeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(BBCodeAttributeModeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(BBCodeAttributeModeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + BBCodeAttributeModeDbo selectByPrimaryKey(Integer bbCodeAttributeModeId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") BBCodeAttributeModeDbo record, + @Param("example") BBCodeAttributeModeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") BBCodeAttributeModeDbo record, + @Param("example") BBCodeAttributeModeDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(BBCodeAttributeModeDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_attribute_mode + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(BBCodeAttributeModeDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.xml index 0eb5cd9..7ead148 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeAttributeModeDboMapper.xml @@ -1,300 +1,300 @@ - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - bb_code_attribute_mode_id, bb_code_config_id, content_is_attribute_flag, open_tag, - close_tag, output_content_flag, created_ts, updated_ts - - - - - - delete from zfgbb.bb_code_attribute_mode - where bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER} - - - - delete from zfgbb.bb_code_attribute_mode - - - - - - - insert into zfgbb.bb_code_attribute_mode (bb_code_config_id, content_is_attribute_flag, - open_tag, close_tag, output_content_flag - ) - values (#{bbCodeConfigId,jdbcType=INTEGER}, #{contentIsAttributeFlag,jdbcType=BIT}, - #{openTag,jdbcType=VARCHAR}, #{closeTag,jdbcType=VARCHAR}, #{outputContentFlag,jdbcType=BIT} - ) - - - - insert into zfgbb.bb_code_attribute_mode - - - bb_code_config_id, - - - content_is_attribute_flag, - - - open_tag, - - - close_tag, - - - output_content_flag, - - - - - #{bbCodeConfigId,jdbcType=INTEGER}, - - - #{contentIsAttributeFlag,jdbcType=BIT}, - - - #{openTag,jdbcType=VARCHAR}, - - - #{closeTag,jdbcType=VARCHAR}, - - - #{outputContentFlag,jdbcType=BIT}, - - - - - - - update zfgbb.bb_code_attribute_mode - - - bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, - - - bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, - - - content_is_attribute_flag = #{record.contentIsAttributeFlag,jdbcType=BIT}, - - - open_tag = #{record.openTag,jdbcType=VARCHAR}, - - - close_tag = #{record.closeTag,jdbcType=VARCHAR}, - - - output_content_flag = #{record.outputContentFlag,jdbcType=BIT}, - - - - - - - - - update zfgbb.bb_code_attribute_mode - set bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, - bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, - content_is_attribute_flag = #{record.contentIsAttributeFlag,jdbcType=BIT}, - open_tag = #{record.openTag,jdbcType=VARCHAR}, - close_tag = #{record.closeTag,jdbcType=VARCHAR}, - output_content_flag = #{record.outputContentFlag,jdbcType=BIT} - - - - - - - update zfgbb.bb_code_attribute_mode - - - bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER}, - - - content_is_attribute_flag = #{contentIsAttributeFlag,jdbcType=BIT}, - - - open_tag = #{openTag,jdbcType=VARCHAR}, - - - close_tag = #{closeTag,jdbcType=VARCHAR}, - - - output_content_flag = #{outputContentFlag,jdbcType=BIT}, - - - where bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER} - - - - update zfgbb.bb_code_attribute_mode - set bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER}, - content_is_attribute_flag = #{contentIsAttributeFlag,jdbcType=BIT}, - open_tag = #{openTag,jdbcType=VARCHAR}, - close_tag = #{closeTag,jdbcType=VARCHAR}, - output_content_flag = #{outputContentFlag,jdbcType=BIT} - where bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + bb_code_attribute_mode_id, bb_code_config_id, content_is_attribute_flag, open_tag, + close_tag, output_content_flag, created_ts, updated_ts + + + + + + delete from zfgbb.bb_code_attribute_mode + where bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER} + + + + delete from zfgbb.bb_code_attribute_mode + + + + + + + insert into zfgbb.bb_code_attribute_mode (bb_code_config_id, content_is_attribute_flag, + open_tag, close_tag, output_content_flag + ) + values (#{bbCodeConfigId,jdbcType=INTEGER}, #{contentIsAttributeFlag,jdbcType=BIT}, + #{openTag,jdbcType=VARCHAR}, #{closeTag,jdbcType=VARCHAR}, #{outputContentFlag,jdbcType=BIT} + ) + + + + insert into zfgbb.bb_code_attribute_mode + + + bb_code_config_id, + + + content_is_attribute_flag, + + + open_tag, + + + close_tag, + + + output_content_flag, + + + + + #{bbCodeConfigId,jdbcType=INTEGER}, + + + #{contentIsAttributeFlag,jdbcType=BIT}, + + + #{openTag,jdbcType=VARCHAR}, + + + #{closeTag,jdbcType=VARCHAR}, + + + #{outputContentFlag,jdbcType=BIT}, + + + + + + + update zfgbb.bb_code_attribute_mode + + + bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, + + + bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, + + + content_is_attribute_flag = #{record.contentIsAttributeFlag,jdbcType=BIT}, + + + open_tag = #{record.openTag,jdbcType=VARCHAR}, + + + close_tag = #{record.closeTag,jdbcType=VARCHAR}, + + + output_content_flag = #{record.outputContentFlag,jdbcType=BIT}, + + + + + + + + + update zfgbb.bb_code_attribute_mode + set bb_code_attribute_mode_id = #{record.bbCodeAttributeModeId,jdbcType=INTEGER}, + bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, + content_is_attribute_flag = #{record.contentIsAttributeFlag,jdbcType=BIT}, + open_tag = #{record.openTag,jdbcType=VARCHAR}, + close_tag = #{record.closeTag,jdbcType=VARCHAR}, + output_content_flag = #{record.outputContentFlag,jdbcType=BIT} + + + + + + + update zfgbb.bb_code_attribute_mode + + + bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER}, + + + content_is_attribute_flag = #{contentIsAttributeFlag,jdbcType=BIT}, + + + open_tag = #{openTag,jdbcType=VARCHAR}, + + + close_tag = #{closeTag,jdbcType=VARCHAR}, + + + output_content_flag = #{outputContentFlag,jdbcType=BIT}, + + + where bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER} + + + + update zfgbb.bb_code_attribute_mode + set bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER}, + content_is_attribute_flag = #{contentIsAttributeFlag,jdbcType=BIT}, + open_tag = #{openTag,jdbcType=VARCHAR}, + close_tag = #{closeTag,jdbcType=VARCHAR}, + output_content_flag = #{outputContentFlag,jdbcType=BIT} + where bb_code_attribute_mode_id = #{bbCodeAttributeModeId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.java index 2a3d84a..e3e1b10 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.java @@ -1,76 +1,76 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.BBCodeConfigDbo; -import com.zfgc.zfgbb.dbo.BBCodeConfigDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface BBCodeConfigDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(BBCodeConfigDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(BBCodeConfigDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer bbCodeConfigId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(BBCodeConfigDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(BBCodeConfigDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(BBCodeConfigDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - BBCodeConfigDbo selectByPrimaryKey(Integer bbCodeConfigId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") BBCodeConfigDbo record, - @Param("example") BBCodeConfigDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") BBCodeConfigDbo record, @Param("example") BBCodeConfigDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(BBCodeConfigDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(BBCodeConfigDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.BBCodeConfigDbo; +import com.zfgc.zfgbb.dbo.BBCodeConfigDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface BBCodeConfigDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(BBCodeConfigDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(BBCodeConfigDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer bbCodeConfigId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(BBCodeConfigDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(BBCodeConfigDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(BBCodeConfigDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + BBCodeConfigDbo selectByPrimaryKey(Integer bbCodeConfigId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") BBCodeConfigDbo record, + @Param("example") BBCodeConfigDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") BBCodeConfigDbo record, @Param("example") BBCodeConfigDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(BBCodeConfigDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.bb_code_config + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(BBCodeConfigDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.xml index 78a241f..7a41d0a 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/BBCodeConfigDboMapper.xml @@ -1,267 +1,267 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - bb_code_config_id, code, end_tag, process_content_flag, created_ts, updated_ts - - - - - - delete from zfgbb.bb_code_config - where bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER} - - - - delete from zfgbb.bb_code_config - - - - - - - insert into zfgbb.bb_code_config (code, end_tag, process_content_flag - ) - values (#{code,jdbcType=VARCHAR}, #{endTag,jdbcType=VARCHAR}, #{processContentFlag,jdbcType=BIT} - ) - - - - insert into zfgbb.bb_code_config - - - code, - - - end_tag, - - - process_content_flag, - - - - - #{code,jdbcType=VARCHAR}, - - - #{endTag,jdbcType=VARCHAR}, - - - #{processContentFlag,jdbcType=BIT}, - - - - - - - update zfgbb.bb_code_config - - - bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, - - - code = #{record.code,jdbcType=VARCHAR}, - - - end_tag = #{record.endTag,jdbcType=VARCHAR}, - - - process_content_flag = #{record.processContentFlag,jdbcType=BIT}, - - - - - - - - - update zfgbb.bb_code_config - set bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, - code = #{record.code,jdbcType=VARCHAR}, - end_tag = #{record.endTag,jdbcType=VARCHAR}, - process_content_flag = #{record.processContentFlag,jdbcType=BIT} - - - - - - - update zfgbb.bb_code_config - - - code = #{code,jdbcType=VARCHAR}, - - - end_tag = #{endTag,jdbcType=VARCHAR}, - - - process_content_flag = #{processContentFlag,jdbcType=BIT}, - - - where bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER} - - - - update zfgbb.bb_code_config - set code = #{code,jdbcType=VARCHAR}, - end_tag = #{endTag,jdbcType=VARCHAR}, - process_content_flag = #{processContentFlag,jdbcType=BIT} - where bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + bb_code_config_id, code, end_tag, process_content_flag, created_ts, updated_ts + + + + + + delete from zfgbb.bb_code_config + where bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER} + + + + delete from zfgbb.bb_code_config + + + + + + + insert into zfgbb.bb_code_config (code, end_tag, process_content_flag + ) + values (#{code,jdbcType=VARCHAR}, #{endTag,jdbcType=VARCHAR}, #{processContentFlag,jdbcType=BIT} + ) + + + + insert into zfgbb.bb_code_config + + + code, + + + end_tag, + + + process_content_flag, + + + + + #{code,jdbcType=VARCHAR}, + + + #{endTag,jdbcType=VARCHAR}, + + + #{processContentFlag,jdbcType=BIT}, + + + + + + + update zfgbb.bb_code_config + + + bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + end_tag = #{record.endTag,jdbcType=VARCHAR}, + + + process_content_flag = #{record.processContentFlag,jdbcType=BIT}, + + + + + + + + + update zfgbb.bb_code_config + set bb_code_config_id = #{record.bbCodeConfigId,jdbcType=INTEGER}, + code = #{record.code,jdbcType=VARCHAR}, + end_tag = #{record.endTag,jdbcType=VARCHAR}, + process_content_flag = #{record.processContentFlag,jdbcType=BIT} + + + + + + + update zfgbb.bb_code_config + + + code = #{code,jdbcType=VARCHAR}, + + + end_tag = #{endTag,jdbcType=VARCHAR}, + + + process_content_flag = #{processContentFlag,jdbcType=BIT}, + + + where bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER} + + + + update zfgbb.bb_code_config + set code = #{code,jdbcType=VARCHAR}, + end_tag = #{endTag,jdbcType=VARCHAR}, + process_content_flag = #{processContentFlag,jdbcType=BIT} + where bb_code_config_id = #{bbCodeConfigId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.java index c6ecc67..f6b75ee 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.java @@ -9,67 +9,67 @@ public interface BoardDboMapper { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ long countByExample(BoardDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int deleteByExample(BoardDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int deleteByPrimaryKey(Integer boardId); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int insert(BoardDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int insertSelective(BoardDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ List selectByExample(BoardDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ BoardDbo selectByPrimaryKey(Integer boardId); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int updateByExampleSelective(@Param("record") BoardDbo record, @Param("example") BoardDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int updateByExample(@Param("record") BoardDbo record, @Param("example") BoardDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int updateByPrimaryKeySelective(BoardDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Oct 13 16:34:56 EDT 2024 */ int updateByPrimaryKey(BoardDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.xml index 3a9de0a..0dbb95a 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/BoardDboMapper.xml @@ -5,7 +5,7 @@ @@ -13,12 +13,14 @@ + + @@ -52,7 +54,7 @@ @@ -86,15 +88,15 @@ - board_id, board_name, description, created_ts, updated_ts, category_id + board_id, board_name, description, created_ts, updated_ts, category_id, seqno, parent_board_id select count(*) from zfgbb.board @@ -196,7 +210,7 @@ update zfgbb.board @@ -212,6 +226,12 @@ category_id = #{record.categoryId,jdbcType=INTEGER}, + + seqno = #{record.seqno,jdbcType=INTEGER}, + + + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER}, + @@ -221,13 +241,15 @@ update zfgbb.board set board_id = #{record.boardId,jdbcType=INTEGER}, board_name = #{record.boardName,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR}, - category_id = #{record.categoryId,jdbcType=INTEGER} + category_id = #{record.categoryId,jdbcType=INTEGER}, + seqno = #{record.seqno,jdbcType=INTEGER}, + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER} @@ -236,7 +258,7 @@ update zfgbb.board @@ -249,6 +271,12 @@ category_id = #{categoryId,jdbcType=INTEGER}, + + seqno = #{seqno,jdbcType=INTEGER}, + + + parent_board_id = #{parentBoardId,jdbcType=INTEGER}, + where board_id = #{boardId,jdbcType=INTEGER} @@ -256,12 +284,14 @@ update zfgbb.board set board_name = #{boardName,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR}, - category_id = #{categoryId,jdbcType=INTEGER} + category_id = #{categoryId,jdbcType=INTEGER}, + seqno = #{seqno,jdbcType=INTEGER}, + parent_board_id = #{parentBoardId,jdbcType=INTEGER} where board_id = #{boardId,jdbcType=INTEGER} diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.java index 9371660..c74fe1b 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.java @@ -1,53 +1,53 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.BoardPermissionViewDbo; -import com.zfgc.zfgbb.dbo.BoardPermissionViewDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface BoardPermissionViewDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(BoardPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(BoardPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(BoardPermissionViewDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(BoardPermissionViewDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(BoardPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") BoardPermissionViewDbo record, - @Param("example") BoardPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") BoardPermissionViewDbo record, - @Param("example") BoardPermissionViewDboExample example); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.BoardPermissionViewDbo; +import com.zfgc.zfgbb.dbo.BoardPermissionViewDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface BoardPermissionViewDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(BoardPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(BoardPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(BoardPermissionViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(BoardPermissionViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(BoardPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") BoardPermissionViewDbo record, + @Param("example") BoardPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") BoardPermissionViewDbo record, + @Param("example") BoardPermissionViewDboExample example); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.xml index 68b3fd7..dc7946e 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/BoardPermissionViewDboMapper.xml @@ -1,219 +1,219 @@ - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - board_id, permission_id, permission_code, permission_name - - - - - delete from zfgbb.board_permission_view - - - - - - - insert into zfgbb.board_permission_view (board_id, permission_id, permission_code, - permission_name) - values (#{boardId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER}, #{permissionCode,jdbcType=VARCHAR}, - #{permissionName,jdbcType=VARCHAR}) - - - - insert into zfgbb.board_permission_view - - - board_id, - - - permission_id, - - - permission_code, - - - permission_name, - - - - - #{boardId,jdbcType=INTEGER}, - - - #{permissionId,jdbcType=INTEGER}, - - - #{permissionCode,jdbcType=VARCHAR}, - - - #{permissionName,jdbcType=VARCHAR}, - - - - - - - update zfgbb.board_permission_view - - - board_id = #{record.boardId,jdbcType=INTEGER}, - - - permission_id = #{record.permissionId,jdbcType=INTEGER}, - - - permission_code = #{record.permissionCode,jdbcType=VARCHAR}, - - - permission_name = #{record.permissionName,jdbcType=VARCHAR}, - - - - - - - - - update zfgbb.board_permission_view - set board_id = #{record.boardId,jdbcType=INTEGER}, - permission_id = #{record.permissionId,jdbcType=INTEGER}, - permission_code = #{record.permissionCode,jdbcType=VARCHAR}, - permission_name = #{record.permissionName,jdbcType=VARCHAR} - - - - + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + board_id, permission_id, permission_code, permission_name + + + + + delete from zfgbb.board_permission_view + + + + + + + insert into zfgbb.board_permission_view (board_id, permission_id, permission_code, + permission_name) + values (#{boardId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER}, #{permissionCode,jdbcType=VARCHAR}, + #{permissionName,jdbcType=VARCHAR}) + + + + insert into zfgbb.board_permission_view + + + board_id, + + + permission_id, + + + permission_code, + + + permission_name, + + + + + #{boardId,jdbcType=INTEGER}, + + + #{permissionId,jdbcType=INTEGER}, + + + #{permissionCode,jdbcType=VARCHAR}, + + + #{permissionName,jdbcType=VARCHAR}, + + + + + + + update zfgbb.board_permission_view + + + board_id = #{record.boardId,jdbcType=INTEGER}, + + + permission_id = #{record.permissionId,jdbcType=INTEGER}, + + + permission_code = #{record.permissionCode,jdbcType=VARCHAR}, + + + permission_name = #{record.permissionName,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.board_permission_view + set board_id = #{record.boardId,jdbcType=INTEGER}, + permission_id = #{record.permissionId,jdbcType=INTEGER}, + permission_code = #{record.permissionCode,jdbcType=VARCHAR}, + permission_name = #{record.permissionName,jdbcType=VARCHAR} + + + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BoardSummaryViewDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/BoardSummaryViewDboMapper.java new file mode 100644 index 0000000..ccbb260 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/BoardSummaryViewDboMapper.java @@ -0,0 +1,53 @@ +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.BoardSummaryViewDbo; +import com.zfgc.zfgbb.dbo.BoardSummaryViewDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface BoardSummaryViewDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + long countByExample(BoardSummaryViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + int deleteByExample(BoardSummaryViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + int insert(BoardSummaryViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + int insertSelective(BoardSummaryViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + List selectByExample(BoardSummaryViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + int updateByExampleSelective(@Param("record") BoardSummaryViewDbo record, + @Param("example") BoardSummaryViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board_summary + * @mbg.generated Sun Oct 13 23:30:46 EDT 2024 + */ + int updateByExample(@Param("record") BoardSummaryViewDbo record, + @Param("example") BoardSummaryViewDboExample example); +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/BoardSummaryViewDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/BoardSummaryViewDboMapper.xml new file mode 100644 index 0000000..4403d6b --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/BoardSummaryViewDboMapper.xml @@ -0,0 +1,315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + board_id, description, board_name, thread_count, post_count, latest_message_id, latest_thread_id, + latest_message_owner_id, latest_message_user_name, latest_message_created_ts, category_id, + parent_board_id + + + + + delete from zfgbb.board_summary + + + + + + + insert into zfgbb.board_summary (board_id, description, board_name, + thread_count, post_count, latest_message_id, + latest_thread_id, latest_message_owner_id, latest_message_user_name, + latest_message_created_ts, category_id, + parent_board_id) + values (#{boardId,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR}, #{boardName,jdbcType=VARCHAR}, + #{threadCount,jdbcType=BIGINT}, #{postCount,jdbcType=BIGINT}, #{latestMessageId,jdbcType=INTEGER}, + #{latestThreadId,jdbcType=INTEGER}, #{latestMessageOwnerId,jdbcType=INTEGER}, #{latestMessageUserName,jdbcType=VARCHAR}, + #{latestMessageCreatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, #{categoryId,jdbcType=INTEGER}, + #{parentBoardId,jdbcType=INTEGER}) + + + + insert into zfgbb.board_summary + + + board_id, + + + description, + + + board_name, + + + thread_count, + + + post_count, + + + latest_message_id, + + + latest_thread_id, + + + latest_message_owner_id, + + + latest_message_user_name, + + + latest_message_created_ts, + + + category_id, + + + parent_board_id, + + + + + #{boardId,jdbcType=INTEGER}, + + + #{description,jdbcType=VARCHAR}, + + + #{boardName,jdbcType=VARCHAR}, + + + #{threadCount,jdbcType=BIGINT}, + + + #{postCount,jdbcType=BIGINT}, + + + #{latestMessageId,jdbcType=INTEGER}, + + + #{latestThreadId,jdbcType=INTEGER}, + + + #{latestMessageOwnerId,jdbcType=INTEGER}, + + + #{latestMessageUserName,jdbcType=VARCHAR}, + + + #{latestMessageCreatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + #{categoryId,jdbcType=INTEGER}, + + + #{parentBoardId,jdbcType=INTEGER}, + + + + + + + update zfgbb.board_summary + + + board_id = #{record.boardId,jdbcType=INTEGER}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + board_name = #{record.boardName,jdbcType=VARCHAR}, + + + thread_count = #{record.threadCount,jdbcType=BIGINT}, + + + post_count = #{record.postCount,jdbcType=BIGINT}, + + + latest_message_id = #{record.latestMessageId,jdbcType=INTEGER}, + + + latest_thread_id = #{record.latestThreadId,jdbcType=INTEGER}, + + + latest_message_owner_id = #{record.latestMessageOwnerId,jdbcType=INTEGER}, + + + latest_message_user_name = #{record.latestMessageUserName,jdbcType=VARCHAR}, + + + latest_message_created_ts = #{record.latestMessageCreatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + category_id = #{record.categoryId,jdbcType=INTEGER}, + + + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.board_summary + set board_id = #{record.boardId,jdbcType=INTEGER}, + description = #{record.description,jdbcType=VARCHAR}, + board_name = #{record.boardName,jdbcType=VARCHAR}, + thread_count = #{record.threadCount,jdbcType=BIGINT}, + post_count = #{record.postCount,jdbcType=BIGINT}, + latest_message_id = #{record.latestMessageId,jdbcType=INTEGER}, + latest_thread_id = #{record.latestThreadId,jdbcType=INTEGER}, + latest_message_owner_id = #{record.latestMessageOwnerId,jdbcType=INTEGER}, + latest_message_user_name = #{record.latestMessageUserName,jdbcType=VARCHAR}, + latest_message_created_ts = #{record.latestMessageCreatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + category_id = #{record.categoryId,jdbcType=INTEGER}, + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER} + + + + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.java index 8bd1ad6..7d7405d 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.java @@ -1,75 +1,75 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.CategoryDbo; -import com.zfgc.zfgbb.dbo.CategoryDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface CategoryDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(CategoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(CategoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer categoryId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(CategoryDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(CategoryDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(CategoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - CategoryDbo selectByPrimaryKey(Integer categoryId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") CategoryDbo record, @Param("example") CategoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") CategoryDbo record, @Param("example") CategoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(CategoryDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(CategoryDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.CategoryDbo; +import com.zfgc.zfgbb.dbo.CategoryDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CategoryDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(CategoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(CategoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer categoryId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(CategoryDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(CategoryDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(CategoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + CategoryDbo selectByPrimaryKey(Integer categoryId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") CategoryDbo record, @Param("example") CategoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") CategoryDbo record, @Param("example") CategoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(CategoryDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.category + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(CategoryDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.xml index 6592a7c..d3f8295 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/CategoryDboMapper.xml @@ -1,267 +1,267 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - category_id, category_name, description, created_ts, updated_ts, parent_board_id - - - - - - delete from zfgbb.category - where category_id = #{categoryId,jdbcType=INTEGER} - - - - delete from zfgbb.category - - - - - - - insert into zfgbb.category (category_name, description, parent_board_id - ) - values (#{categoryName,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{parentBoardId,jdbcType=INTEGER} - ) - - - - insert into zfgbb.category - - - category_name, - - - description, - - - parent_board_id, - - - - - #{categoryName,jdbcType=VARCHAR}, - - - #{description,jdbcType=VARCHAR}, - - - #{parentBoardId,jdbcType=INTEGER}, - - - - - - - update zfgbb.category - - - category_id = #{record.categoryId,jdbcType=INTEGER}, - - - category_name = #{record.categoryName,jdbcType=VARCHAR}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - parent_board_id = #{record.parentBoardId,jdbcType=INTEGER}, - - - - - - - - - update zfgbb.category - set category_id = #{record.categoryId,jdbcType=INTEGER}, - category_name = #{record.categoryName,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=VARCHAR}, - parent_board_id = #{record.parentBoardId,jdbcType=INTEGER} - - - - - - - update zfgbb.category - - - category_name = #{categoryName,jdbcType=VARCHAR}, - - - description = #{description,jdbcType=VARCHAR}, - - - parent_board_id = #{parentBoardId,jdbcType=INTEGER}, - - - where category_id = #{categoryId,jdbcType=INTEGER} - - - - update zfgbb.category - set category_name = #{categoryName,jdbcType=VARCHAR}, - description = #{description,jdbcType=VARCHAR}, - parent_board_id = #{parentBoardId,jdbcType=INTEGER} - where category_id = #{categoryId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + category_id, category_name, description, created_ts, updated_ts, parent_board_id + + + + + + delete from zfgbb.category + where category_id = #{categoryId,jdbcType=INTEGER} + + + + delete from zfgbb.category + + + + + + + insert into zfgbb.category (category_name, description, parent_board_id + ) + values (#{categoryName,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{parentBoardId,jdbcType=INTEGER} + ) + + + + insert into zfgbb.category + + + category_name, + + + description, + + + parent_board_id, + + + + + #{categoryName,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{parentBoardId,jdbcType=INTEGER}, + + + + + + + update zfgbb.category + + + category_id = #{record.categoryId,jdbcType=INTEGER}, + + + category_name = #{record.categoryName,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.category + set category_id = #{record.categoryId,jdbcType=INTEGER}, + category_name = #{record.categoryName,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER} + + + + + + + update zfgbb.category + + + category_name = #{categoryName,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + parent_board_id = #{parentBoardId,jdbcType=INTEGER}, + + + where category_id = #{categoryId,jdbcType=INTEGER} + + + + update zfgbb.category + set category_name = #{categoryName,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + parent_board_id = #{parentBoardId,jdbcType=INTEGER} + where category_id = #{categoryId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/ChildBoardViewDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/ChildBoardViewDboMapper.java new file mode 100644 index 0000000..b4268a0 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/ChildBoardViewDboMapper.java @@ -0,0 +1,52 @@ +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.ChildBoardViewDbo; +import com.zfgc.zfgbb.dbo.ChildBoardViewDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ChildBoardViewDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + long countByExample(ChildBoardViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + int deleteByExample(ChildBoardViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + int insert(ChildBoardViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + int insertSelective(ChildBoardViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + List selectByExample(ChildBoardViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + int updateByExampleSelective(@Param("record") ChildBoardViewDbo record, + @Param("example") ChildBoardViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.child_board_view + * @mbg.generated Mon Oct 14 23:44:38 EDT 2024 + */ + int updateByExample(@Param("record") ChildBoardViewDbo record, @Param("example") ChildBoardViewDboExample example); +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/ChildBoardViewDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/ChildBoardViewDboMapper.xml new file mode 100644 index 0000000..fa6accb --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/ChildBoardViewDboMapper.xml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + board_id, board_name, parent_board_id + + + + + delete from zfgbb.child_board_view + + + + + + + insert into zfgbb.child_board_view (board_id, board_name, parent_board_id + ) + values (#{boardId,jdbcType=INTEGER}, #{boardName,jdbcType=VARCHAR}, #{parentBoardId,jdbcType=INTEGER} + ) + + + + insert into zfgbb.child_board_view + + + board_id, + + + board_name, + + + parent_board_id, + + + + + #{boardId,jdbcType=INTEGER}, + + + #{boardName,jdbcType=VARCHAR}, + + + #{parentBoardId,jdbcType=INTEGER}, + + + + + + + update zfgbb.child_board_view + + + board_id = #{record.boardId,jdbcType=INTEGER}, + + + board_name = #{record.boardName,jdbcType=VARCHAR}, + + + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.child_board_view + set board_id = #{record.boardId,jdbcType=INTEGER}, + board_name = #{record.boardName,jdbcType=VARCHAR}, + parent_board_id = #{record.parentBoardId,jdbcType=INTEGER} + + + + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/ContentResourceDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/ContentResourceDboMapper.java new file mode 100644 index 0000000..75fd4d6 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/ContentResourceDboMapper.java @@ -0,0 +1,96 @@ +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.ContentResourceDbo; +import com.zfgc.zfgbb.dbo.ContentResourceDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ContentResourceDboMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + long countByExample(ContentResourceDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int deleteByExample(ContentResourceDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int deleteByPrimaryKey(Integer contentResourceId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int insert(ContentResourceDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int insertSelective(ContentResourceDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + List selectByExample(ContentResourceDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + ContentResourceDbo selectByPrimaryKey(Integer contentResourceId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int updateByExampleSelective(@Param("record") ContentResourceDbo record, @Param("example") ContentResourceDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int updateByExample(@Param("record") ContentResourceDbo record, @Param("example") ContentResourceDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int updateByPrimaryKeySelective(ContentResourceDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.content_resource + * + * @mbg.generated Mon Oct 07 21:35:40 EDT 2024 + */ + int updateByPrimaryKey(ContentResourceDbo record); +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/ContentResourceDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/ContentResourceDboMapper.xml new file mode 100644 index 0000000..f59d53c --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/ContentResourceDboMapper.xml @@ -0,0 +1,315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + content_resource_id, content_type_id, uploaded_user_id, filename, checksum, file_ext, + mime_type, created_ts, updated_ts + + + + + + delete from zfgbb.content_resource + where content_resource_id = #{contentResourceId,jdbcType=INTEGER} + + + + delete from zfgbb.content_resource + + + + + + + insert into zfgbb.content_resource (content_type_id, uploaded_user_id, filename, + checksum, file_ext, mime_type + ) + values (#{contentTypeId,jdbcType=INTEGER}, #{uploadedUserId,jdbcType=INTEGER}, #{filename,jdbcType=VARCHAR}, + #{checksum,jdbcType=VARCHAR}, #{fileExt,jdbcType=VARCHAR}, #{mimeType,jdbcType=VARCHAR} + ) + + + + insert into zfgbb.content_resource + + + content_type_id, + + + uploaded_user_id, + + + filename, + + + checksum, + + + file_ext, + + + mime_type, + + + + + #{contentTypeId,jdbcType=INTEGER}, + + + #{uploadedUserId,jdbcType=INTEGER}, + + + #{filename,jdbcType=VARCHAR}, + + + #{checksum,jdbcType=VARCHAR}, + + + #{fileExt,jdbcType=VARCHAR}, + + + #{mimeType,jdbcType=VARCHAR}, + + + + + + + update zfgbb.content_resource + + + content_resource_id = #{record.contentResourceId,jdbcType=INTEGER}, + + + content_type_id = #{record.contentTypeId,jdbcType=INTEGER}, + + + uploaded_user_id = #{record.uploadedUserId,jdbcType=INTEGER}, + + + filename = #{record.filename,jdbcType=VARCHAR}, + + + checksum = #{record.checksum,jdbcType=VARCHAR}, + + + file_ext = #{record.fileExt,jdbcType=VARCHAR}, + + + mime_type = #{record.mimeType,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.content_resource + set content_resource_id = #{record.contentResourceId,jdbcType=INTEGER}, + content_type_id = #{record.contentTypeId,jdbcType=INTEGER}, + uploaded_user_id = #{record.uploadedUserId,jdbcType=INTEGER}, + filename = #{record.filename,jdbcType=VARCHAR}, + checksum = #{record.checksum,jdbcType=VARCHAR}, + file_ext = #{record.fileExt,jdbcType=VARCHAR}, + mime_type = #{record.mimeType,jdbcType=VARCHAR} + + + + + + + update zfgbb.content_resource + + + content_type_id = #{contentTypeId,jdbcType=INTEGER}, + + + uploaded_user_id = #{uploadedUserId,jdbcType=INTEGER}, + + + filename = #{filename,jdbcType=VARCHAR}, + + + checksum = #{checksum,jdbcType=VARCHAR}, + + + file_ext = #{fileExt,jdbcType=VARCHAR}, + + + mime_type = #{mimeType,jdbcType=VARCHAR}, + + + where content_resource_id = #{contentResourceId,jdbcType=INTEGER} + + + + update zfgbb.content_resource + set content_type_id = #{contentTypeId,jdbcType=INTEGER}, + uploaded_user_id = #{uploadedUserId,jdbcType=INTEGER}, + filename = #{filename,jdbcType=VARCHAR}, + checksum = #{checksum,jdbcType=VARCHAR}, + file_ext = #{fileExt,jdbcType=VARCHAR}, + mime_type = #{mimeType,jdbcType=VARCHAR} + where content_resource_id = #{contentResourceId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.java index 9a18aca..447232d 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.java @@ -11,44 +11,44 @@ public interface CurrentMessageDboMapper { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ long countByExample(CurrentMessageDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ int deleteByExample(CurrentMessageDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ int insert(CurrentMessageDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ int insertSelective(CurrentMessageDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ List selectByExample(CurrentMessageDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ int updateByExampleSelective(@Param("record") CurrentMessageDbo record, @Param("example") CurrentMessageDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.current_message_view - * @mbg.generated Wed Aug 21 23:16:54 EDT 2024 + * @mbg.generated Wed Oct 02 23:47:38 EDT 2024 */ int updateByExample(@Param("record") CurrentMessageDbo record, @Param("example") CurrentMessageDboExample example); diff --git a/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.xml index ca42a46..e49e3cf 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/CurrentMessageDboMapper.xml @@ -5,7 +5,7 @@ @@ -13,12 +13,13 @@ + @@ -52,7 +53,7 @@ @@ -86,15 +87,16 @@ - message_id, owner_id, thread_id, message_text, message_history_id, post_in_thread + message_id, owner_id, thread_id, message_text, message_history_id, post_in_thread, + created_ts select count(*) from zfgbb.current_message_view @@ -196,7 +204,7 @@ update zfgbb.current_message_view @@ -218,6 +226,9 @@ post_in_thread = #{record.postInThread,jdbcType=INTEGER}, + + created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + @@ -227,7 +238,7 @@ update zfgbb.current_message_view set message_id = #{record.messageId,jdbcType=INTEGER}, @@ -235,7 +246,8 @@ thread_id = #{record.threadId,jdbcType=INTEGER}, message_text = #{record.messageText,jdbcType=VARCHAR}, message_history_id = #{record.messageHistoryId,jdbcType=INTEGER}, - post_in_thread = #{record.postInThread,jdbcType=INTEGER} + post_in_thread = #{record.postInThread,jdbcType=INTEGER}, + created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE} diff --git a/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.java index db9161a..f35a283 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.java @@ -1,76 +1,76 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.EmailAddressDbo; -import com.zfgc.zfgbb.dbo.EmailAddressDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface EmailAddressDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(EmailAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(EmailAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer emailAddressId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(EmailAddressDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(EmailAddressDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(EmailAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - EmailAddressDbo selectByPrimaryKey(Integer emailAddressId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") EmailAddressDbo record, - @Param("example") EmailAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") EmailAddressDbo record, @Param("example") EmailAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(EmailAddressDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(EmailAddressDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.EmailAddressDbo; +import com.zfgc.zfgbb.dbo.EmailAddressDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface EmailAddressDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(EmailAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(EmailAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer emailAddressId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(EmailAddressDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(EmailAddressDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(EmailAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + EmailAddressDbo selectByPrimaryKey(Integer emailAddressId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") EmailAddressDbo record, + @Param("example") EmailAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") EmailAddressDbo record, @Param("example") EmailAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(EmailAddressDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.email_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(EmailAddressDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.xml index 28fb682..089af23 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/EmailAddressDboMapper.xml @@ -1,267 +1,267 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - email_address_id, email_address, created_ts, updated_ts, spammer_flag, user_id - - - - - - delete from zfgbb.email_address - where email_address_id = #{emailAddressId,jdbcType=INTEGER} - - - - delete from zfgbb.email_address - - - - - - - insert into zfgbb.email_address (email_address, spammer_flag, user_id - ) - values (#{emailAddress,jdbcType=VARCHAR}, #{spammerFlag,jdbcType=BIT}, #{userId,jdbcType=INTEGER} - ) - - - - insert into zfgbb.email_address - - - email_address, - - - spammer_flag, - - - user_id, - - - - - #{emailAddress,jdbcType=VARCHAR}, - - - #{spammerFlag,jdbcType=BIT}, - - - #{userId,jdbcType=INTEGER}, - - - - - - - update zfgbb.email_address - - - email_address_id = #{record.emailAddressId,jdbcType=INTEGER}, - - - email_address = #{record.emailAddress,jdbcType=VARCHAR}, - - - spammer_flag = #{record.spammerFlag,jdbcType=BIT}, - - - user_id = #{record.userId,jdbcType=INTEGER}, - - - - - - - - - update zfgbb.email_address - set email_address_id = #{record.emailAddressId,jdbcType=INTEGER}, - email_address = #{record.emailAddress,jdbcType=VARCHAR}, - spammer_flag = #{record.spammerFlag,jdbcType=BIT}, - user_id = #{record.userId,jdbcType=INTEGER} - - - - - - - update zfgbb.email_address - - - email_address = #{emailAddress,jdbcType=VARCHAR}, - - - spammer_flag = #{spammerFlag,jdbcType=BIT}, - - - user_id = #{userId,jdbcType=INTEGER}, - - - where email_address_id = #{emailAddressId,jdbcType=INTEGER} - - - - update zfgbb.email_address - set email_address = #{emailAddress,jdbcType=VARCHAR}, - spammer_flag = #{spammerFlag,jdbcType=BIT}, - user_id = #{userId,jdbcType=INTEGER} - where email_address_id = #{emailAddressId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + email_address_id, email_address, created_ts, updated_ts, spammer_flag, user_id + + + + + + delete from zfgbb.email_address + where email_address_id = #{emailAddressId,jdbcType=INTEGER} + + + + delete from zfgbb.email_address + + + + + + + insert into zfgbb.email_address (email_address, spammer_flag, user_id + ) + values (#{emailAddress,jdbcType=VARCHAR}, #{spammerFlag,jdbcType=BIT}, #{userId,jdbcType=INTEGER} + ) + + + + insert into zfgbb.email_address + + + email_address, + + + spammer_flag, + + + user_id, + + + + + #{emailAddress,jdbcType=VARCHAR}, + + + #{spammerFlag,jdbcType=BIT}, + + + #{userId,jdbcType=INTEGER}, + + + + + + + update zfgbb.email_address + + + email_address_id = #{record.emailAddressId,jdbcType=INTEGER}, + + + email_address = #{record.emailAddress,jdbcType=VARCHAR}, + + + spammer_flag = #{record.spammerFlag,jdbcType=BIT}, + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.email_address + set email_address_id = #{record.emailAddressId,jdbcType=INTEGER}, + email_address = #{record.emailAddress,jdbcType=VARCHAR}, + spammer_flag = #{record.spammerFlag,jdbcType=BIT}, + user_id = #{record.userId,jdbcType=INTEGER} + + + + + + + update zfgbb.email_address + + + email_address = #{emailAddress,jdbcType=VARCHAR}, + + + spammer_flag = #{spammerFlag,jdbcType=BIT}, + + + user_id = #{userId,jdbcType=INTEGER}, + + + where email_address_id = #{emailAddressId,jdbcType=INTEGER} + + + + update zfgbb.email_address + set email_address = #{emailAddress,jdbcType=VARCHAR}, + spammer_flag = #{spammerFlag,jdbcType=BIT}, + user_id = #{userId,jdbcType=INTEGER} + where email_address_id = #{emailAddressId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/FileAttachmentDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/FileAttachmentDboMapper.java new file mode 100644 index 0000000..e9d5db9 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/FileAttachmentDboMapper.java @@ -0,0 +1,76 @@ +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.FileAttachmentDbo; +import com.zfgc.zfgbb.dbo.FileAttachmentDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface FileAttachmentDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + long countByExample(FileAttachmentDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int deleteByExample(FileAttachmentDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int deleteByPrimaryKey(Integer fileAttachmentId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int insert(FileAttachmentDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int insertSelective(FileAttachmentDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + List selectByExample(FileAttachmentDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + FileAttachmentDbo selectByPrimaryKey(Integer fileAttachmentId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int updateByExampleSelective(@Param("record") FileAttachmentDbo record, + @Param("example") FileAttachmentDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int updateByExample(@Param("record") FileAttachmentDbo record, @Param("example") FileAttachmentDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int updateByPrimaryKeySelective(FileAttachmentDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.file_attachments + * @mbg.generated Mon Oct 07 21:34:11 EDT 2024 + */ + int updateByPrimaryKey(FileAttachmentDbo record); +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/FileAttachmentDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/FileAttachmentDboMapper.xml new file mode 100644 index 0000000..5fd5759 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/FileAttachmentDboMapper.xml @@ -0,0 +1,267 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + file_attachment_id, message_id, active_flag, created_ts, updated_ts, content_resource_id + + + + + + delete from zfgbb.file_attachments + where file_attachment_id = #{fileAttachmentId,jdbcType=INTEGER} + + + + delete from zfgbb.file_attachments + + + + + + + insert into zfgbb.file_attachments (message_id, active_flag, content_resource_id + ) + values (#{messageId,jdbcType=INTEGER}, #{activeFlag,jdbcType=BIT}, #{contentResourceId,jdbcType=INTEGER} + ) + + + + insert into zfgbb.file_attachments + + + message_id, + + + active_flag, + + + content_resource_id, + + + + + #{messageId,jdbcType=INTEGER}, + + + #{activeFlag,jdbcType=BIT}, + + + #{contentResourceId,jdbcType=INTEGER}, + + + + + + + update zfgbb.file_attachments + + + file_attachment_id = #{record.fileAttachmentId,jdbcType=INTEGER}, + + + message_id = #{record.messageId,jdbcType=INTEGER}, + + + active_flag = #{record.activeFlag,jdbcType=BIT}, + + + content_resource_id = #{record.contentResourceId,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.file_attachments + set file_attachment_id = #{record.fileAttachmentId,jdbcType=INTEGER}, + message_id = #{record.messageId,jdbcType=INTEGER}, + active_flag = #{record.activeFlag,jdbcType=BIT}, + content_resource_id = #{record.contentResourceId,jdbcType=INTEGER} + + + + + + + update zfgbb.file_attachments + + + message_id = #{messageId,jdbcType=INTEGER}, + + + active_flag = #{activeFlag,jdbcType=BIT}, + + + content_resource_id = #{contentResourceId,jdbcType=INTEGER}, + + + where file_attachment_id = #{fileAttachmentId,jdbcType=INTEGER} + + + + update zfgbb.file_attachments + set message_id = #{messageId,jdbcType=INTEGER}, + active_flag = #{activeFlag,jdbcType=BIT}, + content_resource_id = #{contentResourceId,jdbcType=INTEGER} + where file_attachment_id = #{fileAttachmentId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.java index 9859005..408289e 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.java @@ -1,75 +1,75 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.IpAddressDbo; -import com.zfgc.zfgbb.dbo.IpAddressDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface IpAddressDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(IpAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(IpAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer ipAddressId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(IpAddressDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(IpAddressDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(IpAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - IpAddressDbo selectByPrimaryKey(Integer ipAddressId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") IpAddressDbo record, @Param("example") IpAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") IpAddressDbo record, @Param("example") IpAddressDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(IpAddressDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(IpAddressDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.IpAddressDbo; +import com.zfgc.zfgbb.dbo.IpAddressDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface IpAddressDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(IpAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(IpAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer ipAddressId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(IpAddressDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(IpAddressDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(IpAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + IpAddressDbo selectByPrimaryKey(Integer ipAddressId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") IpAddressDbo record, @Param("example") IpAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") IpAddressDbo record, @Param("example") IpAddressDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(IpAddressDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.ip_address + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(IpAddressDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.xml index cd23bd9..7aa5728 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/IpAddressDboMapper.xml @@ -1,267 +1,267 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - ip_address_id, ip, ip_v6_flag, is_spammer_flag, created_ts, updated_ts - - - - - - delete from zfgbb.ip_address - where ip_address_id = #{ipAddressId,jdbcType=INTEGER} - - - - delete from zfgbb.ip_address - - - - - - - insert into zfgbb.ip_address (ip, ip_v6_flag, is_spammer_flag - ) - values (#{ip,jdbcType=VARCHAR}, #{ipV6Flag,jdbcType=BIT}, #{isSpammerFlag,jdbcType=BIT} - ) - - - - insert into zfgbb.ip_address - - - ip, - - - ip_v6_flag, - - - is_spammer_flag, - - - - - #{ip,jdbcType=VARCHAR}, - - - #{ipV6Flag,jdbcType=BIT}, - - - #{isSpammerFlag,jdbcType=BIT}, - - - - - - - update zfgbb.ip_address - - - ip_address_id = #{record.ipAddressId,jdbcType=INTEGER}, - - - ip = #{record.ip,jdbcType=VARCHAR}, - - - ip_v6_flag = #{record.ipV6Flag,jdbcType=BIT}, - - - is_spammer_flag = #{record.isSpammerFlag,jdbcType=BIT}, - - - - - - - - - update zfgbb.ip_address - set ip_address_id = #{record.ipAddressId,jdbcType=INTEGER}, - ip = #{record.ip,jdbcType=VARCHAR}, - ip_v6_flag = #{record.ipV6Flag,jdbcType=BIT}, - is_spammer_flag = #{record.isSpammerFlag,jdbcType=BIT} - - - - - - - update zfgbb.ip_address - - - ip = #{ip,jdbcType=VARCHAR}, - - - ip_v6_flag = #{ipV6Flag,jdbcType=BIT}, - - - is_spammer_flag = #{isSpammerFlag,jdbcType=BIT}, - - - where ip_address_id = #{ipAddressId,jdbcType=INTEGER} - - - - update zfgbb.ip_address - set ip = #{ip,jdbcType=VARCHAR}, - ip_v6_flag = #{ipV6Flag,jdbcType=BIT}, - is_spammer_flag = #{isSpammerFlag,jdbcType=BIT} - where ip_address_id = #{ipAddressId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + ip_address_id, ip, ip_v6_flag, is_spammer_flag, created_ts, updated_ts + + + + + + delete from zfgbb.ip_address + where ip_address_id = #{ipAddressId,jdbcType=INTEGER} + + + + delete from zfgbb.ip_address + + + + + + + insert into zfgbb.ip_address (ip, ip_v6_flag, is_spammer_flag + ) + values (#{ip,jdbcType=VARCHAR}, #{ipV6Flag,jdbcType=BIT}, #{isSpammerFlag,jdbcType=BIT} + ) + + + + insert into zfgbb.ip_address + + + ip, + + + ip_v6_flag, + + + is_spammer_flag, + + + + + #{ip,jdbcType=VARCHAR}, + + + #{ipV6Flag,jdbcType=BIT}, + + + #{isSpammerFlag,jdbcType=BIT}, + + + + + + + update zfgbb.ip_address + + + ip_address_id = #{record.ipAddressId,jdbcType=INTEGER}, + + + ip = #{record.ip,jdbcType=VARCHAR}, + + + ip_v6_flag = #{record.ipV6Flag,jdbcType=BIT}, + + + is_spammer_flag = #{record.isSpammerFlag,jdbcType=BIT}, + + + + + + + + + update zfgbb.ip_address + set ip_address_id = #{record.ipAddressId,jdbcType=INTEGER}, + ip = #{record.ip,jdbcType=VARCHAR}, + ip_v6_flag = #{record.ipV6Flag,jdbcType=BIT}, + is_spammer_flag = #{record.isSpammerFlag,jdbcType=BIT} + + + + + + + update zfgbb.ip_address + + + ip = #{ip,jdbcType=VARCHAR}, + + + ip_v6_flag = #{ipV6Flag,jdbcType=BIT}, + + + is_spammer_flag = #{isSpammerFlag,jdbcType=BIT}, + + + where ip_address_id = #{ipAddressId,jdbcType=INTEGER} + + + + update zfgbb.ip_address + set ip = #{ip,jdbcType=VARCHAR}, + ip_v6_flag = #{ipV6Flag,jdbcType=BIT}, + is_spammer_flag = #{isSpammerFlag,jdbcType=BIT} + where ip_address_id = #{ipAddressId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/LatestMessageInThreadViewDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/LatestMessageInThreadViewDboMapper.java new file mode 100644 index 0000000..b529f0f --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/LatestMessageInThreadViewDboMapper.java @@ -0,0 +1,64 @@ +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.LatestMessageInThreadViewDbo; +import com.zfgc.zfgbb.dbo.LatestMessageInThreadViewDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface LatestMessageInThreadViewDboMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + long countByExample(LatestMessageInThreadViewDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + int deleteByExample(LatestMessageInThreadViewDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + int insert(LatestMessageInThreadViewDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + int insertSelective(LatestMessageInThreadViewDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + List selectByExample(LatestMessageInThreadViewDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + int updateByExampleSelective(@Param("record") LatestMessageInThreadViewDbo record, @Param("example") LatestMessageInThreadViewDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.latest_message_in_thread_view + * + * @mbg.generated Tue Oct 08 19:03:12 EDT 2024 + */ + int updateByExample(@Param("record") LatestMessageInThreadViewDbo record, @Param("example") LatestMessageInThreadViewDboExample example); +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/LatestMessageInThreadViewDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/LatestMessageInThreadViewDboMapper.xml new file mode 100644 index 0000000..f94cc22 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/mappers/LatestMessageInThreadViewDboMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + thread_id, thread_name, message_id, message_history_id, created_ts, owner_name + + + + + delete from zfgbb.latest_message_in_thread_view + + + + + + + insert into zfgbb.latest_message_in_thread_view (thread_id, thread_name, message_id, + message_history_id, created_ts, + owner_name) + values (#{threadId,jdbcType=INTEGER}, #{threadName,jdbcType=VARCHAR}, #{messageId,jdbcType=INTEGER}, + #{messageHistoryId,jdbcType=INTEGER}, #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + #{ownerName,jdbcType=VARCHAR}) + + + + insert into zfgbb.latest_message_in_thread_view + + + thread_id, + + + thread_name, + + + message_id, + + + message_history_id, + + + created_ts, + + + owner_name, + + + + + #{threadId,jdbcType=INTEGER}, + + + #{threadName,jdbcType=VARCHAR}, + + + #{messageId,jdbcType=INTEGER}, + + + #{messageHistoryId,jdbcType=INTEGER}, + + + #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + #{ownerName,jdbcType=VARCHAR}, + + + + + + + update zfgbb.latest_message_in_thread_view + + + thread_id = #{record.threadId,jdbcType=INTEGER}, + + + thread_name = #{record.threadName,jdbcType=VARCHAR}, + + + message_id = #{record.messageId,jdbcType=INTEGER}, + + + message_history_id = #{record.messageHistoryId,jdbcType=INTEGER}, + + + created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + owner_name = #{record.ownerName,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.latest_message_in_thread_view + set thread_id = #{record.threadId,jdbcType=INTEGER}, + thread_name = #{record.threadName,jdbcType=VARCHAR}, + message_id = #{record.messageId,jdbcType=INTEGER}, + message_history_id = #{record.messageHistoryId,jdbcType=INTEGER}, + created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + owner_name = #{record.ownerName,jdbcType=VARCHAR} + + + + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.java index feb9c4b..90d2a21 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.java @@ -1,77 +1,77 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.MessageDbo; -import com.zfgc.zfgbb.dbo.MessageDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface MessageDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(MessageDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(MessageDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer messageId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(MessageDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(MessageDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(MessageDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - MessageDbo selectByPrimaryKey(Integer messageId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") MessageDbo record, @Param("example") MessageDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") MessageDbo record, @Param("example") MessageDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(MessageDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(MessageDbo record); - - List selectByExampleWithLimit(@Param("example") MessageDboExample example, @Param("start") Integer start, @Param("total") Integer total); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.MessageDbo; +import com.zfgc.zfgbb.dbo.MessageDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface MessageDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(MessageDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(MessageDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer messageId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(MessageDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(MessageDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(MessageDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + MessageDbo selectByPrimaryKey(Integer messageId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") MessageDbo record, @Param("example") MessageDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") MessageDbo record, @Param("example") MessageDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(MessageDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(MessageDbo record); + + List selectByExampleWithLimit(@Param("example") MessageDboExample example, @Param("start") Integer start, @Param("total") Integer total); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.xml index b268336..15d3d36 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/MessageDboMapper.xml @@ -1,267 +1,267 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - message_id, owner_id, thread_id, created_ts, updated_ts, post_in_thread - - - - - - delete from zfgbb.message - where message_id = #{messageId,jdbcType=INTEGER} - - - - delete from zfgbb.message - - - - - - - insert into zfgbb.message (owner_id, thread_id, post_in_thread - ) - values (#{ownerId,jdbcType=INTEGER}, #{threadId,jdbcType=INTEGER}, #{postInThread,jdbcType=INTEGER} - ) - - - - insert into zfgbb.message - - - owner_id, - - - thread_id, - - - post_in_thread, - - - - - #{ownerId,jdbcType=INTEGER}, - - - #{threadId,jdbcType=INTEGER}, - - - #{postInThread,jdbcType=INTEGER}, - - - - - - - update zfgbb.message - - - message_id = #{record.messageId,jdbcType=INTEGER}, - - - owner_id = #{record.ownerId,jdbcType=INTEGER}, - - - thread_id = #{record.threadId,jdbcType=INTEGER}, - - - post_in_thread = #{record.postInThread,jdbcType=INTEGER}, - - - - - - - - - update zfgbb.message - set message_id = #{record.messageId,jdbcType=INTEGER}, - owner_id = #{record.ownerId,jdbcType=INTEGER}, - thread_id = #{record.threadId,jdbcType=INTEGER}, - post_in_thread = #{record.postInThread,jdbcType=INTEGER} - - - - - - - update zfgbb.message - - - owner_id = #{ownerId,jdbcType=INTEGER}, - - - thread_id = #{threadId,jdbcType=INTEGER}, - - - post_in_thread = #{postInThread,jdbcType=INTEGER}, - - - where message_id = #{messageId,jdbcType=INTEGER} - - - - update zfgbb.message - set owner_id = #{ownerId,jdbcType=INTEGER}, - thread_id = #{threadId,jdbcType=INTEGER}, - post_in_thread = #{postInThread,jdbcType=INTEGER} - where message_id = #{messageId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + message_id, owner_id, thread_id, created_ts, updated_ts, post_in_thread + + + + + + delete from zfgbb.message + where message_id = #{messageId,jdbcType=INTEGER} + + + + delete from zfgbb.message + + + + + + + insert into zfgbb.message (owner_id, thread_id, post_in_thread + ) + values (#{ownerId,jdbcType=INTEGER}, #{threadId,jdbcType=INTEGER}, #{postInThread,jdbcType=INTEGER} + ) + + + + insert into zfgbb.message + + + owner_id, + + + thread_id, + + + post_in_thread, + + + + + #{ownerId,jdbcType=INTEGER}, + + + #{threadId,jdbcType=INTEGER}, + + + #{postInThread,jdbcType=INTEGER}, + + + + + + + update zfgbb.message + + + message_id = #{record.messageId,jdbcType=INTEGER}, + + + owner_id = #{record.ownerId,jdbcType=INTEGER}, + + + thread_id = #{record.threadId,jdbcType=INTEGER}, + + + post_in_thread = #{record.postInThread,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.message + set message_id = #{record.messageId,jdbcType=INTEGER}, + owner_id = #{record.ownerId,jdbcType=INTEGER}, + thread_id = #{record.threadId,jdbcType=INTEGER}, + post_in_thread = #{record.postInThread,jdbcType=INTEGER} + + + + + + + update zfgbb.message + + + owner_id = #{ownerId,jdbcType=INTEGER}, + + + thread_id = #{threadId,jdbcType=INTEGER}, + + + post_in_thread = #{postInThread,jdbcType=INTEGER}, + + + where message_id = #{messageId,jdbcType=INTEGER} + + + + update zfgbb.message + set owner_id = #{ownerId,jdbcType=INTEGER}, + thread_id = #{threadId,jdbcType=INTEGER}, + post_in_thread = #{postInThread,jdbcType=INTEGER} + where message_id = #{messageId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.java index 067be02..593559d 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.java @@ -1,76 +1,76 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.MessageHistoryDbo; -import com.zfgc.zfgbb.dbo.MessageHistoryDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface MessageHistoryDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(MessageHistoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(MessageHistoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByPrimaryKey(Integer messageHistoryId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(MessageHistoryDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(MessageHistoryDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(MessageHistoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - MessageHistoryDbo selectByPrimaryKey(Integer messageHistoryId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") MessageHistoryDbo record, - @Param("example") MessageHistoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") MessageHistoryDbo record, @Param("example") MessageHistoryDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKeySelective(MessageHistoryDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByPrimaryKey(MessageHistoryDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.MessageHistoryDbo; +import com.zfgc.zfgbb.dbo.MessageHistoryDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface MessageHistoryDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(MessageHistoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(MessageHistoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByPrimaryKey(Integer messageHistoryId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(MessageHistoryDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(MessageHistoryDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(MessageHistoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + MessageHistoryDbo selectByPrimaryKey(Integer messageHistoryId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") MessageHistoryDbo record, + @Param("example") MessageHistoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") MessageHistoryDbo record, @Param("example") MessageHistoryDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKeySelective(MessageHistoryDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.message_history + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByPrimaryKey(MessageHistoryDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.xml index dfd713c..6bad11d 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/MessageHistoryDboMapper.xml @@ -1,283 +1,283 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - message_history_id, message_id, message_text, current_flag, created_ts, updated_ts, - ip_address_id - - - - - - delete from zfgbb.message_history - where message_history_id = #{messageHistoryId,jdbcType=INTEGER} - - - - delete from zfgbb.message_history - - - - - - - insert into zfgbb.message_history (message_id, message_text, current_flag, - ip_address_id) - values (#{messageId,jdbcType=INTEGER}, #{messageText,jdbcType=VARCHAR}, #{currentFlag,jdbcType=BIT}, - #{ipAddressId,jdbcType=INTEGER}) - - - - insert into zfgbb.message_history - - - message_id, - - - message_text, - - - current_flag, - - - ip_address_id, - - - - - #{messageId,jdbcType=INTEGER}, - - - #{messageText,jdbcType=VARCHAR}, - - - #{currentFlag,jdbcType=BIT}, - - - #{ipAddressId,jdbcType=INTEGER}, - - - - - - - update zfgbb.message_history - - - message_history_id = #{record.messageHistoryId,jdbcType=INTEGER}, - - - message_id = #{record.messageId,jdbcType=INTEGER}, - - - message_text = #{record.messageText,jdbcType=VARCHAR}, - - - current_flag = #{record.currentFlag,jdbcType=BIT}, - - - ip_address_id = #{record.ipAddressId,jdbcType=INTEGER}, - - - - - - - - - update zfgbb.message_history - set message_history_id = #{record.messageHistoryId,jdbcType=INTEGER}, - message_id = #{record.messageId,jdbcType=INTEGER}, - message_text = #{record.messageText,jdbcType=VARCHAR}, - current_flag = #{record.currentFlag,jdbcType=BIT}, - ip_address_id = #{record.ipAddressId,jdbcType=INTEGER} - - - - - - - update zfgbb.message_history - - - message_id = #{messageId,jdbcType=INTEGER}, - - - message_text = #{messageText,jdbcType=VARCHAR}, - - - current_flag = #{currentFlag,jdbcType=BIT}, - - - ip_address_id = #{ipAddressId,jdbcType=INTEGER}, - - - where message_history_id = #{messageHistoryId,jdbcType=INTEGER} - - - - update zfgbb.message_history - set message_id = #{messageId,jdbcType=INTEGER}, - message_text = #{messageText,jdbcType=VARCHAR}, - current_flag = #{currentFlag,jdbcType=BIT}, - ip_address_id = #{ipAddressId,jdbcType=INTEGER} - where message_history_id = #{messageHistoryId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + message_history_id, message_id, message_text, current_flag, created_ts, updated_ts, + ip_address_id + + + + + + delete from zfgbb.message_history + where message_history_id = #{messageHistoryId,jdbcType=INTEGER} + + + + delete from zfgbb.message_history + + + + + + + insert into zfgbb.message_history (message_id, message_text, current_flag, + ip_address_id) + values (#{messageId,jdbcType=INTEGER}, #{messageText,jdbcType=VARCHAR}, #{currentFlag,jdbcType=BIT}, + #{ipAddressId,jdbcType=INTEGER}) + + + + insert into zfgbb.message_history + + + message_id, + + + message_text, + + + current_flag, + + + ip_address_id, + + + + + #{messageId,jdbcType=INTEGER}, + + + #{messageText,jdbcType=VARCHAR}, + + + #{currentFlag,jdbcType=BIT}, + + + #{ipAddressId,jdbcType=INTEGER}, + + + + + + + update zfgbb.message_history + + + message_history_id = #{record.messageHistoryId,jdbcType=INTEGER}, + + + message_id = #{record.messageId,jdbcType=INTEGER}, + + + message_text = #{record.messageText,jdbcType=VARCHAR}, + + + current_flag = #{record.currentFlag,jdbcType=BIT}, + + + ip_address_id = #{record.ipAddressId,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.message_history + set message_history_id = #{record.messageHistoryId,jdbcType=INTEGER}, + message_id = #{record.messageId,jdbcType=INTEGER}, + message_text = #{record.messageText,jdbcType=VARCHAR}, + current_flag = #{record.currentFlag,jdbcType=BIT}, + ip_address_id = #{record.ipAddressId,jdbcType=INTEGER} + + + + + + + update zfgbb.message_history + + + message_id = #{messageId,jdbcType=INTEGER}, + + + message_text = #{messageText,jdbcType=VARCHAR}, + + + current_flag = #{currentFlag,jdbcType=BIT}, + + + ip_address_id = #{ipAddressId,jdbcType=INTEGER}, + + + where message_history_id = #{messageHistoryId,jdbcType=INTEGER} + + + + update zfgbb.message_history + set message_id = #{messageId,jdbcType=INTEGER}, + message_text = #{messageText,jdbcType=VARCHAR}, + current_flag = #{currentFlag,jdbcType=BIT}, + ip_address_id = #{ipAddressId,jdbcType=INTEGER} + where message_history_id = #{messageHistoryId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.java index 3821e54..1d79bd9 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.java @@ -1,96 +1,75 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.PollDbo; -import com.zfgc.zfgbb.dbo.PollDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface PollDboMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - long countByExample(PollDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int deleteByExample(PollDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int deleteByPrimaryKey(Integer pollId); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int insert(PollDbo record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int insertSelective(PollDbo record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - List selectByExample(PollDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - PollDbo selectByPrimaryKey(Integer pollId); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByExampleSelective(@Param("record") PollDbo record, @Param("example") PollDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByExample(@Param("record") PollDbo record, @Param("example") PollDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByPrimaryKeySelective(PollDbo record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByPrimaryKey(PollDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.PollDbo; +import com.zfgc.zfgbb.dbo.PollDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PollDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + long countByExample(PollDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int deleteByExample(PollDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int deleteByPrimaryKey(Integer pollId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int insert(PollDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int insertSelective(PollDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + List selectByExample(PollDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + PollDbo selectByPrimaryKey(Integer pollId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int updateByExampleSelective(@Param("record") PollDbo record, @Param("example") PollDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int updateByExample(@Param("record") PollDbo record, @Param("example") PollDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int updateByPrimaryKeySelective(PollDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.poll + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 + */ + int updateByPrimaryKey(PollDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.xml index f1b06b4..785eedc 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/PollDboMapper.xml @@ -1,250 +1,393 @@ - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - poll_id, poll_question, thread_id, created_ts, updated_ts - - - - - - delete from zfgbb.poll - where poll_id = #{pollId,jdbcType=INTEGER} - - - - delete from zfgbb.poll - - - - - - - insert into zfgbb.poll (poll_question, thread_id) - values (#{pollQuestion,jdbcType=VARCHAR}, #{threadId,jdbcType=INTEGER}) - - - - insert into zfgbb.poll - - - poll_question, - - - thread_id, - - - - - #{pollQuestion,jdbcType=VARCHAR}, - - - #{threadId,jdbcType=INTEGER}, - - - - - - - update zfgbb.poll - - - poll_id = #{record.pollId,jdbcType=INTEGER}, - - - poll_question = #{record.pollQuestion,jdbcType=VARCHAR}, - - - thread_id = #{record.threadId,jdbcType=INTEGER}, - - - - - - - - - update zfgbb.poll - set poll_id = #{record.pollId,jdbcType=INTEGER}, - poll_question = #{record.pollQuestion,jdbcType=VARCHAR}, - thread_id = #{record.threadId,jdbcType=INTEGER} - - - - - - - update zfgbb.poll - - - poll_question = #{pollQuestion,jdbcType=VARCHAR}, - - - thread_id = #{threadId,jdbcType=INTEGER}, - - - where poll_id = #{pollId,jdbcType=INTEGER} - - - - update zfgbb.poll - set poll_question = #{pollQuestion,jdbcType=VARCHAR}, - thread_id = #{threadId,jdbcType=INTEGER} - where poll_id = #{pollId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + poll_id, poll_question, thread_id, created_ts, updated_ts, voting_locked_flag, max_votes, + expire_time, hide_results_flag, change_vote_flag, created_user_id, guest_vote_flag, + guest_vote_count, reset_poll + + + + + + delete from zfgbb.poll + where poll_id = #{pollId,jdbcType=INTEGER} + + + + delete from zfgbb.poll + + + + + + + insert into zfgbb.poll (poll_question, thread_id, voting_locked_flag, + max_votes, expire_time, hide_results_flag, + change_vote_flag, created_user_id, guest_vote_flag, + guest_vote_count, reset_poll) + values (#{pollQuestion,jdbcType=VARCHAR}, #{threadId,jdbcType=INTEGER}, #{votingLockedFlag,jdbcType=BIT}, + #{maxVotes,jdbcType=BIT}, #{expireTime,jdbcType=TIMESTAMP}, #{hideResultsFlag,jdbcType=BIT}, + #{changeVoteFlag,jdbcType=BIT}, #{createdUserId,jdbcType=INTEGER}, #{guestVoteFlag,jdbcType=BIT}, + #{guestVoteCount,jdbcType=INTEGER}, #{resetPoll,jdbcType=INTEGER}) + + + + insert into zfgbb.poll + + + poll_question, + + + thread_id, + + + voting_locked_flag, + + + max_votes, + + + expire_time, + + + hide_results_flag, + + + change_vote_flag, + + + created_user_id, + + + guest_vote_flag, + + + guest_vote_count, + + + reset_poll, + + + + + #{pollQuestion,jdbcType=VARCHAR}, + + + #{threadId,jdbcType=INTEGER}, + + + #{votingLockedFlag,jdbcType=BIT}, + + + #{maxVotes,jdbcType=BIT}, + + + #{expireTime,jdbcType=TIMESTAMP}, + + + #{hideResultsFlag,jdbcType=BIT}, + + + #{changeVoteFlag,jdbcType=BIT}, + + + #{createdUserId,jdbcType=INTEGER}, + + + #{guestVoteFlag,jdbcType=BIT}, + + + #{guestVoteCount,jdbcType=INTEGER}, + + + #{resetPoll,jdbcType=INTEGER}, + + + + + + + update zfgbb.poll + + + poll_id = #{record.pollId,jdbcType=INTEGER}, + + + poll_question = #{record.pollQuestion,jdbcType=VARCHAR}, + + + thread_id = #{record.threadId,jdbcType=INTEGER}, + + + voting_locked_flag = #{record.votingLockedFlag,jdbcType=BIT}, + + + max_votes = #{record.maxVotes,jdbcType=BIT}, + + + expire_time = #{record.expireTime,jdbcType=TIMESTAMP}, + + + hide_results_flag = #{record.hideResultsFlag,jdbcType=BIT}, + + + change_vote_flag = #{record.changeVoteFlag,jdbcType=BIT}, + + + created_user_id = #{record.createdUserId,jdbcType=INTEGER}, + + + guest_vote_flag = #{record.guestVoteFlag,jdbcType=BIT}, + + + guest_vote_count = #{record.guestVoteCount,jdbcType=INTEGER}, + + + reset_poll = #{record.resetPoll,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.poll + set poll_id = #{record.pollId,jdbcType=INTEGER}, + poll_question = #{record.pollQuestion,jdbcType=VARCHAR}, + thread_id = #{record.threadId,jdbcType=INTEGER}, + voting_locked_flag = #{record.votingLockedFlag,jdbcType=BIT}, + max_votes = #{record.maxVotes,jdbcType=BIT}, + expire_time = #{record.expireTime,jdbcType=TIMESTAMP}, + hide_results_flag = #{record.hideResultsFlag,jdbcType=BIT}, + change_vote_flag = #{record.changeVoteFlag,jdbcType=BIT}, + created_user_id = #{record.createdUserId,jdbcType=INTEGER}, + guest_vote_flag = #{record.guestVoteFlag,jdbcType=BIT}, + guest_vote_count = #{record.guestVoteCount,jdbcType=INTEGER}, + reset_poll = #{record.resetPoll,jdbcType=INTEGER} + + + + + + + update zfgbb.poll + + + poll_question = #{pollQuestion,jdbcType=VARCHAR}, + + + thread_id = #{threadId,jdbcType=INTEGER}, + + + voting_locked_flag = #{votingLockedFlag,jdbcType=BIT}, + + + max_votes = #{maxVotes,jdbcType=BIT}, + + + expire_time = #{expireTime,jdbcType=TIMESTAMP}, + + + hide_results_flag = #{hideResultsFlag,jdbcType=BIT}, + + + change_vote_flag = #{changeVoteFlag,jdbcType=BIT}, + + + created_user_id = #{createdUserId,jdbcType=INTEGER}, + + + guest_vote_flag = #{guestVoteFlag,jdbcType=BIT}, + + + guest_vote_count = #{guestVoteCount,jdbcType=INTEGER}, + + + reset_poll = #{resetPoll,jdbcType=INTEGER}, + + + where poll_id = #{pollId,jdbcType=INTEGER} + + + + update zfgbb.poll + set poll_question = #{pollQuestion,jdbcType=VARCHAR}, + thread_id = #{threadId,jdbcType=INTEGER}, + voting_locked_flag = #{votingLockedFlag,jdbcType=BIT}, + max_votes = #{maxVotes,jdbcType=BIT}, + expire_time = #{expireTime,jdbcType=TIMESTAMP}, + hide_results_flag = #{hideResultsFlag,jdbcType=BIT}, + change_vote_flag = #{changeVoteFlag,jdbcType=BIT}, + created_user_id = #{createdUserId,jdbcType=INTEGER}, + guest_vote_flag = #{guestVoteFlag,jdbcType=BIT}, + guest_vote_count = #{guestVoteCount,jdbcType=INTEGER}, + reset_poll = #{resetPoll,jdbcType=INTEGER} + where poll_id = #{pollId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.java index 30686ac..bfd3a99 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.java @@ -1,96 +1,96 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.PollQuestionDbo; -import com.zfgc.zfgbb.dbo.PollQuestionDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface PollQuestionDboMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - long countByExample(PollQuestionDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int deleteByExample(PollQuestionDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int deleteByPrimaryKey(Integer pollQuestionId); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int insert(PollQuestionDbo record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int insertSelective(PollQuestionDbo record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - List selectByExample(PollQuestionDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - PollQuestionDbo selectByPrimaryKey(Integer pollQuestionId); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByExampleSelective(@Param("record") PollQuestionDbo record, @Param("example") PollQuestionDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByExample(@Param("record") PollQuestionDbo record, @Param("example") PollQuestionDboExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByPrimaryKeySelective(PollQuestionDbo record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table zfgbb.poll_question - * - * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 - */ - int updateByPrimaryKey(PollQuestionDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.PollQuestionDbo; +import com.zfgc.zfgbb.dbo.PollQuestionDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PollQuestionDboMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + long countByExample(PollQuestionDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int deleteByExample(PollQuestionDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int deleteByPrimaryKey(Integer pollQuestionId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int insert(PollQuestionDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int insertSelective(PollQuestionDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + List selectByExample(PollQuestionDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + PollQuestionDbo selectByPrimaryKey(Integer pollQuestionId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int updateByExampleSelective(@Param("record") PollQuestionDbo record, @Param("example") PollQuestionDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int updateByExample(@Param("record") PollQuestionDbo record, @Param("example") PollQuestionDboExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int updateByPrimaryKeySelective(PollQuestionDbo record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table zfgbb.poll_question + * + * @mbg.generated Sun Sep 01 00:50:50 EDT 2024 + */ + int updateByPrimaryKey(PollQuestionDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.xml index 6774388..7a87551 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/PollQuestionDboMapper.xml @@ -1,267 +1,267 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - poll_question_id, answer_text, poll_id, votes, created_ts, updated_ts - - - - - - delete from zfgbb.poll_question - where poll_question_id = #{pollQuestionId,jdbcType=INTEGER} - - - - delete from zfgbb.poll_question - - - - - - - insert into zfgbb.poll_question (answer_text, poll_id, votes - ) - values (#{answerText,jdbcType=VARCHAR}, #{pollId,jdbcType=INTEGER}, #{votes,jdbcType=INTEGER} - ) - - - - insert into zfgbb.poll_question - - - answer_text, - - - poll_id, - - - votes, - - - - - #{answerText,jdbcType=VARCHAR}, - - - #{pollId,jdbcType=INTEGER}, - - - #{votes,jdbcType=INTEGER}, - - - - - - - update zfgbb.poll_question - - - poll_question_id = #{record.pollQuestionId,jdbcType=INTEGER}, - - - answer_text = #{record.answerText,jdbcType=VARCHAR}, - - - poll_id = #{record.pollId,jdbcType=INTEGER}, - - - votes = #{record.votes,jdbcType=INTEGER}, - - - - - - - - - update zfgbb.poll_question - set poll_question_id = #{record.pollQuestionId,jdbcType=INTEGER}, - answer_text = #{record.answerText,jdbcType=VARCHAR}, - poll_id = #{record.pollId,jdbcType=INTEGER}, - votes = #{record.votes,jdbcType=INTEGER} - - - - - - - update zfgbb.poll_question - - - answer_text = #{answerText,jdbcType=VARCHAR}, - - - poll_id = #{pollId,jdbcType=INTEGER}, - - - votes = #{votes,jdbcType=INTEGER}, - - - where poll_question_id = #{pollQuestionId,jdbcType=INTEGER} - - - - update zfgbb.poll_question - set answer_text = #{answerText,jdbcType=VARCHAR}, - poll_id = #{pollId,jdbcType=INTEGER}, - votes = #{votes,jdbcType=INTEGER} - where poll_question_id = #{pollQuestionId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + poll_question_id, answer_text, poll_id, votes, created_ts, updated_ts + + + + + + delete from zfgbb.poll_question + where poll_question_id = #{pollQuestionId,jdbcType=INTEGER} + + + + delete from zfgbb.poll_question + + + + + + + insert into zfgbb.poll_question (answer_text, poll_id, votes + ) + values (#{answerText,jdbcType=VARCHAR}, #{pollId,jdbcType=INTEGER}, #{votes,jdbcType=INTEGER} + ) + + + + insert into zfgbb.poll_question + + + answer_text, + + + poll_id, + + + votes, + + + + + #{answerText,jdbcType=VARCHAR}, + + + #{pollId,jdbcType=INTEGER}, + + + #{votes,jdbcType=INTEGER}, + + + + + + + update zfgbb.poll_question + + + poll_question_id = #{record.pollQuestionId,jdbcType=INTEGER}, + + + answer_text = #{record.answerText,jdbcType=VARCHAR}, + + + poll_id = #{record.pollId,jdbcType=INTEGER}, + + + votes = #{record.votes,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.poll_question + set poll_question_id = #{record.pollQuestionId,jdbcType=INTEGER}, + answer_text = #{record.answerText,jdbcType=VARCHAR}, + poll_id = #{record.pollId,jdbcType=INTEGER}, + votes = #{record.votes,jdbcType=INTEGER} + + + + + + + update zfgbb.poll_question + + + answer_text = #{answerText,jdbcType=VARCHAR}, + + + poll_id = #{pollId,jdbcType=INTEGER}, + + + votes = #{votes,jdbcType=INTEGER}, + + + where poll_question_id = #{pollQuestionId,jdbcType=INTEGER} + + + + update zfgbb.poll_question + set answer_text = #{answerText,jdbcType=VARCHAR}, + poll_id = #{pollId,jdbcType=INTEGER}, + votes = #{votes,jdbcType=INTEGER} + where poll_question_id = #{pollQuestionId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.java index 3407404..e416db0 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.java @@ -8,69 +8,69 @@ public interface ThreadDboMapper { /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ long countByExample(ThreadDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int deleteByExample(ThreadDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int deleteByPrimaryKey(Integer threadId); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int insert(ThreadDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int insertSelective(ThreadDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ List selectByExample(ThreadDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ ThreadDbo selectByPrimaryKey(Integer threadId); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int updateByExampleSelective(@Param("record") ThreadDbo record, @Param("example") ThreadDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int updateByExample(@Param("record") ThreadDbo record, @Param("example") ThreadDboExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int updateByPrimaryKeySelective(ThreadDbo record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.thread - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + * @mbg.generated Sun Sep 29 01:06:50 EDT 2024 */ int updateByPrimaryKey(ThreadDbo record); - List selectByExampleWithRange(@Param("example")ThreadDboExample example, @Param("start")Integer start, @Param("num") Integer num); + List selectByExampleWithRange(ThreadDboExample example); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.xml index 431becc..d17bf8c 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/ThreadDboMapper.xml @@ -5,7 +5,7 @@ @@ -15,12 +15,13 @@ + @@ -54,7 +55,7 @@ @@ -88,16 +89,16 @@ thread_id, thread_name, locked_flag, pinned_flag, created_ts, updated_ts, board_id, - created_user_id + created_user_id, view_count select count(*) from zfgbb.thread @@ -211,7 +220,7 @@ update zfgbb.thread @@ -233,6 +242,9 @@ created_user_id = #{record.createdUserId,jdbcType=INTEGER}, + + view_count = #{record.viewCount,jdbcType=INTEGER}, + @@ -242,7 +254,7 @@ update zfgbb.thread set thread_id = #{record.threadId,jdbcType=INTEGER}, @@ -250,7 +262,8 @@ locked_flag = #{record.lockedFlag,jdbcType=BIT}, pinned_flag = #{record.pinnedFlag,jdbcType=BIT}, board_id = #{record.boardId,jdbcType=INTEGER}, - created_user_id = #{record.createdUserId,jdbcType=INTEGER} + created_user_id = #{record.createdUserId,jdbcType=INTEGER}, + view_count = #{record.viewCount,jdbcType=INTEGER} @@ -259,7 +272,7 @@ update zfgbb.thread @@ -278,6 +291,9 @@ created_user_id = #{createdUserId,jdbcType=INTEGER}, + + view_count = #{viewCount,jdbcType=INTEGER}, + where thread_id = #{threadId,jdbcType=INTEGER} @@ -285,14 +301,39 @@ update zfgbb.thread set thread_name = #{threadName,jdbcType=VARCHAR}, locked_flag = #{lockedFlag,jdbcType=BIT}, pinned_flag = #{pinnedFlag,jdbcType=BIT}, board_id = #{boardId,jdbcType=INTEGER}, - created_user_id = #{createdUserId,jdbcType=INTEGER} + created_user_id = #{createdUserId,jdbcType=INTEGER}, + view_count = #{viewCount,jdbcType=INTEGER} where thread_id = #{threadId,jdbcType=INTEGER} + + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/ThreadboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/ThreadboMapper.xml index fae0ac5..4fec8e8 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/ThreadboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/ThreadboMapper.xml @@ -1,312 +1,312 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - thread_id, thread_name, locked_flag, pinned_flag, created_ts, updated_ts, board_id - - - - - - delete from zfgbb.thread - where thread_id = #{threadId,jdbcType=INTEGER} - - - - delete from zfgbb.thread - - - - - - - insert into zfgbb.thread (thread_name, locked_flag, pinned_flag, - created_ts, updated_ts, - board_id) - values (#{threadName,jdbcType=VARCHAR}, #{lockedFlag,jdbcType=BIT}, #{pinnedFlag,jdbcType=BIT}, - #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - #{boardId,jdbcType=INTEGER}) - - - - insert into zfgbb.thread - - - thread_name, - - - locked_flag, - - - pinned_flag, - - - created_ts, - - - updated_ts, - - - board_id, - - - - - #{threadName,jdbcType=VARCHAR}, - - - #{lockedFlag,jdbcType=BIT}, - - - #{pinnedFlag,jdbcType=BIT}, - - - #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - - - #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - - - #{boardId,jdbcType=INTEGER}, - - - - - - - update zfgbb.thread - - - thread_id = #{record.threadId,jdbcType=INTEGER}, - - - thread_name = #{record.threadName,jdbcType=VARCHAR}, - - - locked_flag = #{record.lockedFlag,jdbcType=BIT}, - - - pinned_flag = #{record.pinnedFlag,jdbcType=BIT}, - - - created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - - - updated_ts = #{record.updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - - - board_id = #{record.boardId,jdbcType=INTEGER}, - - - - - - - - - update zfgbb.thread - set thread_id = #{record.threadId,jdbcType=INTEGER}, - thread_name = #{record.threadName,jdbcType=VARCHAR}, - locked_flag = #{record.lockedFlag,jdbcType=BIT}, - pinned_flag = #{record.pinnedFlag,jdbcType=BIT}, - created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - updated_ts = #{record.updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - board_id = #{record.boardId,jdbcType=INTEGER} - - - - - - - update zfgbb.thread - - - thread_name = #{threadName,jdbcType=VARCHAR}, - - - locked_flag = #{lockedFlag,jdbcType=BIT}, - - - pinned_flag = #{pinnedFlag,jdbcType=BIT}, - - - created_ts = #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - - - updated_ts = #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - - - board_id = #{boardId,jdbcType=INTEGER}, - - - where thread_id = #{threadId,jdbcType=INTEGER} - - - - update zfgbb.thread - set thread_name = #{threadName,jdbcType=VARCHAR}, - locked_flag = #{lockedFlag,jdbcType=BIT}, - pinned_flag = #{pinnedFlag,jdbcType=BIT}, - created_ts = #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - updated_ts = #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, - board_id = #{boardId,jdbcType=INTEGER} - where thread_id = #{threadId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + thread_id, thread_name, locked_flag, pinned_flag, created_ts, updated_ts, board_id + + + + + + delete from zfgbb.thread + where thread_id = #{threadId,jdbcType=INTEGER} + + + + delete from zfgbb.thread + + + + + + + insert into zfgbb.thread (thread_name, locked_flag, pinned_flag, + created_ts, updated_ts, + board_id) + values (#{threadName,jdbcType=VARCHAR}, #{lockedFlag,jdbcType=BIT}, #{pinnedFlag,jdbcType=BIT}, + #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + #{boardId,jdbcType=INTEGER}) + + + + insert into zfgbb.thread + + + thread_name, + + + locked_flag, + + + pinned_flag, + + + created_ts, + + + updated_ts, + + + board_id, + + + + + #{threadName,jdbcType=VARCHAR}, + + + #{lockedFlag,jdbcType=BIT}, + + + #{pinnedFlag,jdbcType=BIT}, + + + #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + #{boardId,jdbcType=INTEGER}, + + + + + + + update zfgbb.thread + + + thread_id = #{record.threadId,jdbcType=INTEGER}, + + + thread_name = #{record.threadName,jdbcType=VARCHAR}, + + + locked_flag = #{record.lockedFlag,jdbcType=BIT}, + + + pinned_flag = #{record.pinnedFlag,jdbcType=BIT}, + + + created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + updated_ts = #{record.updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + board_id = #{record.boardId,jdbcType=INTEGER}, + + + + + + + + + update zfgbb.thread + set thread_id = #{record.threadId,jdbcType=INTEGER}, + thread_name = #{record.threadName,jdbcType=VARCHAR}, + locked_flag = #{record.lockedFlag,jdbcType=BIT}, + pinned_flag = #{record.pinnedFlag,jdbcType=BIT}, + created_ts = #{record.createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + updated_ts = #{record.updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + board_id = #{record.boardId,jdbcType=INTEGER} + + + + + + + update zfgbb.thread + + + thread_name = #{threadName,jdbcType=VARCHAR}, + + + locked_flag = #{lockedFlag,jdbcType=BIT}, + + + pinned_flag = #{pinnedFlag,jdbcType=BIT}, + + + created_ts = #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + updated_ts = #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + + + board_id = #{boardId,jdbcType=INTEGER}, + + + where thread_id = #{threadId,jdbcType=INTEGER} + + + + update zfgbb.thread + set thread_name = #{threadName,jdbcType=VARCHAR}, + locked_flag = #{lockedFlag,jdbcType=BIT}, + pinned_flag = #{pinnedFlag,jdbcType=BIT}, + created_ts = #{createdTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + updated_ts = #{updatedTs,jdbcType=TIMESTAMP_WITH_TIMEZONE}, + board_id = #{boardId,jdbcType=INTEGER} + where thread_id = #{threadId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.java index f93dc54..61d2324 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.java @@ -1,76 +1,76 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.UserBioInfoDbo; -import com.zfgc.zfgbb.dbo.UserBioInfoDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UserBioInfoDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - long countByExample(UserBioInfoDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int deleteByExample(UserBioInfoDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int deleteByPrimaryKey(Integer userId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int insert(UserBioInfoDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int insertSelective(UserBioInfoDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - List selectByExample(UserBioInfoDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - UserBioInfoDbo selectByPrimaryKey(Integer userId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int updateByExampleSelective(@Param("record") UserBioInfoDbo record, - @Param("example") UserBioInfoDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int updateByExample(@Param("record") UserBioInfoDbo record, @Param("example") UserBioInfoDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int updateByPrimaryKeySelective(UserBioInfoDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info - * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 - */ - int updateByPrimaryKey(UserBioInfoDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.UserBioInfoDbo; +import com.zfgc.zfgbb.dbo.UserBioInfoDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UserBioInfoDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + long countByExample(UserBioInfoDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int deleteByExample(UserBioInfoDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int deleteByPrimaryKey(Integer userId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int insert(UserBioInfoDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int insertSelective(UserBioInfoDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + List selectByExample(UserBioInfoDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + UserBioInfoDbo selectByPrimaryKey(Integer userId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int updateByExampleSelective(@Param("record") UserBioInfoDbo record, + @Param("example") UserBioInfoDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int updateByExample(@Param("record") UserBioInfoDbo record, @Param("example") UserBioInfoDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int updateByPrimaryKeySelective(UserBioInfoDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_bio_info + * @mbg.generated Tue Sep 17 22:24:36 EDT 2024 + */ + int updateByPrimaryKey(UserBioInfoDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.xml index b2add27..d05117b 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/UserBioInfoDboMapper.xml @@ -1,258 +1,258 @@ - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - user_id, custom_title, personal_text, created_ts, updated_ts - - - - - - delete from zfgbb.user_bio_info - where user_id = #{userId,jdbcType=INTEGER} - - - - delete from zfgbb.user_bio_info - - - - - - - insert into zfgbb.user_bio_info (user_id, custom_title, personal_text - ) - values (#{userId,jdbcType=INTEGER}, #{customTitle,jdbcType=VARCHAR}, #{personalText,jdbcType=VARCHAR} - ) - - - - insert into zfgbb.user_bio_info - - - user_id, - - - custom_title, - - - personal_text, - - - - - #{userId,jdbcType=INTEGER}, - - - #{customTitle,jdbcType=VARCHAR}, - - - #{personalText,jdbcType=VARCHAR}, - - - - - - - update zfgbb.user_bio_info - - - user_id = #{record.userId,jdbcType=INTEGER}, - - - custom_title = #{record.customTitle,jdbcType=VARCHAR}, - - - personal_text = #{record.personalText,jdbcType=VARCHAR}, - - - - - - - - - update zfgbb.user_bio_info - set user_id = #{record.userId,jdbcType=INTEGER}, - custom_title = #{record.customTitle,jdbcType=VARCHAR}, - personal_text = #{record.personalText,jdbcType=VARCHAR} - - - - - - - update zfgbb.user_bio_info - - - custom_title = #{customTitle,jdbcType=VARCHAR}, - - - personal_text = #{personalText,jdbcType=VARCHAR}, - - - where user_id = #{userId,jdbcType=INTEGER} - - - - update zfgbb.user_bio_info - set custom_title = #{customTitle,jdbcType=VARCHAR}, - personal_text = #{personalText,jdbcType=VARCHAR} - where user_id = #{userId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + user_id, custom_title, personal_text, created_ts, updated_ts + + + + + + delete from zfgbb.user_bio_info + where user_id = #{userId,jdbcType=INTEGER} + + + + delete from zfgbb.user_bio_info + + + + + + + insert into zfgbb.user_bio_info (user_id, custom_title, personal_text + ) + values (#{userId,jdbcType=INTEGER}, #{customTitle,jdbcType=VARCHAR}, #{personalText,jdbcType=VARCHAR} + ) + + + + insert into zfgbb.user_bio_info + + + user_id, + + + custom_title, + + + personal_text, + + + + + #{userId,jdbcType=INTEGER}, + + + #{customTitle,jdbcType=VARCHAR}, + + + #{personalText,jdbcType=VARCHAR}, + + + + + + + update zfgbb.user_bio_info + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + custom_title = #{record.customTitle,jdbcType=VARCHAR}, + + + personal_text = #{record.personalText,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.user_bio_info + set user_id = #{record.userId,jdbcType=INTEGER}, + custom_title = #{record.customTitle,jdbcType=VARCHAR}, + personal_text = #{record.personalText,jdbcType=VARCHAR} + + + + + + + update zfgbb.user_bio_info + + + custom_title = #{customTitle,jdbcType=VARCHAR}, + + + personal_text = #{personalText,jdbcType=VARCHAR}, + + + where user_id = #{userId,jdbcType=INTEGER} + + + + update zfgbb.user_bio_info + set custom_title = #{customTitle,jdbcType=VARCHAR}, + personal_text = #{personalText,jdbcType=VARCHAR} + where user_id = #{userId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.java index ca42b7f..d9d3ba7 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.java @@ -1,75 +1,75 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.UserDbo; -import com.zfgc.zfgbb.dbo.UserDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UserDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - long countByExample(UserDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int deleteByExample(UserDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int deleteByPrimaryKey(Integer userId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int insert(UserDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int insertSelective(UserDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - List selectByExample(UserDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - UserDbo selectByPrimaryKey(Integer userId); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int updateByExampleSelective(@Param("record") UserDbo record, @Param("example") UserDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int updateByExample(@Param("record") UserDbo record, @Param("example") UserDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int updateByPrimaryKeySelective(UserDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user - * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 - */ - int updateByPrimaryKey(UserDbo record); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.UserDbo; +import com.zfgc.zfgbb.dbo.UserDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UserDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + long countByExample(UserDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int deleteByExample(UserDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int deleteByPrimaryKey(Integer userId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int insert(UserDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int insertSelective(UserDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + List selectByExample(UserDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + UserDbo selectByPrimaryKey(Integer userId); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int updateByExampleSelective(@Param("record") UserDbo record, @Param("example") UserDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int updateByExample(@Param("record") UserDbo record, @Param("example") UserDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int updateByPrimaryKeySelective(UserDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user + * @mbg.generated Tue Sep 17 23:06:54 EDT 2024 + */ + int updateByPrimaryKey(UserDbo record); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.xml index e91e07a..9073d32 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/UserDboMapper.xml @@ -1,282 +1,282 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - user_id, created_ts, updated_ts, sso_key, active_flag, display_name, user_name - - - - - - delete from zfgbb.user - where user_id = #{userId,jdbcType=INTEGER} - - - - delete from zfgbb.user - - - - - - - insert into zfgbb.user (sso_key, active_flag, display_name, - user_name) - values (#{ssoKey,jdbcType=VARCHAR}, #{activeFlag,jdbcType=BIT}, #{displayName,jdbcType=VARCHAR}, - #{userName,jdbcType=VARCHAR}) - - - - insert into zfgbb.user - - - sso_key, - - - active_flag, - - - display_name, - - - user_name, - - - - - #{ssoKey,jdbcType=VARCHAR}, - - - #{activeFlag,jdbcType=BIT}, - - - #{displayName,jdbcType=VARCHAR}, - - - #{userName,jdbcType=VARCHAR}, - - - - - - - update zfgbb.user - - - user_id = #{record.userId,jdbcType=INTEGER}, - - - sso_key = #{record.ssoKey,jdbcType=VARCHAR}, - - - active_flag = #{record.activeFlag,jdbcType=BIT}, - - - display_name = #{record.displayName,jdbcType=VARCHAR}, - - - user_name = #{record.userName,jdbcType=VARCHAR}, - - - - - - - - - update zfgbb.user - set user_id = #{record.userId,jdbcType=INTEGER}, - sso_key = #{record.ssoKey,jdbcType=VARCHAR}, - active_flag = #{record.activeFlag,jdbcType=BIT}, - display_name = #{record.displayName,jdbcType=VARCHAR}, - user_name = #{record.userName,jdbcType=VARCHAR} - - - - - - - update zfgbb.user - - - sso_key = #{ssoKey,jdbcType=VARCHAR}, - - - active_flag = #{activeFlag,jdbcType=BIT}, - - - display_name = #{displayName,jdbcType=VARCHAR}, - - - user_name = #{userName,jdbcType=VARCHAR}, - - - where user_id = #{userId,jdbcType=INTEGER} - - - - update zfgbb.user - set sso_key = #{ssoKey,jdbcType=VARCHAR}, - active_flag = #{activeFlag,jdbcType=BIT}, - display_name = #{displayName,jdbcType=VARCHAR}, - user_name = #{userName,jdbcType=VARCHAR} - where user_id = #{userId,jdbcType=INTEGER} - + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + user_id, created_ts, updated_ts, sso_key, active_flag, display_name, user_name + + + + + + delete from zfgbb.user + where user_id = #{userId,jdbcType=INTEGER} + + + + delete from zfgbb.user + + + + + + + insert into zfgbb.user (sso_key, active_flag, display_name, + user_name) + values (#{ssoKey,jdbcType=VARCHAR}, #{activeFlag,jdbcType=BIT}, #{displayName,jdbcType=VARCHAR}, + #{userName,jdbcType=VARCHAR}) + + + + insert into zfgbb.user + + + sso_key, + + + active_flag, + + + display_name, + + + user_name, + + + + + #{ssoKey,jdbcType=VARCHAR}, + + + #{activeFlag,jdbcType=BIT}, + + + #{displayName,jdbcType=VARCHAR}, + + + #{userName,jdbcType=VARCHAR}, + + + + + + + update zfgbb.user + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + sso_key = #{record.ssoKey,jdbcType=VARCHAR}, + + + active_flag = #{record.activeFlag,jdbcType=BIT}, + + + display_name = #{record.displayName,jdbcType=VARCHAR}, + + + user_name = #{record.userName,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.user + set user_id = #{record.userId,jdbcType=INTEGER}, + sso_key = #{record.ssoKey,jdbcType=VARCHAR}, + active_flag = #{record.activeFlag,jdbcType=BIT}, + display_name = #{record.displayName,jdbcType=VARCHAR}, + user_name = #{record.userName,jdbcType=VARCHAR} + + + + + + + update zfgbb.user + + + sso_key = #{ssoKey,jdbcType=VARCHAR}, + + + active_flag = #{activeFlag,jdbcType=BIT}, + + + display_name = #{displayName,jdbcType=VARCHAR}, + + + user_name = #{userName,jdbcType=VARCHAR}, + + + where user_id = #{userId,jdbcType=INTEGER} + + + + update zfgbb.user + set sso_key = #{ssoKey,jdbcType=VARCHAR}, + active_flag = #{activeFlag,jdbcType=BIT}, + display_name = #{displayName,jdbcType=VARCHAR}, + user_name = #{userName,jdbcType=VARCHAR} + where user_id = #{userId,jdbcType=INTEGER} + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.java b/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.java index ee4eebd..6048f99 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.java +++ b/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.java @@ -1,53 +1,53 @@ -package com.zfgc.zfgbb.mappers; - -import com.zfgc.zfgbb.dbo.UserPermissionViewDbo; -import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UserPermissionViewDboMapper { - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - long countByExample(UserPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int deleteByExample(UserPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insert(UserPermissionViewDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int insertSelective(UserPermissionViewDbo record); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - List selectByExample(UserPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExampleSelective(@Param("record") UserPermissionViewDbo record, - @Param("example") UserPermissionViewDboExample example); - - /** - * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view - * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 - */ - int updateByExample(@Param("record") UserPermissionViewDbo record, - @Param("example") UserPermissionViewDboExample example); +package com.zfgc.zfgbb.mappers; + +import com.zfgc.zfgbb.dbo.UserPermissionViewDbo; +import com.zfgc.zfgbb.dbo.UserPermissionViewDboExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UserPermissionViewDboMapper { + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + long countByExample(UserPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int deleteByExample(UserPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insert(UserPermissionViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int insertSelective(UserPermissionViewDbo record); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + List selectByExample(UserPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExampleSelective(@Param("record") UserPermissionViewDbo record, + @Param("example") UserPermissionViewDboExample example); + + /** + * This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.user_permission_view + * @mbg.generated Thu Aug 22 20:55:49 EDT 2024 + */ + int updateByExample(@Param("record") UserPermissionViewDbo record, + @Param("example") UserPermissionViewDboExample example); } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.xml b/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.xml index ae95fcc..069dd73 100644 --- a/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.xml +++ b/src/main/java/com/zfgc/zfgbb/mappers/UserPermissionViewDboMapper.xml @@ -1,208 +1,208 @@ - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - user_id, permission_id, permission_code - - - - - delete from zfgbb.user_permission_view - - - - - - - insert into zfgbb.user_permission_view (user_id, permission_id, permission_code - ) - values (#{userId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER}, #{permissionCode,jdbcType=VARCHAR} - ) - - - - insert into zfgbb.user_permission_view - - - user_id, - - - permission_id, - - - permission_code, - - - - - #{userId,jdbcType=INTEGER}, - - - #{permissionId,jdbcType=INTEGER}, - - - #{permissionCode,jdbcType=VARCHAR}, - - - - - - - update zfgbb.user_permission_view - - - user_id = #{record.userId,jdbcType=INTEGER}, - - - permission_id = #{record.permissionId,jdbcType=INTEGER}, - - - permission_code = #{record.permissionCode,jdbcType=VARCHAR}, - - - - - - - - - update zfgbb.user_permission_view - set user_id = #{record.userId,jdbcType=INTEGER}, - permission_id = #{record.permissionId,jdbcType=INTEGER}, - permission_code = #{record.permissionCode,jdbcType=VARCHAR} - - - - + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + user_id, permission_id, permission_code + + + + + delete from zfgbb.user_permission_view + + + + + + + insert into zfgbb.user_permission_view (user_id, permission_id, permission_code + ) + values (#{userId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER}, #{permissionCode,jdbcType=VARCHAR} + ) + + + + insert into zfgbb.user_permission_view + + + user_id, + + + permission_id, + + + permission_code, + + + + + #{userId,jdbcType=INTEGER}, + + + #{permissionId,jdbcType=INTEGER}, + + + #{permissionCode,jdbcType=VARCHAR}, + + + + + + + update zfgbb.user_permission_view + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + permission_id = #{record.permissionId,jdbcType=INTEGER}, + + + permission_code = #{record.permissionCode,jdbcType=VARCHAR}, + + + + + + + + + update zfgbb.user_permission_view + set user_id = #{record.userId,jdbcType=INTEGER}, + permission_id = #{record.permissionId,jdbcType=INTEGER}, + permission_code = #{record.permissionCode,jdbcType=VARCHAR} + + + + \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/BaseModel.java b/src/main/java/com/zfgc/zfgbb/model/BaseModel.java index 9108ff5..eaa2bc8 100644 --- a/src/main/java/com/zfgc/zfgbb/model/BaseModel.java +++ b/src/main/java/com/zfgc/zfgbb/model/BaseModel.java @@ -1,9 +1,7 @@ package com.zfgc.zfgbb.model; -import java.time.LocalDate; import java.time.LocalDateTime; - -import org.apache.commons.lang3.time.DateUtils; +import java.time.format.DateTimeFormatter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -32,4 +30,11 @@ public void setCreatedTs(LocalDateTime createdTs) { this.createdTs = createdTs; } + public String getCreatedTsAsString() { + if(createdTs != null) { + return createdTs.format(DateTimeFormatter.ofPattern("MM/dd/YYYY HH:mm:SS")); + } + return ""; + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/User.java b/src/main/java/com/zfgc/zfgbb/model/User.java index 734a409..174eade 100644 --- a/src/main/java/com/zfgc/zfgbb/model/User.java +++ b/src/main/java/com/zfgc/zfgbb/model/User.java @@ -10,11 +10,14 @@ import org.springframework.security.core.userdetails.UserDetails; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.zfgc.zfgbb.model.meta.IpAddress; +import com.zfgc.zfgbb.model.users.Avatar; import com.zfgc.zfgbb.model.users.EmailAddress; import com.zfgc.zfgbb.model.users.Permission; import com.zfgc.zfgbb.model.users.UserBioInfo; +@JsonInclude(JsonInclude.Include.NON_NULL) public class User extends BaseModel implements UserDetails { @JsonIgnore private Integer userId; @@ -24,14 +27,14 @@ public class User extends BaseModel implements UserDetails { private EmailAddress email; private String ssoKey; private String password; - - @JsonIgnore private List permissions = new ArrayList<>(); private IpAddress currentIpAddress; private List allKnownIpAddresses = new ArrayList<>(); private UserBioInfo bioInfo; + private Avatar avatar; + public List getPermissions() { return permissions; @@ -171,4 +174,21 @@ public void setBioInfo(UserBioInfo bioInfo) { this.bioInfo = bioInfo; } + @JsonIgnore + public boolean hasPermission(String permission) { + if(permissions != null) { + return permissions.stream().anyMatch(pr -> pr.getPermissionCode().equals(permission)); + } + + return false; + } + + public Avatar getAvatar() { + return avatar; + } + + public void setAvatar(Avatar avatar) { + this.avatar = avatar; + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/core/ContentResource.java b/src/main/java/com/zfgc/zfgbb/model/core/ContentResource.java new file mode 100644 index 0000000..ebe9d39 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/model/core/ContentResource.java @@ -0,0 +1,68 @@ +package com.zfgc.zfgbb.model.core; + + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class ContentResource extends BaseModel { + + @JsonIgnore + private Integer contentResourceId; + private Integer contentTypeId; + private Integer uploadedUserId; + private String filename; + private String checksum; + private String fileExt; + private String mimeType; + @Override + public Integer getId() { + return contentResourceId; + } + @Override + public void setId(Integer id) { + contentResourceId = id; + } + + public Integer getContentResourceId() { + return contentResourceId; + } + public void setContentResourceId(Integer contentResourceId) { + this.contentResourceId = contentResourceId; + } + public Integer getContentTypeId() { + return contentTypeId; + } + public void setContentTypeId(Integer contentTypeId) { + this.contentTypeId = contentTypeId; + } + public Integer getUploadedUserId() { + return uploadedUserId; + } + public void setUploadedUserId(Integer uploadedUserId) { + this.uploadedUserId = uploadedUserId; + } + public String getFilename() { + return filename; + } + public void setFilename(String filename) { + this.filename = filename; + } + public String getChecksum() { + return checksum; + } + public void setChecksum(String checksum) { + this.checksum = checksum; + } + public String getFileExt() { + return fileExt; + } + public void setFileExt(String fileExt) { + this.fileExt = fileExt; + } + public String getMimeType() { + return mimeType; + } + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } +} diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/AttributeDataType.java b/src/main/java/com/zfgc/zfgbb/model/forum/AttributeDataType.java index b85cd82..2973e24 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/AttributeDataType.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/AttributeDataType.java @@ -1,6 +1,6 @@ -package com.zfgc.zfgbb.model.forum; - -public enum AttributeDataType { - TIMESTAMP, - TEXT +package com.zfgc.zfgbb.model.forum; + +public enum AttributeDataType { + TIMESTAMP, + TEXT } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttribute.java b/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttribute.java index 846b1e5..4d3c4b7 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttribute.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttribute.java @@ -1,88 +1,88 @@ -package com.zfgc.zfgbb.model.forum; - -import com.zfgc.zfgbb.model.BaseModel; - -public class BBCodeAttribute extends BaseModel { - - private Integer bbCodeAttributeId; - private Integer attributeDataType; - private String attributeIndex; - private Integer bbCodeAttributeModeId; - private String name; - private AttributeDataType dataType; - - public String transformValue(String value){ - String result = ""; - - switch(dataType){ - case TIMESTAMP: - result = createDate(value); - break; - - case TEXT: - result = value; - break; - } - - return result; - } - - public String createDate(String value){ - return "";//ZfgcTimeUtils.createDateAsString(value, super.getUserTimeZone()); - } - - public Integer getBbCodeAttributeId() { - return bbCodeAttributeId; - } - - public void setBbCodeAttributeId(Integer bbCodeAttributeId) { - this.bbCodeAttributeId = bbCodeAttributeId; - } - - public Integer getAttributeDataType() { - return attributeDataType; - } - - public void setAttributeDataType(Integer attributeDataType) { - this.attributeDataType = attributeDataType; - } - - public Integer getBbCodeAttributeModeId() { - return bbCodeAttributeModeId; - } - - public void setBbCodeAttributeModeId(Integer bbCodeAttributeModeId) { - this.bbCodeAttributeModeId = bbCodeAttributeModeId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @Override - public Integer getId() { - return bbCodeAttributeId; - } - - @Override - public void setId(Integer id) { - bbCodeAttributeId = id; - } - - public String getAttributeIndex() { - return attributeIndex; - } - - public void setAttributeIndex(String attributeIndex) { - this.attributeIndex = attributeIndex; - } - - public void setDataType(AttributeDataType dataType) { - this.dataType = dataType; - } - +package com.zfgc.zfgbb.model.forum; + +import com.zfgc.zfgbb.model.BaseModel; + +public class BBCodeAttribute extends BaseModel { + + private Integer bbCodeAttributeId; + private Integer attributeDataType; + private String attributeIndex; + private Integer bbCodeAttributeModeId; + private String name; + private AttributeDataType dataType; + + public String transformValue(String value){ + String result = ""; + + switch(dataType){ + case TIMESTAMP: + result = createDate(value); + break; + + case TEXT: + result = value; + break; + } + + return result; + } + + public String createDate(String value){ + return "";//ZfgcTimeUtils.createDateAsString(value, super.getUserTimeZone()); + } + + public Integer getBbCodeAttributeId() { + return bbCodeAttributeId; + } + + public void setBbCodeAttributeId(Integer bbCodeAttributeId) { + this.bbCodeAttributeId = bbCodeAttributeId; + } + + public Integer getAttributeDataType() { + return attributeDataType; + } + + public void setAttributeDataType(Integer attributeDataType) { + this.attributeDataType = attributeDataType; + } + + public Integer getBbCodeAttributeModeId() { + return bbCodeAttributeModeId; + } + + public void setBbCodeAttributeModeId(Integer bbCodeAttributeModeId) { + this.bbCodeAttributeModeId = bbCodeAttributeModeId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public Integer getId() { + return bbCodeAttributeId; + } + + @Override + public void setId(Integer id) { + bbCodeAttributeId = id; + } + + public String getAttributeIndex() { + return attributeIndex; + } + + public void setAttributeIndex(String attributeIndex) { + this.attributeIndex = attributeIndex; + } + + public void setDataType(AttributeDataType dataType) { + this.dataType = dataType; + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttributeMode.java b/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttributeMode.java index f23d757..d3edc3b 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttributeMode.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeAttributeMode.java @@ -10,10 +10,10 @@ public class BBCodeAttributeMode extends BaseModel { @JsonIgnore private Integer bbCodeAttributeModeId; private Integer bbCodeConfigId; - private Boolean contentIsAttributeFlag; + private Boolean contentIsAttributeFlag = false; private String openTag; private String closeTag; - private Boolean outputContentFlag; + private Boolean outputContentFlag = true; private List attributes = new ArrayList<>(); public Integer getBbCodeAttributeModeId() { diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeConfig.java b/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeConfig.java index 3c6a416..ec28da2 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeConfig.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/BBCodeConfig.java @@ -1,74 +1,74 @@ -package com.zfgc.zfgbb.model.forum; - -import java.util.HashMap; -import java.util.Map; - -import com.zfgc.zfgbb.model.BaseModel; - -public class BBCodeConfig extends BaseModel { - - private Integer bbCodeConfigId; - private String code; - private String endTag; - private Boolean processContentFlag; - private String allAttributeNamesAsString; - private Map attributeConfig = new HashMap<>(); - - public Integer getBbCodeConfigId() { - return bbCodeConfigId; - } - - public void setBbCodeConfigId(Integer bbCodeConfigId) { - this.bbCodeConfigId = bbCodeConfigId; - } - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getEndTag() { - return endTag; - } - - public void setEndTag(String endTag) { - this.endTag = endTag; - } - - public Boolean getProcessContentFlag() { - return processContentFlag; - } - - public void setProcessContentFlag(Boolean processContentFlag) { - this.processContentFlag = processContentFlag; - } - - public String getAllAttributeNamesAsString() { - return allAttributeNamesAsString; - } - public void setAllAttributeNamesAsString(String allAttributeNamesAsString) { - this.allAttributeNamesAsString = allAttributeNamesAsString; - } - - @Override - public Integer getId() { - return bbCodeConfigId; - } - - @Override - public void setId(Integer id) { - bbCodeConfigId = id; - } - - public Map getAttributeConfig() { - return attributeConfig; - } - - public void setAttributeConfig(Map attributeConfig) { - this.attributeConfig = attributeConfig; - } - +package com.zfgc.zfgbb.model.forum; + +import java.util.HashMap; +import java.util.Map; + +import com.zfgc.zfgbb.model.BaseModel; + +public class BBCodeConfig extends BaseModel { + + private Integer bbCodeConfigId; + private String code; + private String endTag; + private Boolean processContentFlag; + private String allAttributeNamesAsString; + private Map attributeConfig = new HashMap<>(); + + public Integer getBbCodeConfigId() { + return bbCodeConfigId; + } + + public void setBbCodeConfigId(Integer bbCodeConfigId) { + this.bbCodeConfigId = bbCodeConfigId; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getEndTag() { + return endTag; + } + + public void setEndTag(String endTag) { + this.endTag = endTag; + } + + public Boolean getProcessContentFlag() { + return processContentFlag; + } + + public void setProcessContentFlag(Boolean processContentFlag) { + this.processContentFlag = processContentFlag; + } + + public String getAllAttributeNamesAsString() { + return allAttributeNamesAsString; + } + public void setAllAttributeNamesAsString(String allAttributeNamesAsString) { + this.allAttributeNamesAsString = allAttributeNamesAsString; + } + + @Override + public Integer getId() { + return bbCodeConfigId; + } + + @Override + public void setId(Integer id) { + bbCodeConfigId = id; + } + + public Map getAttributeConfig() { + return attributeConfig; + } + + public void setAttributeConfig(Map attributeConfig) { + this.attributeConfig = attributeConfig; + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/Board.java b/src/main/java/com/zfgc/zfgbb/model/forum/Board.java index 4dcc8c3..6a45990 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/Board.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/Board.java @@ -1,5 +1,7 @@ package com.zfgc.zfgbb.model.forum; +import java.util.List; + import com.fasterxml.jackson.annotation.JsonIgnore; import com.zfgc.zfgbb.model.BaseModel; @@ -10,8 +12,29 @@ public class Board extends BaseModel { private String boardName; private String description; private Integer categoryId; - private Integer forumId; + private Integer parentBoardId; + private Long threadCount; + + private List stickyThreads; + private List unStickyThreads; + private List childBoards; + public List getStickyThreads() { + return stickyThreads; + } + + public void setStickyThreads(List stickyThreads) { + this.stickyThreads = stickyThreads; + } + + public List getUnStickyThreads() { + return unStickyThreads; + } + + public void setUnStickyThreads(List unStickyThreads) { + this.unStickyThreads = unStickyThreads; + } + @Override public Integer getId() { return boardId; @@ -46,14 +69,6 @@ public void setDescription(String description) { this.description = description; } - public Integer getForumId() { - return forumId; - } - - public void setForumId(Integer forumId) { - this.forumId = forumId; - } - public Integer getCategoryId() { return categoryId; } @@ -62,5 +77,37 @@ public void setCategoryId(Integer categoryId) { this.categoryId = categoryId; } + public Integer getParentBoardId() { + return parentBoardId; + } + + public void setParentBoardId(Integer parentBoardId) { + this.parentBoardId = parentBoardId; + } + + public Long getThreadCount() { + return threadCount; + } + + public void setThreadCount(Long threadCount) { + this.threadCount = threadCount; + } + + public List getChildBoards() { + return childBoards; + } + + public void setChildBoards(List childBoards) { + this.childBoards = childBoards; + } + + public Long getPageCount() { + if(threadCount == null) { + return 1L; + } + return (long) Math.ceil(threadCount.doubleValue() / 10.0); + } + + } diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/BoardSummary.java b/src/main/java/com/zfgc/zfgbb/model/forum/BoardSummary.java new file mode 100644 index 0000000..33b4940 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/model/forum/BoardSummary.java @@ -0,0 +1,120 @@ +package com.zfgc.zfgbb.model.forum; + +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.List; + +import org.apache.commons.lang3.StringUtils; + +import com.fasterxml.jackson.annotation.JsonIgnore; + +public class BoardSummary { + private Integer boardId; + private String description; + private String boardName; + private Long threadCount; + private Long postCount; + private Integer latestMessageId; + private Integer latestThreadId; + private Integer latestMessageOwnerId; + private String latestMessageUserName; + private Integer categoryId; + private Integer parentBoardId; + + private List childBoards; + + @JsonIgnore + private LocalDateTime latestMessageCreatedTs; + + public Integer getBoardId() { + return boardId; + } + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } + public String getDescription() { + return description; + } + public void setDescription(String description) { + this.description = description; + } + public String getBoardName() { + return boardName; + } + public void setBoardName(String boardName) { + this.boardName = boardName; + } + public Long getThreadCount() { + return threadCount; + } + public void setThreadCount(Long threadCount) { + this.threadCount = threadCount; + } + public Long getPostCount() { + return postCount; + } + public void setPostCount(Long postCount) { + this.postCount = postCount; + } + public Integer getLatestMessageId() { + return latestMessageId; + } + public void setLatestMessageId(Integer latestMessageId) { + this.latestMessageId = latestMessageId; + } + public Integer getLatestThreadId() { + return latestThreadId; + } + public void setLatestThreadId(Integer latestThreadId) { + this.latestThreadId = latestThreadId; + } + public Integer getLatestMessageOwnerId() { + return latestMessageOwnerId; + } + public void setLatestMessageOwnerId(Integer latestMessageOwnerId) { + this.latestMessageOwnerId = latestMessageOwnerId; + } + public String getLatestMessageUserName() { + return latestMessageUserName; + } + public void setLatestMessageUserName(String latestMessageUserName) { + this.latestMessageUserName = latestMessageUserName; + } + public LocalDateTime getLatestMessageCreatedTs() { + return latestMessageCreatedTs; + } + public void setLatestMessageCreatedTs(LocalDateTime latestMessageCreatedTs) { + this.latestMessageCreatedTs = latestMessageCreatedTs; + } + public String getLatestMessageCreatedTsAsString() { + if(latestMessageCreatedTs != null) { + return DateTimeFormatter.ofPattern("MM/dd/YYYY hh:mm:ss am").format(latestMessageCreatedTs); + } + + return null; + } + + public void setLatestMessageCreatedTsAsString(String latestMessageCreatedTsAsString) { + if(!StringUtils.isEmpty(latestMessageCreatedTsAsString)) { + latestMessageCreatedTs = (LocalDateTime) DateTimeFormatter.ofPattern("MM/dd/YYYY hh:mm:ss am").parse(latestMessageCreatedTsAsString); + } + } + public Integer getParentBoardId() { + return parentBoardId; + } + public void setParentBoardId(Integer parentBoardId) { + this.parentBoardId = parentBoardId; + } + public Integer getCategoryId() { + return categoryId; + } + public void setCategoryId(Integer categoryId) { + this.categoryId = categoryId; + } + public List getChildBoards() { + return childBoards; + } + public void setChildBoards(List childBoards) { + this.childBoards = childBoards; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/Category.java b/src/main/java/com/zfgc/zfgbb/model/forum/Category.java index 8843ea1..27c0d7f 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/Category.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/Category.java @@ -13,7 +13,7 @@ public class Category extends BaseModel { private String description; private Integer parentCategoryId; - private List boards = new ArrayList<>(); + private List boards = new ArrayList<>(); public Integer getCategoryId() { return categoryId; @@ -48,10 +48,10 @@ public Integer getId() { public void setId(Integer id) { categoryId = id; } - public List getBoards() { + public List getBoards() { return boards; } - public void setBoards(List boards) { + public void setBoards(List boards) { this.boards = boards; } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/ChildBoard.java b/src/main/java/com/zfgc/zfgbb/model/forum/ChildBoard.java new file mode 100644 index 0000000..9891b02 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/model/forum/ChildBoard.java @@ -0,0 +1,26 @@ +package com.zfgc.zfgbb.model.forum; + +public class ChildBoard { + private Integer boardId; + private String boardName; + private Integer parentBoardId; + public Integer getBoardId() { + return boardId; + } + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } + public String getBoardName() { + return boardName; + } + public void setBoardName(String boardName) { + this.boardName = boardName; + } + public Integer getParentBoardId() { + return parentBoardId; + } + public void setParentBoardId(Integer parentBoardId) { + this.parentBoardId = parentBoardId; + } + +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/Forum.java b/src/main/java/com/zfgc/zfgbb/model/forum/Forum.java index 85a8810..6f952bb 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/Forum.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/Forum.java @@ -1,122 +1,68 @@ -package com.zfgc.zfgbb.model.forum; - -import java.util.ArrayList; -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; -import com.zfgc.zfgbb.model.users.Permission; -import com.zfgc.zfgbb.security.Securable; - -public class Forum extends BaseModel implements Securable{ - - private List categories = new ArrayList<>(); - private String boardName; - private List stickyThreads = new ArrayList<>(); - private List threads = new ArrayList<>(); - private Integer categoryId; - private Long threadCount = 0L; - private Integer threadsPerPage = 10; - - @JsonIgnore - private Integer boardId; - @JsonIgnore - private List boardPermissions = new ArrayList<>(); - - public List getCategories() { - return categories; - } - - public void setCategories(List categories) { - this.categories = categories; - } - - public String getBoardName() { - return boardName; - } - - public void setBoardName(String boardName) { - this.boardName = boardName; - } - - public List getThreads() { - return threads; - } - - public void setThreads(List threads) { - this.threads = threads; - } - - public List getStickyThreads() { - return stickyThreads; - } - - public void setStickyThreads(List stickyThreads) { - this.stickyThreads = stickyThreads; - } - - public List getBoardPermissions() { - return boardPermissions; - } - - public void setBoardPermissions(List boardPermissions) { - this.boardPermissions = boardPermissions; - } - - @Override - @JsonIgnore - public List getPermissions() { - return this.boardPermissions; - } - - public Integer getCategoryId() { - return categoryId; - } - - public void setCategoryId(Integer categoryId) { - this.categoryId = categoryId; - } - - @Override - public Integer getId() { - return boardId; - } - - @Override - public void setId(Integer id) { - boardId = id; - } - - public Integer getBoardId() { - return boardId; - } - - public void setBoardId(Integer boardId) { - this.boardId = boardId; - } - - public Integer getThreadsPerPage() { - return threadsPerPage; - } - - public void setThreadsPerPage(Integer threadsPerPage) { - this.threadsPerPage = threadsPerPage; - } - - public Long getThreadCount() { - return threadCount; - } - - public void setThreadCount(Long threadCount) { - this.threadCount = threadCount; - } - - public Integer getPageCount() { - int count = (int)Math.ceil( threadCount / threadsPerPage.longValue()); - return count == 0 ? 1 : count; - } - - - - +package com.zfgc.zfgbb.model.forum; + +import java.util.ArrayList; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; +import com.zfgc.zfgbb.model.users.Permission; +import com.zfgc.zfgbb.security.Securable; + +public class Forum extends BaseModel implements Securable{ + + private List categories = new ArrayList<>(); + private String boardName; + + @JsonIgnore + private Integer boardId; + @JsonIgnore + private List boardPermissions = new ArrayList<>(); + + public List getCategories() { + return categories; + } + + public void setCategories(List categories) { + this.categories = categories; + } + + public String getBoardName() { + return boardName; + } + + public void setBoardName(String boardName) { + this.boardName = boardName; + } + + public List getBoardPermissions() { + return boardPermissions; + } + + public void setBoardPermissions(List boardPermissions) { + this.boardPermissions = boardPermissions; + } + + @Override + @JsonIgnore + public List getPermissions() { + return this.boardPermissions; + } + + @Override + public Integer getId() { + return boardId; + } + + @Override + public void setId(Integer id) { + boardId = id; + } + + public Integer getBoardId() { + return boardId; + } + + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/LatestMessage.java b/src/main/java/com/zfgc/zfgbb/model/forum/LatestMessage.java new file mode 100644 index 0000000..5331f33 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/model/forum/LatestMessage.java @@ -0,0 +1,59 @@ +package com.zfgc.zfgbb.model.forum; + +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; + +import com.fasterxml.jackson.annotation.JsonIgnore; + +public class LatestMessage { + private Integer threadId; + private String threadName; + private Integer messageId; + private Integer messageHistoryId; + @JsonIgnore + private LocalDateTime createdTs; + private String ownerName; + + public Integer getThreadId() { + return threadId; + } + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + public String getThreadName() { + return threadName; + } + public void setThreadName(String threadName) { + this.threadName = threadName; + } + public Integer getMessageId() { + return messageId; + } + public void setMessageId(Integer messageId) { + this.messageId = messageId; + } + public Integer getMessageHistoryId() { + return messageHistoryId; + } + public void setMessageHistoryId(Integer messageHistoryId) { + this.messageHistoryId = messageHistoryId; + } + public LocalDateTime getCreatedTs() { + return createdTs; + } + public void setCreatedTs(LocalDateTime createdTs) { + this.createdTs = createdTs; + } + public String getOwnerName() { + return ownerName; + } + public void setOwnerName(String ownerName) { + this.ownerName = ownerName; + } + public String getCreatedTsAsString() { + if(createdTs != null) { + return createdTs.format(DateTimeFormatter.ofPattern("MM/dd/YYYY HH:mm:SS")); + } + return ""; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/Message.java b/src/main/java/com/zfgc/zfgbb/model/forum/Message.java index c604c10..112996a 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/Message.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/Message.java @@ -1,75 +1,86 @@ -package com.zfgc.zfgbb.model.forum; - -import java.time.LocalDate; -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; - -public class Message extends BaseModel { - @JsonIgnore - private Integer messageId; - private Integer ownerId; - private Integer threadId; - private Integer postInThread; - - private MessageHistory currentMessage = new MessageHistory(); - - public Integer getMessageId() { - return messageId; - } - - public void setMessageId(Integer messageId) { - this.messageId = messageId; - } - - public Integer getOwnerId() { - return ownerId; - } - - public void setOwnerId(Integer ownerId) { - this.ownerId = ownerId; - } - - @Override - public Integer getId() { - return messageId; - } - - @Override - public void setId(Integer id) { - messageId = id; - } - - public Integer getThreadId() { - return threadId; - } - - public void setThreadId(Integer threadId) { - this.threadId = threadId; - } - - @JsonIgnore - public LocalDateTime getLatestMessageTs() { - return currentMessage.getCreatedTs(); - } - - public MessageHistory getCurrentMessage() { - return currentMessage; - } - - public void setCurrentMessage(MessageHistory currentMessage) { - this.currentMessage = currentMessage; - } - - public Integer getPostInThread() { - return postInThread; - } - - public void setPostInThread(Integer postInThread) { - this.postInThread = postInThread; - } - +package com.zfgc.zfgbb.model.forum; + +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; +import com.zfgc.zfgbb.model.User; + +public class Message extends BaseModel { + @JsonIgnore + private Integer messageId; + private Integer ownerId; + private Integer threadId; + private Integer postInThread; + + private User createdUser; + + private MessageHistory currentMessage = new MessageHistory(); + + public Integer getMessageId() { + return messageId; + } + + public void setMessageId(Integer messageId) { + this.messageId = messageId; + } + + public Integer getOwnerId() { + return ownerId; + } + + public void setOwnerId(Integer ownerId) { + this.ownerId = ownerId; + } + + @Override + public Integer getId() { + return messageId; + } + + @Override + public void setId(Integer id) { + messageId = id; + } + + public Integer getThreadId() { + return threadId; + } + + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + + @JsonIgnore + public LocalDateTime getLatestMessageTs() { + return currentMessage.getCreatedTs(); + } + + public MessageHistory getCurrentMessage() { + return currentMessage; + } + + public void setCurrentMessage(MessageHistory currentMessage) { + this.currentMessage = currentMessage; + } + + public Integer getPostInThread() { + return postInThread; + } + + public void setPostInThread(Integer postInThread) { + this.postInThread = postInThread; + } + + public User getCreatedUser() { + return createdUser; + } + + public void setCreatedUser(User createdUser) { + this.createdUser = createdUser; + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/MessageHistory.java b/src/main/java/com/zfgc/zfgbb/model/forum/MessageHistory.java index fcd31cc..685e3c9 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/MessageHistory.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/MessageHistory.java @@ -1,5 +1,7 @@ package com.zfgc.zfgbb.model.forum; +import java.time.format.DateTimeFormatter; + import com.fasterxml.jackson.annotation.JsonIgnore; import com.zfgc.zfgbb.model.BaseModel; diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/Poll.java b/src/main/java/com/zfgc/zfgbb/model/forum/Poll.java index 49dfb0b..9c0a520 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/Poll.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/Poll.java @@ -1,43 +1,43 @@ -package com.zfgc.zfgbb.model.forum; - -import java.util.ArrayList; -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; - -public class Poll extends BaseModel { - @JsonIgnore - private Integer pollId; - private String pollQuestion; - private Integer threadId; - - private List answers = new ArrayList<>(); - - @Override - public Integer getId() { - return pollId; - } - @Override - public void setId(Integer id) { - pollId = id; - } - public String getPollQuestion() { - return pollQuestion; - } - public void setPollQuestion(String pollQuestion) { - this.pollQuestion = pollQuestion; - } - public Integer getThreadId() { - return threadId; - } - public void setThreadId(Integer threadId) { - this.threadId = threadId; - } - public List getAnswers() { - return answers; - } - public void setAnswers(List answers) { - this.answers = answers; - } +package com.zfgc.zfgbb.model.forum; + +import java.util.ArrayList; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class Poll extends BaseModel { + @JsonIgnore + private Integer pollId; + private String pollQuestion; + private Integer threadId; + + private List answers = new ArrayList<>(); + + @Override + public Integer getId() { + return pollId; + } + @Override + public void setId(Integer id) { + pollId = id; + } + public String getPollQuestion() { + return pollQuestion; + } + public void setPollQuestion(String pollQuestion) { + this.pollQuestion = pollQuestion; + } + public Integer getThreadId() { + return threadId; + } + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + public List getAnswers() { + return answers; + } + public void setAnswers(List answers) { + this.answers = answers; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/PollQuestion.java b/src/main/java/com/zfgc/zfgbb/model/forum/PollQuestion.java index 19f8679..83141bd 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/PollQuestion.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/PollQuestion.java @@ -1,56 +1,56 @@ -package com.zfgc.zfgbb.model.forum; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; - -public class PollQuestion extends BaseModel { - - @JsonIgnore - private Integer pollQuestionId; - private String answerText; - private Integer pollId; - private Integer votes; - - public Integer getPollQuestionId() { - return pollQuestionId; - } - - public void setPollQuestionId(Integer pollQuestionId) { - this.pollQuestionId = pollQuestionId; - } - - public String getAnswerText() { - return answerText; - } - - public void setAnswerText(String answerText) { - this.answerText = answerText; - } - - public Integer getPollId() { - return pollId; - } - - public void setPollId(Integer pollId) { - this.pollId = pollId; - } - - public Integer getVotes() { - return votes; - } - - public void setVotes(Integer votes) { - this.votes = votes; - } - - @Override - public Integer getId() { - return pollQuestionId; - } - - @Override - public void setId(Integer id) { - pollQuestionId = id; - } - -} +package com.zfgc.zfgbb.model.forum; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class PollQuestion extends BaseModel { + + @JsonIgnore + private Integer pollQuestionId; + private String answerText; + private Integer pollId; + private Integer votes; + + public Integer getPollQuestionId() { + return pollQuestionId; + } + + public void setPollQuestionId(Integer pollQuestionId) { + this.pollQuestionId = pollQuestionId; + } + + public String getAnswerText() { + return answerText; + } + + public void setAnswerText(String answerText) { + this.answerText = answerText; + } + + public Integer getPollId() { + return pollId; + } + + public void setPollId(Integer pollId) { + this.pollId = pollId; + } + + public Integer getVotes() { + return votes; + } + + public void setVotes(Integer votes) { + this.votes = votes; + } + + @Override + public Integer getId() { + return pollQuestionId; + } + + @Override + public void setId(Integer id) { + pollQuestionId = id; + } + +} diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/Thread.java b/src/main/java/com/zfgc/zfgbb/model/forum/Thread.java index e4969bf..4365d62 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/Thread.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/Thread.java @@ -19,11 +19,15 @@ public class Thread extends BaseModel implements Securable { private Integer createdUserId; private User createdUser; + private Integer postCount; + private Integer viewCount; - @JsonIgnore + @JsonIgnore private List boardPermissions = new ArrayList<>(); private List messages = new ArrayList<>(); + private LatestMessage latestMessage; + private Poll pollInfo; public Integer getThreadId() { @@ -100,4 +104,23 @@ public Poll getPollInfo() { public void setPollInfo(Poll pollInfo) { this.pollInfo = pollInfo; } + + public Integer getPostCount() { + return postCount; + } + public void setPostCount(Integer postCount) { + this.postCount = postCount; + } + public Integer getViewCount() { + return viewCount; + } + public void setViewCount(Integer viewCount) { + this.viewCount = viewCount; + } + public LatestMessage getLatestMessage() { + return latestMessage; + } + public void setLatestMessage(LatestMessage latestMessage) { + this.latestMessage = latestMessage; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/forum/ThreadSplit.java b/src/main/java/com/zfgc/zfgbb/model/forum/ThreadSplit.java index adc6e71..fb6eb2e 100644 --- a/src/main/java/com/zfgc/zfgbb/model/forum/ThreadSplit.java +++ b/src/main/java/com/zfgc/zfgbb/model/forum/ThreadSplit.java @@ -1,43 +1,43 @@ -package com.zfgc.zfgbb.model.forum; - -import java.util.ArrayList; -import java.util.List; - -public class ThreadSplit { - private Integer threadId; - private Integer boardId; - private List messageIdsToMove = new ArrayList<>(); - private String newThreadTitle; - private Boolean moveAllAfterSpecifiedFlg = false; - - public Integer getThreadId() { - return threadId; - } - public void setThreadId(Integer threadId) { - this.threadId = threadId; - } - public Integer getBoardId() { - return boardId; - } - public void setBoardId(Integer boardId) { - this.boardId = boardId; - } - public List getMessageIdsToMove() { - return messageIdsToMove; - } - public void setMessageIdsToMove(List messageIdsToMove) { - this.messageIdsToMove = messageIdsToMove; - } - public String getNewThreadTitle() { - return newThreadTitle; - } - public void setNewThreadTitle(String newThreadTitle) { - this.newThreadTitle = newThreadTitle; - } - public Boolean getMoveAllAfterSpecifiedFlg() { - return moveAllAfterSpecifiedFlg; - } - public void setMoveAllAfterSpecifiedFlg(Boolean moveAllAfterSpecifiedFlg) { - this.moveAllAfterSpecifiedFlg = moveAllAfterSpecifiedFlg; - } +package com.zfgc.zfgbb.model.forum; + +import java.util.ArrayList; +import java.util.List; + +public class ThreadSplit { + private Integer threadId; + private Integer boardId; + private List messageIdsToMove = new ArrayList<>(); + private String newThreadTitle; + private Boolean moveAllAfterSpecifiedFlg = false; + + public Integer getThreadId() { + return threadId; + } + public void setThreadId(Integer threadId) { + this.threadId = threadId; + } + public Integer getBoardId() { + return boardId; + } + public void setBoardId(Integer boardId) { + this.boardId = boardId; + } + public List getMessageIdsToMove() { + return messageIdsToMove; + } + public void setMessageIdsToMove(List messageIdsToMove) { + this.messageIdsToMove = messageIdsToMove; + } + public String getNewThreadTitle() { + return newThreadTitle; + } + public void setNewThreadTitle(String newThreadTitle) { + this.newThreadTitle = newThreadTitle; + } + public Boolean getMoveAllAfterSpecifiedFlg() { + return moveAllAfterSpecifiedFlg; + } + public void setMoveAllAfterSpecifiedFlg(Boolean moveAllAfterSpecifiedFlg) { + this.moveAllAfterSpecifiedFlg = moveAllAfterSpecifiedFlg; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/meta/IpAddress.java b/src/main/java/com/zfgc/zfgbb/model/meta/IpAddress.java index becac66..a2e92ad 100644 --- a/src/main/java/com/zfgc/zfgbb/model/meta/IpAddress.java +++ b/src/main/java/com/zfgc/zfgbb/model/meta/IpAddress.java @@ -1,58 +1,58 @@ -package com.zfgc.zfgbb.model.meta; - - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; - -public class IpAddress extends BaseModel { - - @JsonIgnore - private Integer ipAddressId; - private String ip; - private Boolean ipV6Flag; - private Boolean isSpammerFlag; - - @Override - public Integer getId() { - return ipAddressId; - } - - @Override - public void setId(Integer id) { - ipAddressId = id; - } - - public Integer getIpAddressId() { - return ipAddressId; - } - - public void setIpAddressId(Integer ipAddressId) { - this.ipAddressId = ipAddressId; - } - - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip; - } - - public Boolean getIpV6Flag() { - return ipV6Flag; - } - - public void setIpV6Flag(Boolean ipV6Flag) { - this.ipV6Flag = ipV6Flag; - } - - public Boolean getIsSpammerFlag() { - return isSpammerFlag; - } - - public void setIsSpammerFlag(Boolean isSpammerFlag) { - this.isSpammerFlag = isSpammerFlag; - } - - -} +package com.zfgc.zfgbb.model.meta; + + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class IpAddress extends BaseModel { + + @JsonIgnore + private Integer ipAddressId; + private String ip; + private Boolean ipV6Flag; + private Boolean isSpammerFlag; + + @Override + public Integer getId() { + return ipAddressId; + } + + @Override + public void setId(Integer id) { + ipAddressId = id; + } + + public Integer getIpAddressId() { + return ipAddressId; + } + + public void setIpAddressId(Integer ipAddressId) { + this.ipAddressId = ipAddressId; + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public Boolean getIpV6Flag() { + return ipV6Flag; + } + + public void setIpV6Flag(Boolean ipV6Flag) { + this.ipV6Flag = ipV6Flag; + } + + public Boolean getIsSpammerFlag() { + return isSpammerFlag; + } + + public void setIsSpammerFlag(Boolean isSpammerFlag) { + this.isSpammerFlag = isSpammerFlag; + } + + +} diff --git a/src/main/java/com/zfgc/zfgbb/model/users/AuthCredentials.java b/src/main/java/com/zfgc/zfgbb/model/users/AuthCredentials.java index 09f6fe3..dee07fb 100644 --- a/src/main/java/com/zfgc/zfgbb/model/users/AuthCredentials.java +++ b/src/main/java/com/zfgc/zfgbb/model/users/AuthCredentials.java @@ -1,33 +1,33 @@ -package com.zfgc.zfgbb.model.users; - -public class AuthCredentials { - private String grant_type = "password"; - private String scope = "all"; - private String username; - private String password; - - public String getGrant_type() { - return grant_type; - } - public void setGrant_type(String grant_type) { - this.grant_type = grant_type; - } - public String getScope() { - return scope; - } - public void setScope(String scope) { - this.scope = scope; - } - public String getUsername() { - return username; - } - public void setUsername(String username) { - this.username = username; - } - public String getPassword() { - return password; - } - public void setPassword(String password) { - this.password = password; - } +package com.zfgc.zfgbb.model.users; + +public class AuthCredentials { + private String grant_type = "password"; + private String scope = "all"; + private String username; + private String password; + + public String getGrant_type() { + return grant_type; + } + public void setGrant_type(String grant_type) { + this.grant_type = grant_type; + } + public String getScope() { + return scope; + } + public void setScope(String scope) { + this.scope = scope; + } + public String getUsername() { + return username; + } + public void setUsername(String username) { + this.username = username; + } + public String getPassword() { + return password; + } + public void setPassword(String password) { + this.password = password; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/users/Avatar.java b/src/main/java/com/zfgc/zfgbb/model/users/Avatar.java new file mode 100644 index 0000000..6072a01 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/model/users/Avatar.java @@ -0,0 +1,57 @@ +package com.zfgc.zfgbb.model.users; + +import java.time.LocalDateTime; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class Avatar extends BaseModel { + @JsonIgnore + private Integer avatarId; + private String url; + private Integer userId; + private Boolean activeFlag; + + public Integer getAvatarId() { + return avatarId; + } + + public void setAvatarId(Integer avatarId) { + this.avatarId = avatarId; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Boolean getActiveFlag() { + return activeFlag; + } + + public void setActiveFlag(Boolean activeFlag) { + this.activeFlag = activeFlag; + } + + @Override + public Integer getId() { + return avatarId; + } + + @Override + public void setId(Integer id) { + avatarId = id; + } + +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/users/EmailAddress.java b/src/main/java/com/zfgc/zfgbb/model/users/EmailAddress.java index 9b71506..c211c0b 100644 --- a/src/main/java/com/zfgc/zfgbb/model/users/EmailAddress.java +++ b/src/main/java/com/zfgc/zfgbb/model/users/EmailAddress.java @@ -1,39 +1,39 @@ -package com.zfgc.zfgbb.model.users; - - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; - -public class EmailAddress extends BaseModel { - @JsonIgnore - private Integer emailAddressId; - private String emailAddress; - private Boolean spammerFlag; - - public Integer getEmailAddressId() { - return emailAddressId; - } - public void setEmailAddressId(Integer emailAddressId) { - this.emailAddressId = emailAddressId; - } - public String getEmailAddress() { - return emailAddress; - } - public void setEmailAddress(String emailAddress) { - this.emailAddress = emailAddress; - } - public Boolean getSpammerFlag() { - return spammerFlag; - } - public void setSpammerFlag(Boolean spammerFlag) { - this.spammerFlag = spammerFlag; - } - @Override - public Integer getId() { - return emailAddressId; - } - @Override - public void setId(Integer id) { - emailAddressId = id; - } +package com.zfgc.zfgbb.model.users; + + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class EmailAddress extends BaseModel { + @JsonIgnore + private Integer emailAddressId; + private String emailAddress; + private Boolean spammerFlag; + + public Integer getEmailAddressId() { + return emailAddressId; + } + public void setEmailAddressId(Integer emailAddressId) { + this.emailAddressId = emailAddressId; + } + public String getEmailAddress() { + return emailAddress; + } + public void setEmailAddress(String emailAddress) { + this.emailAddress = emailAddress; + } + public Boolean getSpammerFlag() { + return spammerFlag; + } + public void setSpammerFlag(Boolean spammerFlag) { + this.spammerFlag = spammerFlag; + } + @Override + public Integer getId() { + return emailAddressId; + } + @Override + public void setId(Integer id) { + emailAddressId = id; + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/users/Permission.java b/src/main/java/com/zfgc/zfgbb/model/users/Permission.java index 85e1f5f..e2f5fcf 100644 --- a/src/main/java/com/zfgc/zfgbb/model/users/Permission.java +++ b/src/main/java/com/zfgc/zfgbb/model/users/Permission.java @@ -1,47 +1,47 @@ -package com.zfgc.zfgbb.model.users; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; - -public class Permission extends BaseModel { - - @JsonIgnore - private Integer permissionId; - private String permissionCode; - private String permissionName; - - public Integer getPermissionId() { - return permissionId; - } - - public void setPermissionId(Integer permissionId) { - this.permissionId = permissionId; - } - - public String getPermissionCode() { - return permissionCode; - } - - public void setPermissionCode(String permissionCode) { - this.permissionCode = permissionCode; - } - - public String getPermissionName() { - return permissionName; - } - - public void setPermissionName(String permissionName) { - this.permissionName = permissionName; - } - - @Override - public Integer getId() { - return permissionId; - } - - @Override - public void setId(Integer id) { - permissionId = id; - } - +package com.zfgc.zfgbb.model.users; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class Permission extends BaseModel { + + @JsonIgnore + private Integer permissionId; + private String permissionCode; + private String permissionName; + + public Integer getPermissionId() { + return permissionId; + } + + public void setPermissionId(Integer permissionId) { + this.permissionId = permissionId; + } + + public String getPermissionCode() { + return permissionCode; + } + + public void setPermissionCode(String permissionCode) { + this.permissionCode = permissionCode; + } + + public String getPermissionName() { + return permissionName; + } + + public void setPermissionName(String permissionName) { + this.permissionName = permissionName; + } + + @Override + public Integer getId() { + return permissionId; + } + + @Override + public void setId(Integer id) { + permissionId = id; + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/model/users/UserBioInfo.java b/src/main/java/com/zfgc/zfgbb/model/users/UserBioInfo.java index 447cf7a..1c1d092 100644 --- a/src/main/java/com/zfgc/zfgbb/model/users/UserBioInfo.java +++ b/src/main/java/com/zfgc/zfgbb/model/users/UserBioInfo.java @@ -1,47 +1,47 @@ -package com.zfgc.zfgbb.model.users; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.zfgc.zfgbb.model.BaseModel; - -public class UserBioInfo extends BaseModel { - - @JsonIgnore - private Integer userId; - private String customTitle; - private String personalText; - - public String getCustomTitle() { - return customTitle; - } - - public void setCustomTitle(String customTitle) { - this.customTitle = customTitle; - } - - public String getPersonalText() { - return personalText; - } - - public void setPersonalText(String personalText) { - this.personalText = personalText; - } - - @Override - public Integer getId() { - return userId; - } - - @Override - public void setId(Integer id) { - userId = id; - } - - public Integer getUserId() { - return userId; - } - - public void setUserId(Integer userId) { - this.userId = userId; - } - +package com.zfgc.zfgbb.model.users; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.zfgc.zfgbb.model.BaseModel; + +public class UserBioInfo extends BaseModel { + + @JsonIgnore + private Integer userId; + private String customTitle; + private String personalText; + + public String getCustomTitle() { + return customTitle; + } + + public void setCustomTitle(String customTitle) { + this.customTitle = customTitle; + } + + public String getPersonalText() { + return personalText; + } + + public void setPersonalText(String personalText) { + this.personalText = personalText; + } + + @Override + public Integer getId() { + return userId; + } + + @Override + public void setId(Integer id) { + userId = id; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/security/Securable.java b/src/main/java/com/zfgc/zfgbb/security/Securable.java index eeeef8c..63274b7 100644 --- a/src/main/java/com/zfgc/zfgbb/security/Securable.java +++ b/src/main/java/com/zfgc/zfgbb/security/Securable.java @@ -1,9 +1,9 @@ -package com.zfgc.zfgbb.security; - -import java.util.List; - -import com.zfgc.zfgbb.model.users.Permission; - -public interface Securable { - public List getPermissions(); -} +package com.zfgc.zfgbb.security; + +import java.util.List; + +import com.zfgc.zfgbb.model.users.Permission; + +public interface Securable { + public List getPermissions(); +} diff --git a/src/main/java/com/zfgc/zfgbb/services/AbstractService.java b/src/main/java/com/zfgc/zfgbb/services/AbstractService.java index 85de47a..cb9ae35 100644 --- a/src/main/java/com/zfgc/zfgbb/services/AbstractService.java +++ b/src/main/java/com/zfgc/zfgbb/services/AbstractService.java @@ -1,19 +1,19 @@ -package com.zfgc.zfgbb.services; - -import java.util.Set; -import java.util.stream.Collectors; - -import com.zfgc.zfgbb.exception.ZfgcNotFoundException; -import com.zfgc.zfgbb.model.User; -import com.zfgc.zfgbb.model.users.Permission; -import com.zfgc.zfgbb.security.Securable; - -public abstract class AbstractService { - - protected void secureObject(Securable secureThis, User zfgcUser) { - Set userPerms = zfgcUser.getPermissions().stream().map(Permission::getPermissionId).collect(Collectors.toSet()); - - secureThis.getPermissions().stream().filter(x -> userPerms.contains(x.getPermissionId())).findAny().orElseThrow(() -> new ZfgcNotFoundException()); - } - +package com.zfgc.zfgbb.services; + +import java.util.Set; +import java.util.stream.Collectors; + +import com.zfgc.zfgbb.exception.ZfgcNotFoundException; +import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.model.users.Permission; +import com.zfgc.zfgbb.security.Securable; + +public abstract class AbstractService { + + protected void secureObject(Securable secureThis, User zfgcUser) { + Set userPerms = zfgcUser.getPermissions().stream().map(Permission::getPermissionId).collect(Collectors.toSet()); + + secureThis.getPermissions().stream().filter(x -> userPerms.contains(x.getPermissionId())).findAny().orElseThrow(() -> new ZfgcNotFoundException()); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/services/core/ContentService.java b/src/main/java/com/zfgc/zfgbb/services/core/ContentService.java new file mode 100644 index 0000000..9ca1573 --- /dev/null +++ b/src/main/java/com/zfgc/zfgbb/services/core/ContentService.java @@ -0,0 +1,51 @@ +package com.zfgc.zfgbb.services.core; + +import java.net.MalformedURLException; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Optional; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.core.io.Resource; +import org.springframework.core.io.UrlResource; +import org.springframework.stereotype.Service; + +import com.zfgc.zfgbb.dao.core.ContentResourceDao; +import com.zfgc.zfgbb.dbo.ContentResourceDbo; +import com.zfgc.zfgbb.dbo.ContentResourceDboExample; +import com.zfgc.zfgbb.exception.ZfgcNotFoundException; +import com.zfgc.zfgbb.services.AbstractService; + +@Service +public class ContentService extends AbstractService { + + @Value("${zfgbb.content.path}") + private String contentPath; + + @Value("${zfgbb.content.images}") + private String imagesPath; + + @Autowired + private ContentResourceDao contentResourceDao; + + public Resource getImageResource(Integer resourceId) throws MalformedURLException { + ContentResourceDboExample ex = new ContentResourceDboExample(); + ex.createCriteria().andContentResourceIdEqualTo(resourceId); + + ContentResourceDbo dbo = contentResourceDao.get(ex).stream().findFirst().orElse(null); + if(dbo == null) { + throw new ZfgcNotFoundException(); + } + else { + return createContentResource(contentPath + imagesPath, dbo.getFilename()); + } + } + + private Resource createContentResource(String fullPath, String filename) throws MalformedURLException { + Path path = Paths.get(fullPath + "/" + filename); + Resource resource = new UrlResource(path.toUri()); + + return resource; + } +} \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/services/core/IpService.java b/src/main/java/com/zfgc/zfgbb/services/core/IpService.java index 7fd0009..438014d 100644 --- a/src/main/java/com/zfgc/zfgbb/services/core/IpService.java +++ b/src/main/java/com/zfgc/zfgbb/services/core/IpService.java @@ -1,25 +1,25 @@ -package com.zfgc.zfgbb.services.core; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import com.zfgc.zfgbb.dataprovider.core.IpDataProvider; -import com.zfgc.zfgbb.model.meta.IpAddress; -import com.zfgc.zfgbb.services.AbstractService; - -import jakarta.servlet.http.HttpServletRequest; - -@Service -public class IpService extends AbstractService { - - @Autowired - private IpDataProvider ipDataProvider; - - @Autowired - private HttpServletRequest request; - - public IpAddress getClientIp() { - return ipDataProvider.createOrRetrieveIp(request.getRemoteAddr()); - } - +package com.zfgc.zfgbb.services.core; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import com.zfgc.zfgbb.dataprovider.core.IpDataProvider; +import com.zfgc.zfgbb.model.meta.IpAddress; +import com.zfgc.zfgbb.services.AbstractService; + +import jakarta.servlet.http.HttpServletRequest; + +@Service +public class IpService extends AbstractService { + + @Autowired + private IpDataProvider ipDataProvider; + + @Autowired + private HttpServletRequest request; + + public IpAddress getClientIp() { + return ipDataProvider.createOrRetrieveIp(request.getRemoteAddr()); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/services/core/UserService.java b/src/main/java/com/zfgc/zfgbb/services/core/UserService.java index fdad858..2456574 100644 --- a/src/main/java/com/zfgc/zfgbb/services/core/UserService.java +++ b/src/main/java/com/zfgc/zfgbb/services/core/UserService.java @@ -1,57 +1,77 @@ -package com.zfgc.zfgbb.services.core; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.http.HttpEntity; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpMethod; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.client.RestTemplate; - -import com.zfgc.zfgbb.dataprovider.users.UserDataProvider; -import com.zfgc.zfgbb.model.User; - -@Service -@Transactional -public class UserService { - @Value("${clausius.client}") - private String clientId; - - @Value("${clausius.password}") - private String clientSecret; - - @Value("${clausius.authEndpoint}") - private String authEndpoint; - - @Autowired - private UserDataProvider userDataProvider; - - public User createNewUser(User user) { - userDataProvider.createUser(user); - registerUserAtIdentity(user); - return user; - } - - private void registerUserAtIdentity(User user) { - RestTemplate template = new RestTemplate(); - HttpHeaders headers = new HttpHeaders(); - headers.setBasicAuth(clientId, clientSecret); - headers.setContentType(MediaType.APPLICATION_JSON); - - HttpEntity ent = new HttpEntity("{ \"username\" : \"" + user.getUsername() + "\", \"password\" : \"" + user.getPassword() + "\" }", headers); - - ResponseEntity resp = template.exchange(authEndpoint + "/users/register", HttpMethod.POST, ent, String.class); - - if(resp.getStatusCode().isError()) { - throw new RuntimeException("Failed to create user " + user.getUsername() + " at identity provider. Error code: " + resp.getStatusCode().value()); - } - } - - public User loadUser(Integer userId) { - User user = userDataProvider.getUser(userId); - return user; - } -} +package com.zfgc.zfgbb.services.core; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.HttpEntity; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.client.RestTemplate; + +import com.zfgc.zfgbb.config.loadoption.user.FullUserLoadOptions; +import com.zfgc.zfgbb.dataprovider.users.UserDataProvider; +import com.zfgc.zfgbb.exception.ZfgcUnauthorizedException; +import com.zfgc.zfgbb.model.User; + +@Service +@Transactional +public class UserService { + @Value("${clausius.client}") + private String clientId; + + @Value("${clausius.password}") + private String clientSecret; + + @Value("${clausius.authEndpoint}") + private String authEndpoint; + + @Autowired + private UserDataProvider userDataProvider; + + public User createNewUser(User user) { + userDataProvider.createUser(user); + registerUserAtIdentity(user); + return user; + } + + private void registerUserAtIdentity(User user) { + RestTemplate template = new RestTemplate(); + HttpHeaders headers = new HttpHeaders(); + headers.setBasicAuth(clientId, clientSecret); + headers.setContentType(MediaType.APPLICATION_JSON); + + HttpEntity ent = new HttpEntity("{ \"username\" : \"" + user.getUsername() + "\", \"password\" : \"" + user.getPassword() + "\" }", headers); + + ResponseEntity resp = template.exchange(authEndpoint + "/users/register", HttpMethod.POST, ent, String.class); + + if(resp.getStatusCode().isError()) { + throw new RuntimeException("Failed to create user " + user.getUsername() + " at identity provider. Error code: " + resp.getStatusCode().value()); + } + } + + public User loadUser(Integer userId) { + User user = userDataProvider.getUser(userId, new FullUserLoadOptions()); + return user; + } + + public User saveUserProfile(User user, User zfgcUser) { + + //check admin permissions. A non-profile admin can only edit their own profile, and they cannot edit permissions. + if(!zfgcUser.hasPermission("ZFGC_USER_PROFILE_ADMIN")) { + user.setPermissions(null); + + if(!zfgcUser.getUserId().equals(user.getUserId())) { + throw new ZfgcUnauthorizedException("User attempted to save another user's profile.", zfgcUser); + } + } + + return userDataProvider.saveUserProfile(user); + } + + public User[] loadUsers() { + + } +} diff --git a/src/main/java/com/zfgc/zfgbb/services/forum/BBCodeService.java b/src/main/java/com/zfgc/zfgbb/services/forum/BBCodeService.java index 9479764..6c49ca8 100644 --- a/src/main/java/com/zfgc/zfgbb/services/forum/BBCodeService.java +++ b/src/main/java/com/zfgc/zfgbb/services/forum/BBCodeService.java @@ -1,312 +1,312 @@ -package com.zfgc.zfgbb.services.forum; - -import java.util.HashMap; -import java.util.Map; -import java.util.Stack; -import java.util.TreeMap; - -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.mutable.MutableInt; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import com.zfgc.zfgbb.dataprovider.forum.BBCodeDataProvider; -import com.zfgc.zfgbb.model.forum.BBCodeAttribute; -import com.zfgc.zfgbb.model.forum.BBCodeAttributeMode; -import com.zfgc.zfgbb.model.forum.BBCodeConfig; -import com.zfgc.zfgbb.util.ZfgcStringUtils; - -import jakarta.annotation.PostConstruct; - -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; - -@Component -public class BBCodeService { - - public Map validBbCodes = new HashMap<>(); - public Map bbCodeCounts= new HashMap<>(); - private Boolean outputContent = true; - private Logger LOGGER = LogManager.getLogger(BBCodeService.class); - - @Autowired - BBCodeDataProvider bbCodeDataProvider; - - public String parseText(String input) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException{ - - - final char[] inputChar = ZfgcStringUtils.getUnderlyingStringArray(input.replace("\n", "
")); - final int length = inputChar.length; - final MutableInt NEG = new MutableInt(-1); - final MutableInt ZERO = new MutableInt(0); - StringBuilder output = new StringBuilder(); - StringBuilder currentBuffer = new StringBuilder(); - StringBuilder sideBuffer = new StringBuilder(); - String currentState = null; - String currentCode = null; - int lastKnownFreshPosition = 0; - int i = 0; - int openBracePos = -1; - int closeBracePos = -1; - int attributeBeginPos = -1; - Stack states = new Stack<>(); - Stack codes = new Stack<>(); - MutableInt contentAttPos = new MutableInt(-1); - - - - for(i = 0; i < length; i++){ - boolean isClosingBrace = false; - //did we find a bbcode? maybe.. - if(inputChar[i] == '['){ - String bbCodetest = ""; - i++; - - //hold the phone, this might be a closing brace - if(inputChar[i] == '/'){ - isClosingBrace = true; - closeBracePos = i - 1; - i++; - } - else{ - openBracePos = i - 1; - } - - //get the alphabetical characters immediately following the brace - //edge case: we hit the end of the string - do{ - if(i > length){ - currentBuffer.append(inputChar,lastKnownFreshPosition,--i); - break; - } - - bbCodetest += inputChar[i]; - i++; - }while((inputChar[i] >= 'a' && inputChar[i] <= 'z') && (inputChar[i] != ' ' && inputChar[i] != '=')); - - //check if this matches a valid bbcode. If so, find the next ] - //edge cases: we hit the end of the string, or we hit another [ - //or we're already in a close brace - if(bbCodeCounts.keySet().contains(bbCodetest)){ - attributeBeginPos = i; - boolean foundBbCode = true; - while(inputChar[i] != ']'){ - if(i > length || inputChar[i] == '['){ - currentBuffer.append(inputChar,lastKnownFreshPosition,(--i) - lastKnownFreshPosition); - foundBbCode = false; - break; - } - i++; - } - - if(foundBbCode){ - if(isClosingBrace){ - - if(states.size() == 0 || (!currentCode.equals(bbCodetest) && validBbCodes.get(currentCode).getProcessContentFlag()) ){//we've got a stray closing tag - output.append(inputChar,lastKnownFreshPosition, i - lastKnownFreshPosition + 1); - lastKnownFreshPosition = i + 1; - - //revert to the previous state if one exists - - if(states.size() > 0){ - output.append(validBbCodes.get(bbCodetest).getEndTag()); - bbCodeCounts.replace(bbCodetest, bbCodeCounts.get(bbCodetest) - 1); - states.pop(); - codes.pop(); - if(states.size() == 0){ - currentState = ""; - currentCode = ""; - } - else{ - currentState = states.peek(); - currentCode = codes.peek(); - } - } - } - else if(currentCode.equals(bbCodetest)){//this is a matched closing tag - //revert to previous state - - if(validBbCodes.get(currentCode).getProcessContentFlag() || (currentCode + "0").equals(states.peek())){ - - if(contentAttPos.compareTo(NEG) > 0){ - sideBuffer.append(inputChar,lastKnownFreshPosition,closeBracePos - lastKnownFreshPosition); - output.replace(contentAttPos.getValue(), contentAttPos.getValue() + 5, sideBuffer.toString()); - contentAttPos.setValue(-1); - sideBuffer.delete(0, sideBuffer.length()); - } - - if(outputContent){ - output.append(inputChar,lastKnownFreshPosition,closeBracePos - lastKnownFreshPosition); - } - output.append(validBbCodes.get(bbCodetest).getEndTag()); - lastKnownFreshPosition = i + 1; - outputContent = true; - } - - bbCodeCounts.replace(bbCodetest, bbCodeCounts.get(bbCodetest) - 1); - states.pop(); - codes.pop(); - if(states.size() == 0){ - currentState = ""; - currentCode = ""; - } - else{ - currentState = states.peek(); - currentCode = codes.peek(); - } - } - } - else{ - //just doing this lazy for now... - if(currentCode == null || currentCode.equals("") || validBbCodes.get(currentCode).getProcessContentFlag()){ - char[] attributes = new char[i - attributeBeginPos]; - for(int j = 0; j < i - attributeBeginPos; j++){ - attributes[j] = inputChar[attributeBeginPos + j]; - } - - String parsedTag = processAttributes(validBbCodes.get(bbCodetest),attributes,contentAttPos); - - //state change - //record whatever we found up to this point - //replace the bbcode with its html opening - if(states.size() == 0 || validBbCodes.get(currentCode).getProcessContentFlag()){ - if(lastKnownFreshPosition != openBracePos){ - output.append(inputChar,lastKnownFreshPosition,openBracePos - lastKnownFreshPosition); - } - output.append(parsedTag); - - contentAttPos.setValue(output.indexOf("{{c}}")); - //if(states.size() == 0 || !validBbCodes.get(currentCode).getProcessContentFlag()){ - currentCode = bbCodetest; - //} - lastKnownFreshPosition = i + 1; - } - - currentState = bbCodetest + bbCodeCounts.get(bbCodetest); - states.push(currentState); - codes.push(bbCodetest); - bbCodeCounts.replace(bbCodetest, bbCodeCounts.get(bbCodetest) + 1); - } - } - } - } - else{ //it wasn't actually a bbcode..output what we found up to this point - int start = isClosingBrace ? closeBracePos : openBracePos; - output.append(inputChar,start, i - start); - lastKnownFreshPosition = i; - } - } - } - - //if we reach the end, but we're not in a bbcode state - //append the remaining junk - output.append(inputChar,lastKnownFreshPosition,length - lastKnownFreshPosition); - - //if we have any unfinished states, close them out - while(!codes.isEmpty()){ - output.append(validBbCodes.get(codes.pop()).getEndTag()); - states.pop(); - - } - - resetCounts(); - - return output.toString(); - } - - public String processAttributes(BBCodeConfig bbCode, char[] attributes, MutableInt contentAttPos){ - String[] allAttributeNames = bbCode.getAllAttributeNamesAsString().split(","); - Map attributeValues = new TreeMap<>(); - StringBuilder atts = new StringBuilder(); - atts.append(attributes); - StringBuilder attFormat = new StringBuilder(); - - int nextAttPos = -1; - for(int i = 0; i < allAttributeNames.length; i++){ - String attName = allAttributeNames[i]; - - int attPos = 0; - - if(attName.equals("=") && attFormat.length() > 0){ - continue; - } - else{ - if(nextAttPos > -1 && nextAttPos != atts.length() + 1){ - attPos = nextAttPos; - } - else{ - attPos = atts.indexOf(attName); - } - } - - if(i + 1< allAttributeNames.length && !allAttributeNames[i + 1].equals("=")){ - nextAttPos = atts.indexOf(allAttributeNames[i + 1]); - } - else{ - nextAttPos = atts.length() + 1; - } - - if(nextAttPos == -1){ - nextAttPos = atts.length() + 1; - } - - - //if the attribute isn't found, then fuck it, abort! - if(attPos == -1 || nextAttPos - 1 <= attPos){ - continue; - } - - //find the value - String value = atts.substring(attPos + attName.length(), nextAttPos - 1); - attributeValues.put(attName, value); - attFormat.append(attName); - } - - if(!bbCode.getAttributeConfig().containsKey(attFormat.toString())){ - return atts.toString(); - } - - BBCodeAttributeMode attMode = bbCode.getAttributeConfig().get(attFormat.toString()); - StringBuilder result = new StringBuilder(); - result.append(attMode.getOpenTag()); - String output = result.toString(); - for(int i = 0; i < attMode.getAttributes().size(); i++){ - BBCodeAttribute attribute = attMode.getAttributes().get(i); - String attName = attribute.getName(); - String value = attribute.transformValue(attributeValues.get(attName)); - output = StringUtils.replace(output, attribute.getAttributeIndex(), value); - - - } - - if(attMode.getContentIsAttributeFlag()){ - contentAttPos.setValue(output.indexOf("{{c}}")); - - if(!attMode.getOutputContentFlag()){ - outputContent = false; - } - } - - return output.toString(); - } - - private void resetCounts(){ - for(String x : bbCodeCounts.keySet()){ - bbCodeCounts.put(x, 0); - } - } - - @PostConstruct - public void loadBbCodeConfig(){ - LOGGER.info("Loading Bbcode config..."); - - validBbCodes = bbCodeDataProvider.getBbCodeConfig(); - - for(String code : validBbCodes.keySet()){ - bbCodeCounts.put(code, 0); - } - - LOGGER.info("Finished loading Bbcode config."); - } - +package com.zfgc.zfgbb.services.forum; + +import java.util.HashMap; +import java.util.Map; +import java.util.Stack; +import java.util.TreeMap; + +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.mutable.MutableInt; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import com.zfgc.zfgbb.dataprovider.forum.BBCodeDataProvider; +import com.zfgc.zfgbb.model.forum.BBCodeAttribute; +import com.zfgc.zfgbb.model.forum.BBCodeAttributeMode; +import com.zfgc.zfgbb.model.forum.BBCodeConfig; +import com.zfgc.zfgbb.util.ZfgcStringUtils; + +import jakarta.annotation.PostConstruct; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +@Component +public class BBCodeService { + + public Map validBbCodes = new HashMap<>(); + public Map bbCodeCounts= new HashMap<>(); + private Boolean outputContent = true; + private Logger LOGGER = LogManager.getLogger(BBCodeService.class); + + @Autowired + BBCodeDataProvider bbCodeDataProvider; + + public String parseText(String input) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException{ + + + final char[] inputChar = ZfgcStringUtils.getUnderlyingStringArray(input.replace("\n", "
")); + final int length = inputChar.length; + final MutableInt NEG = new MutableInt(-1); + final MutableInt ZERO = new MutableInt(0); + StringBuilder output = new StringBuilder(); + StringBuilder currentBuffer = new StringBuilder(); + StringBuilder sideBuffer = new StringBuilder(); + String currentState = null; + String currentCode = null; + int lastKnownFreshPosition = 0; + int i = 0; + int openBracePos = -1; + int closeBracePos = -1; + int attributeBeginPos = -1; + Stack states = new Stack<>(); + Stack codes = new Stack<>(); + MutableInt contentAttPos = new MutableInt(-1); + + + + for(i = 0; i < length; i++){ + boolean isClosingBrace = false; + //did we find a bbcode? maybe.. + if(inputChar[i] == '['){ + String bbCodetest = ""; + i++; + + //hold the phone, this might be a closing brace + if(inputChar[i] == '/'){ + isClosingBrace = true; + closeBracePos = i - 1; + i++; + } + else{ + openBracePos = i - 1; + } + + //get the alphabetical characters immediately following the brace + //edge case: we hit the end of the string + do{ + if(i > length){ + currentBuffer.append(inputChar,lastKnownFreshPosition,--i); + break; + } + + bbCodetest += inputChar[i]; + i++; + }while((inputChar[i] >= 'a' && inputChar[i] <= 'z') && (inputChar[i] != ' ' && inputChar[i] != '=')); + + //check if this matches a valid bbcode. If so, find the next ] + //edge cases: we hit the end of the string, or we hit another [ + //or we're already in a close brace + if(bbCodeCounts.keySet().contains(bbCodetest)){ + attributeBeginPos = i; + boolean foundBbCode = true; + while(inputChar[i] != ']'){ + if(i > length || inputChar[i] == '['){ + currentBuffer.append(inputChar,lastKnownFreshPosition,(--i) - lastKnownFreshPosition); + foundBbCode = false; + break; + } + i++; + } + + if(foundBbCode){ + if(isClosingBrace){ + + if(states.size() == 0 || (!currentCode.equals(bbCodetest) && validBbCodes.get(currentCode).getProcessContentFlag()) ){//we've got a stray closing tag + output.append(inputChar,lastKnownFreshPosition, i - lastKnownFreshPosition + 1); + lastKnownFreshPosition = i + 1; + + //revert to the previous state if one exists + + if(states.size() > 0){ + output.append(validBbCodes.get(bbCodetest).getEndTag()); + bbCodeCounts.replace(bbCodetest, bbCodeCounts.get(bbCodetest) - 1); + states.pop(); + codes.pop(); + if(states.size() == 0){ + currentState = ""; + currentCode = ""; + } + else{ + currentState = states.peek(); + currentCode = codes.peek(); + } + } + } + else if(currentCode.equals(bbCodetest)){//this is a matched closing tag + //revert to previous state + + if(validBbCodes.get(currentCode).getProcessContentFlag() || (currentCode + "0").equals(states.peek())){ + + if(contentAttPos.compareTo(NEG) > 0){ + sideBuffer.append(inputChar,lastKnownFreshPosition,closeBracePos - lastKnownFreshPosition); + output.replace(contentAttPos.getValue(), contentAttPos.getValue() + 5, sideBuffer.toString()); + contentAttPos.setValue(-1); + sideBuffer.delete(0, sideBuffer.length()); + } + + if(outputContent){ + output.append(inputChar,lastKnownFreshPosition,closeBracePos - lastKnownFreshPosition); + } + output.append(validBbCodes.get(bbCodetest).getEndTag()); + lastKnownFreshPosition = i + 1; + outputContent = true; + } + + bbCodeCounts.replace(bbCodetest, bbCodeCounts.get(bbCodetest) - 1); + states.pop(); + codes.pop(); + if(states.size() == 0){ + currentState = ""; + currentCode = ""; + } + else{ + currentState = states.peek(); + currentCode = codes.peek(); + } + } + } + else{ + //just doing this lazy for now... + if(currentCode == null || currentCode.equals("") || validBbCodes.get(currentCode).getProcessContentFlag()){ + char[] attributes = new char[i - attributeBeginPos]; + for(int j = 0; j < i - attributeBeginPos; j++){ + attributes[j] = inputChar[attributeBeginPos + j]; + } + + String parsedTag = processAttributes(validBbCodes.get(bbCodetest),attributes,contentAttPos); + + //state change + //record whatever we found up to this point + //replace the bbcode with its html opening + if(states.size() == 0 || validBbCodes.get(currentCode).getProcessContentFlag()){ + if(lastKnownFreshPosition != openBracePos){ + output.append(inputChar,lastKnownFreshPosition,openBracePos - lastKnownFreshPosition); + } + output.append(parsedTag); + + contentAttPos.setValue(output.indexOf("{{c}}")); + //if(states.size() == 0 || !validBbCodes.get(currentCode).getProcessContentFlag()){ + currentCode = bbCodetest; + //} + lastKnownFreshPosition = i + 1; + } + + currentState = bbCodetest + bbCodeCounts.get(bbCodetest); + states.push(currentState); + codes.push(bbCodetest); + bbCodeCounts.replace(bbCodetest, bbCodeCounts.get(bbCodetest) + 1); + } + } + } + } + else{ //it wasn't actually a bbcode..output what we found up to this point + int start = isClosingBrace ? closeBracePos : openBracePos; + output.append(inputChar,start, i - start); + lastKnownFreshPosition = i; + } + } + } + + //if we reach the end, but we're not in a bbcode state + //append the remaining junk + output.append(inputChar,lastKnownFreshPosition,length - lastKnownFreshPosition); + + //if we have any unfinished states, close them out + while(!codes.isEmpty()){ + output.append(validBbCodes.get(codes.pop()).getEndTag()); + states.pop(); + + } + + resetCounts(); + + return output.toString(); + } + + public String processAttributes(BBCodeConfig bbCode, char[] attributes, MutableInt contentAttPos){ + String[] allAttributeNames = bbCode.getAllAttributeNamesAsString().split(","); + Map attributeValues = new TreeMap<>(); + StringBuilder atts = new StringBuilder(); + atts.append(attributes); + StringBuilder attFormat = new StringBuilder(); + + int nextAttPos = -1; + for(int i = 0; i < allAttributeNames.length; i++){ + String attName = allAttributeNames[i]; + + int attPos = 0; + + if(attName.equals("=") && attFormat.length() > 0){ + continue; + } + else{ + if(nextAttPos > -1 && nextAttPos != atts.length() + 1){ + attPos = nextAttPos; + } + else{ + attPos = atts.indexOf(attName); + } + } + + if(i + 1< allAttributeNames.length && !allAttributeNames[i + 1].equals("=")){ + nextAttPos = atts.indexOf(allAttributeNames[i + 1]); + } + else{ + nextAttPos = atts.length() + 1; + } + + if(nextAttPos == -1){ + nextAttPos = atts.length() + 1; + } + + + //if the attribute isn't found, then fuck it, abort! + if(attPos == -1 || nextAttPos - 1 <= attPos){ + continue; + } + + //find the value + String value = atts.substring(attPos + attName.length(), nextAttPos - 1); + attributeValues.put(attName, value); + attFormat.append(attName); + } + + if(!bbCode.getAttributeConfig().containsKey(attFormat.toString())){ + return atts.toString(); + } + + BBCodeAttributeMode attMode = bbCode.getAttributeConfig().get(attFormat.toString()); + StringBuilder result = new StringBuilder(); + result.append(attMode.getOpenTag()); + String output = result.toString(); + for(int i = 0; i < attMode.getAttributes().size(); i++){ + BBCodeAttribute attribute = attMode.getAttributes().get(i); + String attName = attribute.getName(); + String value = attribute.transformValue(attributeValues.get(attName)); + output = StringUtils.replace(output, attribute.getAttributeIndex(), value); + + + } + + if(attMode.getContentIsAttributeFlag()){ + contentAttPos.setValue(output.indexOf("{{c}}")); + + if(!attMode.getOutputContentFlag()){ + outputContent = false; + } + } + + return output.toString(); + } + + private void resetCounts(){ + for(String x : bbCodeCounts.keySet()){ + bbCodeCounts.put(x, 0); + } + } + + @PostConstruct + public void loadBbCodeConfig(){ + LOGGER.info("Loading Bbcode config..."); + + validBbCodes = bbCodeDataProvider.getBbCodeConfig(); + + for(String code : validBbCodes.keySet()){ + bbCodeCounts.put(code, 0); + } + + LOGGER.info("Finished loading Bbcode config."); + } + } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/services/forum/ForumService.java b/src/main/java/com/zfgc/zfgbb/services/forum/ForumService.java index f0725b7..818615c 100644 --- a/src/main/java/com/zfgc/zfgbb/services/forum/ForumService.java +++ b/src/main/java/com/zfgc/zfgbb/services/forum/ForumService.java @@ -8,6 +8,7 @@ import com.zfgc.zfgbb.dataprovider.forum.MessageDataProvider; import com.zfgc.zfgbb.dataprovider.forum.ThreadDataProvider; import com.zfgc.zfgbb.model.User; +import com.zfgc.zfgbb.model.forum.Board; import com.zfgc.zfgbb.model.forum.Forum; import com.zfgc.zfgbb.model.forum.Message; import com.zfgc.zfgbb.model.forum.MessageHistory; @@ -36,14 +37,18 @@ public class ForumService extends AbstractService { @Autowired private IpService ipService; - public Forum getForum(Integer boardId, User zfgcUser) { - Forum forum = forumDataProvider.getForum(boardId); + public Forum getForum(User zfgcUser) { + Forum forum = forumDataProvider.getForum(); - super.secureObject(forum, zfgcUser); + //super.secureObject(forum, zfgcUser); return forum; } + public Board getBoard(Integer boardId, Integer pageNo, User zfgcUser) { + return forumDataProvider.getBoard(boardId, pageNo, pageNo); + } + public Thread getThreadTemplate(Integer boardId, User zfgcUser) { Thread thread = new Thread(); thread.setBoardId(boardId); diff --git a/src/main/java/com/zfgc/zfgbb/util/ZfgcSecurityUtils.java b/src/main/java/com/zfgc/zfgbb/util/ZfgcSecurityUtils.java index 1299108..b8f8bf1 100644 --- a/src/main/java/com/zfgc/zfgbb/util/ZfgcSecurityUtils.java +++ b/src/main/java/com/zfgc/zfgbb/util/ZfgcSecurityUtils.java @@ -1,23 +1,23 @@ -package com.zfgc.zfgbb.util; - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.util.Base64; - -public class ZfgcSecurityUtils{ - public static String generateMd5(String digestStr){ - MessageDigest digest; - try { - digest = MessageDigest.getInstance("MD5"); - digest.update(digestStr.getBytes()); - byte[] hash = digest.digest(); - - return Base64.getUrlEncoder().encodeToString(hash); - - } catch (NoSuchAlgorithmException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } - } +package com.zfgc.zfgbb.util; + +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.Base64; + +public class ZfgcSecurityUtils{ + public static String generateMd5(String digestStr){ + MessageDigest digest; + try { + digest = MessageDigest.getInstance("MD5"); + digest.update(digestStr.getBytes()); + byte[] hash = digest.digest(); + + return Base64.getUrlEncoder().encodeToString(hash); + + } catch (NoSuchAlgorithmException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + return null; + } + } } \ No newline at end of file diff --git a/src/main/java/com/zfgc/zfgbb/util/ZfgcStringUtils.java b/src/main/java/com/zfgc/zfgbb/util/ZfgcStringUtils.java index 0068744..8ef6442 100644 --- a/src/main/java/com/zfgc/zfgbb/util/ZfgcStringUtils.java +++ b/src/main/java/com/zfgc/zfgbb/util/ZfgcStringUtils.java @@ -1,12 +1,12 @@ -package com.zfgc.zfgbb.util; - -import java.lang.reflect.Field; - -import org.apache.commons.lang3.StringUtils; - -public class ZfgcStringUtils extends StringUtils{ - - public static char[] getUnderlyingStringArray(String input) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException{ - return input.toCharArray(); - } +package com.zfgc.zfgbb.util; + +import java.lang.reflect.Field; + +import org.apache.commons.lang3.StringUtils; + +public class ZfgcStringUtils extends StringUtils{ + + public static char[] getUnderlyingStringArray(String input) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException{ + return input.toCharArray(); + } } \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 20566f5..b7e68a2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,37 +1,37 @@ -spring.datasource.url=jdbc:postgresql://localhost:5432/zfgc_dev -spring.datasource.username= -spring.datasource.password= -spring.datasource.driver-class-name=org.postgresql.Driver -spring.datasource.validation-query=SELECT 1 -spring.datasource.max-wait=10000 -spring.datasource.max-active=100 -spring.datasource.min-idle=10 -spring.datasource.test-while-idle=true -spring.datasource.test-on-borrow=true -spring.datasource.test-on-return=false -spring.datasource.validation-interval=30000 -spring.datasource.time-between-eviction-runs-millis=30000 -spring.datasource.initialize=true -spring.jackson.serialization-inclusion=non_null - -spring.flyway.schemas=zfgbb -spring.flyway.baselineOnMigrate=true -spring.flyway.executeInTransaction=true -spring.flyway.repairAtStart=true - -mbg.jdbc.url=jdbc:postgresql://localhost:5432/zfgc_dev -mbg.jdbc.username= -mbg.jdbc.password= -mbg.jdbc.driver-class-name=org.postgresql.Driver -mbg.jdbc.driver-location -mbg.target-package.mapper=com.zfgc.zfgcbb.mappers -mbg.target-package.domain=com.zfgc.zfgcbb.dbo -mbg.target-project.java=src/main/java -mbg.target-project.resources=src/main/resources - -clausius.auth.key= -clausius.client= -clausius.password= -clausius.authEndpoint= - -server.servlet.context-path=/zfgbb +spring.datasource.url=jdbc:postgresql://localhost:5432/zfgc_dev +spring.datasource.username= +spring.datasource.password= +spring.datasource.driver-class-name=org.postgresql.Driver +spring.datasource.validation-query=SELECT 1 +spring.datasource.max-wait=10000 +spring.datasource.max-active=100 +spring.datasource.min-idle=10 +spring.datasource.test-while-idle=true +spring.datasource.test-on-borrow=true +spring.datasource.test-on-return=false +spring.datasource.validation-interval=30000 +spring.datasource.time-between-eviction-runs-millis=30000 +spring.datasource.initialize=true +spring.jackson.serialization-inclusion=non_null + +spring.flyway.schemas=zfgbb +spring.flyway.baselineOnMigrate=true +spring.flyway.executeInTransaction=true +spring.flyway.repairAtStart=true + +mbg.jdbc.url=jdbc:postgresql://localhost:5432/zfgc_dev +mbg.jdbc.username= +mbg.jdbc.password= +mbg.jdbc.driver-class-name=org.postgresql.Driver +mbg.jdbc.driver-location +mbg.target-package.mapper=com.zfgc.zfgcbb.mappers +mbg.target-package.domain=com.zfgc.zfgcbb.dbo +mbg.target-project.java=src/main/java +mbg.target-project.resources=src/main/resources + +clausius.auth.key=bx1YMk4XRnQ0N2UpPUshTHoXbGczFHVOZQ== +clausius.client=EdNGmsNtdpVBVhZ0-ZFGC3 +clausius.password=qRySJTiVqGwhktq8c7Vb +clausius.authEndpoint=http://zfgc.com:8080/clausius-auth + +server.servlet.context-path=/zfgbb diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt new file mode 100644 index 0000000..246b8d9 --- /dev/null +++ b/src/main/resources/banner.txt @@ -0,0 +1,9 @@ + ________ _______ _______ .______ .______ +| / | ____| / _____|| _ \ | _ \ +`---/ / | |__ | | __ | |_) | | |_) | + / / | __| | | |_ | | _ < | _ < + / /----.| | | |__| | | |_) | | |_) | + /________||__| \______| |______/ |______/ + +${application.version} +Powered by Spring Boot ${spring-boot.version} \ No newline at end of file diff --git a/src/main/resources/db/migration/functions/R__01_triggers.sql b/src/main/resources/db/migration/functions/R__01_triggers.sql index b52b7b1..7390d88 100644 --- a/src/main/resources/db/migration/functions/R__01_triggers.sql +++ b/src/main/resources/db/migration/functions/R__01_triggers.sql @@ -1,22 +1,22 @@ -create or replace function zfgbb.set_current_msg_after_insert() -returns trigger as $$ -begin - update zfgbb.message_history - set current_flag = true - where message_history_id = new.message_history_id; - - update zfgbb.message_history - set current_flag = false - where message_history_id <> new.message_history_id and - message_id = new.message_id; - - return new; -end; -$$ language plpgsql; - -drop trigger if exists trigger_message_history_after_insert on zfgbb.message_history; -create trigger trigger_message_history_after_insert -after insert on zfgbb.message_history -for each row execute procedure zfgbb.set_current_msg_after_insert(); - ---drop trigger if exists trigger_message_updated_ts on zfgbb.message; +create or replace function zfgbb.set_current_msg_after_insert() +returns trigger as $$ +begin + update zfgbb.message_history + set current_flag = true + where message_history_id = new.message_history_id; + + update zfgbb.message_history + set current_flag = false + where message_history_id <> new.message_history_id and + message_id = new.message_id; + + return new; +end; +$$ language plpgsql; + +drop trigger if exists trigger_message_history_after_insert on zfgbb.message_history; +create trigger trigger_message_history_after_insert +after insert on zfgbb.message_history +for each row execute procedure zfgbb.set_current_msg_after_insert(); + +--drop trigger if exists trigger_message_updated_ts on zfgbb.message; diff --git a/src/main/resources/db/migration/functions/R__02_permissions.sql b/src/main/resources/db/migration/functions/R__02_permissions.sql index 2754b54..94d4503 100644 --- a/src/main/resources/db/migration/functions/R__02_permissions.sql +++ b/src/main/resources/db/migration/functions/R__02_permissions.sql @@ -13,9 +13,49 @@ begin end; $$; +create or replace function zfgbb.create_permission_group(p_group_id int, + p_group_name text, + p_description text, + p_min_posts int, + p_parent_group int) +returns void +language plpgsql +as $$ +begin + + insert into zfgbb.permission_group(permission_group_id, group_name, description, min_posts, star_image, parent_group) + values(p_group_id, p_group_name, p_description, -1, 'default.png', p_parent_group) + on conflict(permission_group_id) + do update set group_name = p_group_name, description = p_description, min_posts = p_min_posts, star_image = 'default.png', parent_group = p_parent_group; + + return; + +end; $$; + +create or replace function zfgbb.associate_permission_to_group(p_group_name text, p_permission_name text) +returns void +language plpgsql +as $$ +begin + + insert into zfgbb.permission_group_assoc(permission_group_id, permission_id) + values((select permission_group_id from zfgbb.permission_group where group_name = p_group_name), + (select permission_id from zfgbb.permission where permission_code = p_permission_name) + ); + + return; +end; $$; select zfgbb.create_permission(1, 'ZFGC User', 'ZFGC_USER'); select zfgbb.create_permission(2, 'ZFGC Guest', 'ZFGC_GUEST'); select zfgbb.create_permission(3, 'User Profile Viewer', 'ZFGC_PROFILE_VIEWER'); select zfgbb.create_permission(4, 'User Profile Editor', 'ZFGC_PROFILE_EDITOR'); +select zfgbb.create_permission(5, 'User Profile Admin', 'ZFGC_PROFILE_ADMIN'); +select zfgbb.create_permission(6, 'Message Viewer', 'ZFGC_MESSAGE_VIEWER'); +select zfgbb.create_permission(7, 'Message Editor', 'ZFGC_MESSAGE_EDITOR'); +select zfgbb.create_permission(8, 'Message Admin', 'ZFGC_MESSAGE_ADMIN'); + +select zfgbb.create_permission_group(1, 'Member', '', -1, null); +select zfgbb.create_permission_group(2, 'Admin', '', -1, 1); +select zfgbb.associate_permission_to_group('Member', 'ZFGC_USER'); diff --git a/src/main/resources/db/migration/functions/R__03_bbcodes.sql b/src/main/resources/db/migration/functions/R__03_bbcodes.sql new file mode 100644 index 0000000..8b73484 --- /dev/null +++ b/src/main/resources/db/migration/functions/R__03_bbcodes.sql @@ -0,0 +1,113 @@ +create or replace function zfgbb.create_bbcode_config(p_bbcode_config_id int, p_bbcode text, p_end_tag text, p_process_content boolean) +returns void +language plpgsql +as $$ + +begin + + insert into zfgbb.bb_code_config(bb_code_config_id, code, end_tag, process_content_flag) + values(p_bbcode_config_id, p_bbcode, p_end_tag, p_process_content) + on conflict (bb_code_config_id) + do update set code = p_bbcode, end_tag = p_end_tag, process_content_flag = p_process_content,updated_ts = current_timestamp; + + return; + +end; $$; + +create or replace function zfgbb.create_bbcode_attr_mode(p_attr_mode_id int, p_bbcode text, p_open_tag text, p_close_tag text, p_content_attr_flag boolean, p_output_content_flag boolean) +returns void +language plpgsql +as $$ +declare + bbcode_id int; +begin + bbcode_id := (select bb_code_config_id + from zfgbb.bb_code_config + where code = p_bbcode); + + insert into zfgbb.bb_code_attribute_mode(bb_code_attribute_mode_id, bb_code_config_id, content_is_attribute_flag, open_tag, close_tag, output_content_flag) + values(p_attr_mode_id, bbcode_id, p_content_attr_flag, p_open_tag, p_close_tag, p_output_content_flag) + on conflict (bb_code_attribute_mode_id) + do update set bb_code_config_id = bbcode_id, + content_is_attribute_flag = p_content_attr_flag, + open_tag = p_open_tag, + close_tag = p_close_tag, + output_content_flag = p_output_content_flag, + updated_ts = current_timestamp; + + return; + +end; $$; + +create or replace function zfgbb.create_bbcode_attr(p_bb_code_attr_id int, p_attr_index int, p_bb_code_mode_id int, p_attr_name text, p_attr_type int) +returns void +language plpgsql +as $$ +begin + + insert into zfgbb.bb_code_attribute(bb_code_attribute_id, attribute_index, bb_code_attribute_mode_id, name, attribute_data_type) + values(p_bb_code_attr_id, p_attr_index, p_bb_code_mode_id, p_attr_name, p_attr_type) + on conflict (bb_code_attribute_id) + do update set attribute_index = p_attr_index, + bb_code_attribute_mode_id = p_bb_code_mode_id, + name = p_attr_name, + attribute_data_type = p_attr_type, + updated_ts = current_timestamp; + +end; $$; + +--base configurations +select zfgbb.create_bbcode_config(1, 'b', '', true); +select zfgbb.create_bbcode_config(2, 'u', '', true); +select zfgbb.create_bbcode_config(3, 'i', '', true); +select zfgbb.create_bbcode_config(4, 's', '', true); +select zfgbb.create_bbcode_config(5, 'pre', '', true); +select zfgbb.create_bbcode_config(6, 'left', '', true); +select zfgbb.create_bbcode_config(7, 'center', '', true); +select zfgbb.create_bbcode_config(8, 'right', '', true); +select zfgbb.create_bbcode_config(9, 'youtube', '', false); +select zfgbb.create_bbcode_config(10, 'spoiler', '', true); +select zfgbb.create_bbcode_config(11, 'img', '', false); +select zfgbb.create_bbcode_config(12, 'url', '', false); +select zfgbb.create_bbcode_config(13, 'email', '', false); +select zfgbb.create_bbcode_config(14, 'ftp', '', false); +select zfgbb.create_bbcode_config(15, 'move', '', true); +select zfgbb.create_bbcode_config(16, 'black', '', true); +select zfgbb.create_bbcode_config(17, 'blue', '', true); +select zfgbb.create_bbcode_config(18, 'quote', '', true); +select zfgbb.create_bbcode_config(19, 'code', '', true); +select zfgbb.create_bbcode_config(20, 'color', '', true); +select zfgbb.create_bbcode_config(21, 'green', '', true); + +--attribute modes +--add at least one attribute mode for each bbcode +--an attribute mode configures which set of attributes will function for a bbcode +--most will probably just have one mode that doesn't take the content as a passive attribute +--id, bbcode, opentag, closetag, content attr flag, output content flag +select zfgbb.create_bbcode_attr_mode(1,'b','','',false,false); +select zfgbb.create_bbcode_attr_mode(2,'u','','',false,false); +select zfgbb.create_bbcode_attr_mode(3,'i','','',false,false); +select zfgbb.create_bbcode_attr_mode(4,'pre','
','
',false,false); +select zfgbb.create_bbcode_attr_mode(5,'left','
','
',false,false); +select zfgbb.create_bbcode_attr_mode(6,'center','
','
',false,false); +select zfgbb.create_bbcode_attr_mode(7,'right','
','
',false,false); + +select zfgbb.create_bbcode_attr_mode(8,'youtube','
',true,false); +select zfgbb.create_bbcode_attr(1, 0, 8, 'NAMELESS', 1); + +select zfgbb.create_bbcode_attr_mode(9,'spoiler','','',false,false); +select zfgbb.create_bbcode_attr_mode(10,'img','','',true,false); +select zfgbb.create_bbcode_attr_mode(12,'url','','',false,false); +select zfgbb.create_bbcode_attr_mode(13,'email','','',false,false); +select zfgbb.create_bbcode_attr_mode(14,'ftp','','',false,false); +select zfgbb.create_bbcode_attr_mode(15,'move','','',false,false); +select zfgbb.create_bbcode_attr_mode(16,'black','','',false,false); +select zfgbb.create_bbcode_attr_mode(16,'blue','','',false,false); + +select zfgbb.create_bbcode_attr_mode(17,'quote','
','
',false,false); + +select zfgbb.create_bbcode_attr_mode(18,'quote','
Quote from {{0}},
','
',false,false); +select zfgbb.create_bbcode_attr(2, 0, 18, 'author', 1); + +select zfgbb.create_bbcode_attr_mode(19,'color','','',false,false); +select zfgbb.create_bbcode_attr_mode(20,'green','','',false,false); \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/V20240829.1__make-ip-pk.sql b/src/main/resources/db/migration/tables/V20240829.1__make-ip-pk.sql index a4ad02d..c07415d 100644 --- a/src/main/resources/db/migration/tables/V20240829.1__make-ip-pk.sql +++ b/src/main/resources/db/migration/tables/V20240829.1__make-ip-pk.sql @@ -1,2 +1,2 @@ -alter table ip_address +alter table ip_address alter column ip_address_id add generated by default as identity; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/V20240901.1__create-poll-tables.sql b/src/main/resources/db/migration/tables/V20240901.1__create-poll-tables.sql index cded606..c3847f7 100644 --- a/src/main/resources/db/migration/tables/V20240901.1__create-poll-tables.sql +++ b/src/main/resources/db/migration/tables/V20240901.1__create-poll-tables.sql @@ -1,16 +1,16 @@ -create table poll ( - poll_id integer not null generated by default as identity primary key, - poll_question text not null, - thread_id integer not null references thread, - created_ts timestamp not null default current_timestamp, - updated_ts timestamp not null default current_timestamp -); - -create table poll_question ( - poll_question_id integer not null generated by default as identity primary key, - answer_text text not null, - poll_id integer not null references poll, - votes integer not null default 0, - created_ts timestamp not null default current_timestamp, - updated_ts timestamp not null default current_timestamp +create table poll ( + poll_id integer not null generated by default as identity primary key, + poll_question text not null, + thread_id integer not null references thread, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create table poll_question ( + poll_question_id integer not null generated by default as identity primary key, + answer_text text not null, + poll_id integer not null references poll, + votes integer not null default 0, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp ); \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/core/V20241007.1__create-content-table.sql b/src/main/resources/db/migration/tables/core/V20241007.1__create-content-table.sql new file mode 100644 index 0000000..6ad49d8 --- /dev/null +++ b/src/main/resources/db/migration/tables/core/V20241007.1__create-content-table.sql @@ -0,0 +1,30 @@ +create table zfgbb.content_resource_type ( + content_resource_type_id integer not null generated by default as identity primary key, + content_code text not null, + description text not null, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create table zfgbb.content_resource ( + content_resource_id integer not null generated by default as identity primary key, + content_type_id integer not null references zfgbb.content_resource_type, + uploaded_user_id integer not null references zfgbb.user, + filename text not null, + checksum text not null, + file_ext text not null, + mime_type text not null, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +alter table zfgbb.file_attachments +drop column filename, +drop column checksum, +drop column file_ext, +drop column mime_type, +add column content_resource_id integer not null references zfgbb.content_resource; + +alter table zfgbb.permission_group +drop column star_image, +add column star_image integer references zfgbb.content_resource; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/forum/boards/V20241013.1__add-parent-board-id.sql b/src/main/resources/db/migration/tables/forum/boards/V20241013.1__add-parent-board-id.sql new file mode 100644 index 0000000..dadeda3 --- /dev/null +++ b/src/main/resources/db/migration/tables/forum/boards/V20241013.1__add-parent-board-id.sql @@ -0,0 +1,2 @@ +alter table zfgbb.board +add column parent_board_id integer references zfgbb.board; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/forum/threads/V20240927.1__add-views-to-thread.sql b/src/main/resources/db/migration/tables/forum/threads/V20240927.1__add-views-to-thread.sql new file mode 100644 index 0000000..d8e109b --- /dev/null +++ b/src/main/resources/db/migration/tables/forum/threads/V20240927.1__add-views-to-thread.sql @@ -0,0 +1,2 @@ +alter table zfgbb.thread +add column view_count integer not null default 0; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/forum/threads/V20240928.1__match-[polls-to-smf.sql b/src/main/resources/db/migration/tables/forum/threads/V20240928.1__match-[polls-to-smf.sql new file mode 100644 index 0000000..3b2033a --- /dev/null +++ b/src/main/resources/db/migration/tables/forum/threads/V20240928.1__match-[polls-to-smf.sql @@ -0,0 +1,10 @@ +alter table zfgbb.poll +add column voting_locked_flag boolean not null default false, +add column max_votes boolean not null default true, +add column expire_time timestamp not null, +add column hide_results_flag boolean not null default false, +add column change_vote_flag boolean not null default false, +add column created_user_id integer not null references zfgbb.user, +add column guest_vote_flag boolean not null default false, +add column guest_vote_count integer not null default 0, +add column reset_poll integer not null default 0; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/forum/threads/V20240929.1__match-boards-to-smf.sql b/src/main/resources/db/migration/tables/forum/threads/V20240929.1__match-boards-to-smf.sql new file mode 100644 index 0000000..b2aad26 --- /dev/null +++ b/src/main/resources/db/migration/tables/forum/threads/V20240929.1__match-boards-to-smf.sql @@ -0,0 +1,2 @@ +alter table zfgbb.board +add column seqno integer not null default 0; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/forum/threads/V20240929.2__create-file-attachments.sql b/src/main/resources/db/migration/tables/forum/threads/V20240929.2__create-file-attachments.sql new file mode 100644 index 0000000..4a3b9fc --- /dev/null +++ b/src/main/resources/db/migration/tables/forum/threads/V20240929.2__create-file-attachments.sql @@ -0,0 +1,11 @@ +create table file_attachments ( + file_attachment_id integer not null generated by default as identity primary key, + message_id integer not null references zfgbb.message, + filename text not null, + checksum text not null, + file_ext text not null, + mime_type text not null, + active_flag boolean not null default false, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); diff --git a/src/main/resources/db/migration/tables/users/20240929.5__update-user-tables-to-match-smf.sql b/src/main/resources/db/migration/tables/users/20240929.5__update-user-tables-to-match-smf.sql new file mode 100644 index 0000000..fb0ebec --- /dev/null +++ b/src/main/resources/db/migration/tables/users/20240929.5__update-user-tables-to-match-smf.sql @@ -0,0 +1,22 @@ +create table language_lookup( + language_id integer not null generated by default as identity primary key, + description text not null, + language_code text not null, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create table gender_lookup( + gender_id integer not null generated by default as identity primary key, + description text not null, + gender_code text not null, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +alter table zfgbb.user_bio_info +add column date_of_birth timestamp not null, +add column location text, +add column gender_id integer references zfgbb.gender_lookup, +add column language_id integer references zfgbb.language_lookup, +add column visible_online_flag boolean not null default true; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/users/V20240917.1__create-user-bio-info.sql b/src/main/resources/db/migration/tables/users/V20240917.1__create-user-bio-info.sql index c0f52f1..3c7c5cc 100644 --- a/src/main/resources/db/migration/tables/users/V20240917.1__create-user-bio-info.sql +++ b/src/main/resources/db/migration/tables/users/V20240917.1__create-user-bio-info.sql @@ -1,7 +1,7 @@ -create table user_bio_info ( - user_id integer not null primary key references zfgbb.user, - custom_title text, - personal_text text, - created_ts timestamp not null default current_timestamp, - updated_ts timestamp not null default current_timestamp +create table user_bio_info ( + user_id integer not null primary key references zfgbb.user, + custom_title text, + personal_text text, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp ); \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/users/V20240917.2__add-username.sql b/src/main/resources/db/migration/tables/users/V20240917.2__add-username.sql index 1065926..b091353 100644 --- a/src/main/resources/db/migration/tables/users/V20240917.2__add-username.sql +++ b/src/main/resources/db/migration/tables/users/V20240917.2__add-username.sql @@ -1,2 +1,2 @@ -alter table zfgbb.user +alter table zfgbb.user add column user_name text; \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/users/V20240929.3__create-avatar-table.sql b/src/main/resources/db/migration/tables/users/V20240929.3__create-avatar-table.sql new file mode 100644 index 0000000..7db9cdd --- /dev/null +++ b/src/main/resources/db/migration/tables/users/V20240929.3__create-avatar-table.sql @@ -0,0 +1,11 @@ +create table avatar ( + avatar_id integer not null generated by default as identity primary key, + url text, + user_id integer not null references zfgbb.user, + active_flag boolean not null default false, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create unique index idx_avatar_user_id +on zfgbb.avatar (user_id); \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/users/V20240929.4__create_user_contact_info.sql b/src/main/resources/db/migration/tables/users/V20240929.4__create_user_contact_info.sql new file mode 100644 index 0000000..0699659 --- /dev/null +++ b/src/main/resources/db/migration/tables/users/V20240929.4__create_user_contact_info.sql @@ -0,0 +1,26 @@ +create table user_contact_info( + user_id integer not null primary key references zfgbb.user, + email_address_id integer not null references zfgbb.email_address, + allow_email_flag boolean not null default true, + allow_pm_flag boolean not null default true, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create table contact_types_lookup( + contact_type_id integer not null generated by default as identity primary key, + description text not null, + contact_type_code text not null, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create table user_contact_types( + user_contact_types_id integer not null generated by default as identity primary key, + user_id integer not null references zfgbb.user, + contact_type_id integer references zfgbb.contact_types_lookup, + contact_type_custom_title text, + contact_type_custom_description text, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); \ No newline at end of file diff --git a/src/main/resources/db/migration/tables/users/V20240930.1__create-member-groups.sql b/src/main/resources/db/migration/tables/users/V20240930.1__create-member-groups.sql new file mode 100644 index 0000000..ef322b9 --- /dev/null +++ b/src/main/resources/db/migration/tables/users/V20240930.1__create-member-groups.sql @@ -0,0 +1,26 @@ +create table permission_group ( + permission_group_id integer not null generated by default as identity primary key, + group_name text not null, + description text, + min_posts integer default -1, + star_image text not null, + parent_group integer references zfgbb.permission_group, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create table permission_group_assoc( + permission_group_assoc_id integer not null generated by default as identity primary key, + permission_group_id integer not null references zfgbb.permission_group, + permission_id integer not null references zfgbb.permission, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); + +create table user_permission_group_assoc( + user_permission_group_assoc_id integer not null generated by default as identity primary key, + permission_group_id integer not null references zfgbb.permission_group, + user_id integer not null references zfgbb.user, + created_ts timestamp not null default current_timestamp, + updated_ts timestamp not null default current_timestamp +); \ No newline at end of file diff --git a/src/main/resources/db/migration/views/forum/boards/R__BOARD_SUMMARY_VIEW.sql b/src/main/resources/db/migration/views/forum/boards/R__BOARD_SUMMARY_VIEW.sql new file mode 100644 index 0000000..5c16335 --- /dev/null +++ b/src/main/resources/db/migration/views/forum/boards/R__BOARD_SUMMARY_VIEW.sql @@ -0,0 +1,38 @@ +create or replace view zfgbb.board_summary as +select b.board_id, + b.description, + b.board_name, + threads.thread_count, + posts.post_count, + latest_post.message_id as latest_message_id, + latest_post.thread_id as latest_thread_id, + latest_post.owner_id as latest_message_owner_id, + latest_post.display_name as latest_message_user_name, + latest_post.created_ts as latest_message_created_ts, + b.category_id, + b.parent_board_id +from zfgbb.board b +left join lateral( + select count(*) thread_count + from zfgbb.thread t + where t.board_id = b.board_id +) threads on true +left join lateral( + select count(*) post_count + from zfgbb.thread t + join zfgbb.message m on m.thread_id = t.thread_id + where t.board_id = b.board_id +) posts on true +left join lateral( + select m.message_id, + m.owner_id, + u.display_name, + m.created_ts, + t.thread_id + from zfgbb.thread t + join zfgbb.message m on m.thread_id = t.thread_id + join zfgbb.user u on u.user_id = m.owner_id + where t.board_id = b.board_id + order by m.created_ts desc + limit 1 +) latest_post on true \ No newline at end of file diff --git a/src/main/resources/db/migration/views/forum/boards/R__CHILD_BOARD_VIEW.SQL.sql b/src/main/resources/db/migration/views/forum/boards/R__CHILD_BOARD_VIEW.SQL.sql new file mode 100644 index 0000000..9937ee1 --- /dev/null +++ b/src/main/resources/db/migration/views/forum/boards/R__CHILD_BOARD_VIEW.SQL.sql @@ -0,0 +1,4 @@ +create or replace view zfgbb.child_board_view as +select board.board_id, board.board_name, board.parent_board_id +from zfgbb.board +where parent_board_id is not null \ No newline at end of file diff --git a/src/main/resources/db/migration/views/forum/threads/R__LATEST_MESSAGE_IN_THREAD_VIEW.sql b/src/main/resources/db/migration/views/forum/threads/R__LATEST_MESSAGE_IN_THREAD_VIEW.sql new file mode 100644 index 0000000..349156a --- /dev/null +++ b/src/main/resources/db/migration/views/forum/threads/R__LATEST_MESSAGE_IN_THREAD_VIEW.sql @@ -0,0 +1,17 @@ +create or replace view zfgbb.latest_message_in_thread_view as +select t.thread_id, + t.thread_name, + m.message_id, + m.message_history_id, + m.created_ts, + u.display_name as owner_name +from zfgbb.thread t +join lateral (select m.owner_id, h.message_history_id, m.created_ts, m.message_id + from zfgbb.message m + join zfgbb.message_history h on h.message_id = m.message_id + where h.current_flag = true + and m.thread_id = t.thread_id + order by m.created_ts desc + limit 1) m on true +join zfgbb.user u on u.user_id = m.owner_id + \ No newline at end of file diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index ee064cf..d668cc7 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -18,6 +18,37 @@ + +
+ + + + + + + + + + + + + - +